{"id":2091,"date":"2020-12-25T10:28:15","date_gmt":"2020-12-25T07:28:15","guid":{"rendered":"https:\/\/loquiz.com\/support\/?p=2091"},"modified":"2025-10-29T12:41:54","modified_gmt":"2025-10-29T09:41:54","slug":"api","status":"publish","type":"post","link":"https:\/\/loquiz.com\/support\/api\/","title":{"rendered":"API"},"content":{"rendered":"\n<p>Loquiz API allows you to create your own result pages and connect Loquiz to your online ticketing\/booking system.<\/p>\n\n\n\n<p>Loquiz API will integrate with your online ticketing\/booking system. The API will forward the information to the booking system once your customer completes the booking\/purchasing process. After that, the booking system, if set up in that way, will send the email or message to your customer with the login credentials plus all the essential info on how to start the game.<\/p>\n\n\n\n<p>If you have multiple games available on your webpage, the API ensures that your customer will get the correct login credentials of the particular game your customer purchased.<\/p>\n\n\n\n<p><strong>Login through API<\/strong><\/p>\n\n\n\n<p>Login happens with Username and Password. Username can be manually defined, if left empty it will use name or generate a random one. <strong>Password will always be generated by Loquiz<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If username nor email is defined, then username will be randomly generated by Loquiz and returned  in Response (email will be absent in response).<\/li>\n\n\n\n<li>If email is defined and username it is not, then both the email and username will be the email (only accepts email format).<\/li>\n\n\n\n<li>If you define username and not email, then the username will be the username and email will be absent.<\/li>\n\n\n\n<li>If you define both email and username, then username will be the username and email will be email.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>The working version of the API with explanations is hosted here:<\/p>\n\n\n\n<p><a href=\"https:\/\/api.loquiz.com\/v3\/docs\/\">https:\/\/api.loquiz.com\/v3\/docs\/<\/a> &#8211; Ticket generation and Leaderboards<\/p>\n\n\n\n<p><a href=\"https:\/\/api.loquiz.com\/v4\/docs\/\">https:\/\/api.loquiz.com\/v4\/docs\/<\/a> &#8211; Access to the system (Get a list of account users and role, Summary of your credit usage, get a list of account invoices\/transactions etc.)<\/p>\n\n\n\n<p>In order to use the API, you need to generate an API key. <\/p>\n\n\n\n<p>Go to the USER menu -&gt;Account settings-&gt;API-&gt;Generate a new API key.<\/p>\n\n\n\n<p>If you do not find the API tab in account settings, then contact hello@loquiz.com to find out how this can be activated for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loquiz API allows you to create your own result pages and connect Loquiz to your online ticketing\/booking system. Loquiz API will integrate with your online ticketing\/booking system. The API will forward the information to the booking system once your customer completes the booking\/purchasing process. After that, the booking system, if set up in that way, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[178],"tags":[],"class_list":["post-2091","post","type-post","status-publish","format-standard","hentry","category-integration"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>API - Loquiz knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/loquiz.com\/support\/api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API - Loquiz knowledgebase\" \/>\n<meta property=\"og:description\" content=\"Loquiz API allows you to create your own result pages and connect Loquiz to your online ticketing\/booking system. Loquiz API will integrate with your online ticketing\/booking system. The API will forward the information to the booking system once your customer completes the booking\/purchasing process. After that, the booking system, if set up in that way, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/loquiz.com\/support\/api\/\" \/>\n<meta property=\"og:site_name\" content=\"Loquiz knowledgebase\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-25T07:28:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-29T09:41:54+00:00\" \/>\n<meta name=\"author\" content=\"Eric\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eric\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/\"},\"author\":{\"name\":\"Eric\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\"},\"headline\":\"API\",\"datePublished\":\"2020-12-25T07:28:15+00:00\",\"dateModified\":\"2025-10-29T09:41:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/\"},\"wordCount\":338,\"articleSection\":[\"Integration\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/\",\"name\":\"API - Loquiz knowledgebase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\"},\"datePublished\":\"2020-12-25T07:28:15+00:00\",\"dateModified\":\"2025-10-29T09:41:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\",\"name\":\"Loquiz knowledgebase\",\"description\":\"Helping you run awesome games\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/loquiz.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\",\"name\":\"Eric\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"caption\":\"Eric\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API - Loquiz knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/loquiz.com\/support\/api\/","og_locale":"en_US","og_type":"article","og_title":"API - Loquiz knowledgebase","og_description":"Loquiz API allows you to create your own result pages and connect Loquiz to your online ticketing\/booking system. Loquiz API will integrate with your online ticketing\/booking system. The API will forward the information to the booking system once your customer completes the booking\/purchasing process. After that, the booking system, if set up in that way, [&hellip;]","og_url":"https:\/\/loquiz.com\/support\/api\/","og_site_name":"Loquiz knowledgebase","article_published_time":"2020-12-25T07:28:15+00:00","article_modified_time":"2025-10-29T09:41:54+00:00","author":"Eric","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Eric","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/loquiz.com\/support\/api\/#article","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/api\/"},"author":{"name":"Eric","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7"},"headline":"API","datePublished":"2020-12-25T07:28:15+00:00","dateModified":"2025-10-29T09:41:54+00:00","mainEntityOfPage":{"@id":"https:\/\/loquiz.com\/support\/api\/"},"wordCount":338,"articleSection":["Integration"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/loquiz.com\/support\/api\/","url":"https:\/\/loquiz.com\/support\/api\/","name":"API - Loquiz knowledgebase","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/#website"},"datePublished":"2020-12-25T07:28:15+00:00","dateModified":"2025-10-29T09:41:54+00:00","author":{"@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7"},"breadcrumb":{"@id":"https:\/\/loquiz.com\/support\/api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/loquiz.com\/support\/api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/loquiz.com\/support\/api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/loquiz.com\/support\/"},{"@type":"ListItem","position":2,"name":"API"}]},{"@type":"WebSite","@id":"https:\/\/loquiz.com\/support\/#website","url":"https:\/\/loquiz.com\/support\/","name":"Loquiz knowledgebase","description":"Helping you run awesome games","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/loquiz.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7","name":"Eric","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","caption":"Eric"}}]}},"_links":{"self":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":9,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"predecessor-version":[{"id":16895,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2091\/revisions\/16895"}],"wp:attachment":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}