Public task types accepted by POST /v1/async/task and its batch endpoints. Dedicated analysis endpoints and AI Rendering publication create readable tasks through their own routes.
Credits, with up to two decimals (for example 1.25). The submit response always shows 0: a hold is placed on your balance, but nothing is charged yet. Polling shows 0 until the task is terminal, then the settled charge: the task's price for COMPLETED, 0 for FAILED. A task webhook reports the same charge in creditsCharged; on a FAILED task it reports the task's price in creditsToCharge and 0 in creditsCharged. CITATION_ANALYSIS and WEB_CRAWL are charged by usage, up to the hold placed at submit.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"querying.ai","description":"One API for every AI answer engine. Submit a prompt, get the answer and its sources.","colors":{"primary":"#0F766E","light":"#2DD4BF","dark":"#0F766E"},"logo":{"light":"https://mintcdn.com/querying-ai/hbPR_IODrQaVec6W/logo/light.svg?fit=max\u0026auto=format\u0026n=hbPR_IODrQaVec6W\u0026q=85\u0026s=e70eb9454629ff45d5bf908843a393ac","dark":"https://mintcdn.com/querying-ai/hbPR_IODrQaVec6W/logo/dark.svg?fit=max\u0026auto=format\u0026n=hbPR_IODrQaVec6W\u0026q=85\u0026s=41b10775b1a6e4643f03ee42deae6528","href":"https://querying.ai"},"favicon":"https://mintcdn.com/querying-ai/AF1CmtAyu9Rx8OGO/favicon.svg?fit=max\u0026auto=format\u0026n=AF1CmtAyu9Rx8OGO\u0026q=85\u0026s=0fe9e24b5c89f81a4743663007105aee","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"}},"appearance":{"default":"system"},"background":{"color":{"light":"#FFFFFF","dark":"#141414"}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://querying.ai/dashboard"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"css-variables"},"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"toc"},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"ko","href":"ko/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"zh","href":"zh/introduction"},{"language":"es","href":"es/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"pt","href":"pt/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"querying-ai","hasAudioNarration":false,"actualSubdomain":"querying-ai","customDomains":["docs.querying.ai"],"gitSource":{"type":"github","owner":"opactor-dev","repo":"querying.ai","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6adda8bb0fc6acf852ba3694"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae1a2551b3fbf8078ed2abb","collectionId":"b9612106-f5b6-4bbf-8cf5-cba948cdba96","liveDeploymentHistoryId":"6ae1a2551b3fbf8078ed2abb","schemaVersion":"v3"},"entitlements":{},"buildId":"6ae40e74a17f22770886b8d7","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"en","tag":"API reference","count":71},{"language":"de","tag":"API-Referenz","count":71},{"language":"es","tag":"Referencia de la API","count":71},{"language":"fr","tag":"Référence de l'API","count":71},{"language":"ja","tag":"APIリファレンス","count":71},{"language":"ko","tag":"API 레퍼런스","count":71},{"language":"pt","tag":"Referência da API","count":71},{"language":"zh","tag":"API 参考","count":71},{"language":"en","tag":"Guides","count":49},{"language":"de","tag":"Leitfäden","count":49},{"language":"es","tag":"Guías","count":49},{"language":"fr","tag":"Guides","count":49},{"language":"ja","tag":"ガイド","count":49},{"language":"ko","tag":"가이드","count":49},{"language":"pt","tag":"Guias","count":49},{"language":"zh","tag":"指南","count":49},{"language":"en","tag":"Monitors","count":22},{"language":"de","tag":"Monitore","count":22},{"language":"es","tag":"Monitores","count":22},{"language":"fr","tag":"Moniteurs","count":22},{"language":"ja","tag":"モニター","count":22},{"language":"ko","tag":"모니터","count":22},{"language":"pt","tag":"Monitores","count":22},{"language":"zh","tag":"监测","count":22},{"language":"en","tag":"Research","count":13},{"language":"de","tag":"Recherche","count":13},{"language":"es","tag":"Investigación","count":13},{"language":"fr","tag":"Analyses","count":13},{"language":"ja","tag":"リサーチ","count":13},{"language":"ko","tag":"리서치","count":13},{"language":"pt","tag":"Pesquisa","count":13},{"language":"zh","tag":"研究","count":13},{"language":"en","tag":"Answer engines","count":12},{"language":"de","tag":"Antwort-Engines","count":12},{"language":"es","tag":"Motores de respuesta","count":12},{"language":"fr","tag":"Moteurs de réponse","count":12},{"language":"ja","tag":"回答エンジン","count":12},{"language":"ko","tag":"답변 엔진","count":12},{"language":"pt","tag":"Mecanismos de resposta","count":12},{"language":"zh","tag":"回答引擎","count":12},{"language":"en","tag":"Search and web data","count":10},{"language":"de","tag":"Suche und Webdaten","count":10},{"language":"es","tag":"Búsqueda y datos web","count":10},{"language":"fr","tag":"Recherche et données web","count":10},{"language":"ja","tag":"検索とウェブデータ","count":10},{"language":"ko","tag":"검색과 웹 데이터","count":10},{"language":"pt","tag":"Busca e dados da web","count":10},{"language":"zh","tag":"搜索与网页数据","count":10},{"language":"en","tag":"AI Rendering","count":9},{"language":"en","tag":"Sub-accounts","count":9},{"language":"de","tag":"AI Rendering","count":9},{"language":"de","tag":"Unterkonten","count":9},{"language":"es","tag":"AI Rendering","count":9},{"language":"es","tag":"Subcuentas","count":9},{"language":"fr","tag":"AI Rendering","count":9},{"language":"fr","tag":"Sous-comptes","count":9},{"language":"ja","tag":"AI Rendering","count":9},{"language":"ja","tag":"サブアカウント","count":9},{"language":"ko","tag":"AI Rendering","count":9},{"language":"ko","tag":"하위 계정","count":9},{"language":"pt","tag":"AI Rendering","count":9},{"language":"pt","tag":"Subcontas","count":9},{"language":"zh","tag":"AI Rendering","count":9},{"language":"zh","tag":"子账户","count":9},{"language":"en","tag":"Operations","count":8},{"language":"en","tag":"Exports","count":8},{"language":"de","tag":"Betrieb","count":8},{"language":"de","tag":"Exporte","count":8},{"language":"es","tag":"Operaciones","count":8},{"language":"es","tag":"Exportaciones","count":8},{"language":"fr","tag":"Exploitation","count":8},{"language":"fr","tag":"Exports","count":8},{"language":"ja","tag":"運用","count":8},{"language":"ja","tag":"エクスポート","count":8},{"language":"ko","tag":"운영","count":8},{"language":"ko","tag":"내보내기","count":8},{"language":"pt","tag":"Operações","count":8},{"language":"pt","tag":"Exportações","count":8},{"language":"zh","tag":"运维","count":8},{"language":"zh","tag":"导出","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:root{--q-sans:-apple-system, BlinkMacSystemFont, \"SF Pro Display\", \"SF Pro Text\", system-ui, \"Segoe UI\", Roboto,\n\t\t\"Apple SD Gothic Neo\", \"Noto Sans KR\", \"Noto Sans CJK KR\", \"Malgun Gothic\", sans-serif;--q-mono:ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Monaco, Consolas, monospace;--font-inter:var(--q-sans);--font-family-body-custom:var(--q-sans);--font-family-headings-custom:\"Pretendard Variable\", var(--q-sans);--font-paper-mono:var(--q-mono);--gray-50:250 250 250;--gray-100:245 245 245;--gray-200:229 229 229;--gray-300:212 212 212;--gray-400:164 164 164;--gray-500:133 133 133;--gray-600:102 102 102;--gray-700:68 68 68;--gray-800:42 42 44;--gray-900:22 22 22;--gray-950:16 16 17;--sidebar-width:16.5rem;--content-width:44rem;--q-ink:#161616;--q-text:#161616b8;--q-muted:#161616a3;--q-line:#a4a4a433;--q-fill:#a4a4a40d;--q-fill-strong:#a4a4a41a;--q-card:#fff;--q-well:#fafafa;--q-code:#a4a4a41a;--q-accent:#0f766e;--q-accent-line:#0f766e66;--q-warning:#916200;--q-warning-fill:#da950014;--q-warning-line:#da95003d;--q-negative:#c5293d;--q-negative-fill:#f04c5a14;--q-negative-line:#f04c5a29;--mint-background:var(--q-well);--mint-foreground:#55555c;--mint-token-keyword:#0f766e;--mint-token-string-expression:#161616;--mint-token-string:#6d28d9;--mint-token-function:#6d28d9;--mint-token-constant:#1d4ed8;--mint-token-parameter:#55555c;--mint-token-punctuation:#16161673;--mint-token-comment:#16161680;--mint-token-link:#161616}html.dark{--q-ink:#f2f2f2;--q-text:#9c9c9c;--q-muted:#858585;--q-line:rgb(255 255 255 / 0.08);--q-fill:#fafafa0a;--q-fill-strong:#a4a4a41a;--q-card:#1b1b1d;--q-well:#101011;--q-code:#1b1b1d;--q-accent:#2dd4bf;--q-accent-line:#2dd4bf66;--q-warning:#e9b858;--q-warning-fill:#d2910014;--q-warning-line:#d291003d;--q-negative:#ff7184;--q-negative-fill:#ff435c14;--q-negative-line:#ff435c29;--mint-foreground:#b9b9bf;--mint-token-keyword:#7ee0d3;--mint-token-string-expression:#e7e7e7;--mint-token-string:#c4b5fd;--mint-token-function:#c4b5fd;--mint-token-constant:#93c5fd;--mint-token-parameter:#b9b9bf;--mint-token-punctuation:rgb(242 242 242 / 0.42);--mint-token-comment:rgb(242 242 242 / 0.38);--mint-token-link:#e7e7e7}img.nav-logo{height:20px!important}#navbar{border-bottom:1px solid var(--q-line)}#topbar-cta-button a{height:32px;padding:0 12px;border-radius:8px;background:var(--q-ink)}#topbar-cta-button a,#topbar-cta-button a *{color:rgb(var(--background-light))}.dark #topbar-cta-button a,.dark #topbar-cta-button a *{color:rgb(var(--background-dark))}#sidebar-content{border-right:1px solid var(--q-line)}.sidebar-group-header{color:var(--q-ink);font-size:14px;font-weight:500;letter-spacing:0;text-transform:none}#sidebar-content li>a{border-radius:8px;color:var(--q-text);font-size:14px}#sidebar-content li>a:hover{background:var(--q-fill);color:var(--q-ink)}#sidebar-content li[data-active]>a{background:var(--q-fill-strong);color:var(--q-ink);text-shadow:none}#table-of-contents nav>h2{font-family:inherit}#table-of-contents nav>h2 button{color:var(--q-muted);font-size:13px}#table-of-contents-content{border-left:1px solid var(--q-line)}#table-of-contents div:has(>#table-of-contents-content)>span{left:-.5px;width:2px;height:20px;border-radius:2px;background:var(--q-ink)}.callout [data-component-part=callout-icon] svg,.toc-item>a{color:var(--q-muted)}#page-title,.toc-item>a:hover,.toc-item[data-active]>a{color:var(--q-ink)}#page-title{font-size:30px;font-weight:500;line-height:38px;letter-spacing:-.025em;text-wrap:balance}@media (max-width:640px){#page-title{font-size:26px;line-height:34px}}#header p{color:var(--q-text);font-size:17px;line-height:27px;text-wrap:pretty}.prose{--tw-prose-body:var(--q-text);--tw-prose-headings:var(--q-ink);--tw-prose-lead:var(--q-text);--tw-prose-links:var(--q-accent);--tw-prose-bold:var(--q-ink);--tw-prose-counters:var(--q-muted);--tw-prose-bullets:var(--q-muted);--tw-prose-hr:var(--q-line);--tw-prose-quotes:var(--q-ink);--tw-prose-quote-borders:var(--q-line);--tw-prose-captions:var(--q-muted);--tw-prose-code:var(--q-ink);--tw-prose-th-borders:var(--q-line);--tw-prose-td-borders:var(--q-line)}#content{font-size:16px;line-height:26px}#content :is(p, li){text-wrap:pretty}#content .prose{font-size:inherit;line-height:inherit}#content :is(h2, h3, h4):not([data-component-part]){color:var(--q-ink);font-weight:500;text-wrap:balance}#content h2:not([data-component-part]){margin-top:48px;margin-bottom:12px;font-size:24px;line-height:32px;letter-spacing:-.02em}#content h3:not([data-component-part]){margin-top:32px;margin-bottom:8px;font-size:18px;line-height:26px;letter-spacing:-.01em}#content h4:not([data-component-part]){font-size:16px;line-height:24px}#content a.link{border-bottom:0;color:var(--q-accent);font-weight:inherit;text-decoration:underline;text-decoration-color:var(--q-accent-line);text-decoration-thickness:1px;text-underline-offset:3px}#content a.link:hover{text-decoration-color:currentColor}#content :not(pre)>code{padding:1px 6px;border:1px solid var(--q-line);border-radius:6px;background:var(--q-code);color:var(--q-ink);font-size:.86em;font-weight:400}#content :is(h2, h3, h4) code,#content a :not(pre)>code{color:inherit}#content table{border:1px solid var(--q-line);border-collapse:separate;border-spacing:0;border-radius:10px;font-size:14px;line-height:1.5}#content table :is(th, td){min-width:0}#content table code{word-break:normal;overflow-wrap:break-word}#content table td:first-child code{white-space:nowrap}#content table:has(thead th:nth-child(7)){font-size:13px}#content table:has(thead th:nth-child(7)) :is(th, td){padding-inline:6px}#content tbody tr,#content thead{border-bottom:0}#content thead th{padding:8px 12px;border-bottom:1px solid var(--q-line);background:var(--q-fill);color:var(--q-ink);font-weight:500;vertical-align:bottom}#content thead th:first-child{border-top-left-radius:9px}#content thead th:last-child{border-top-right-radius:9px}#content thead:not(:has(th:not(:empty))){display:none}#content tbody td{padding:8px 12px;border-top:1px solid var(--q-line);vertical-align:top}#content tbody tr:first-child td{border-top:0}:lang(ko) body{word-break:keep-all;overflow-wrap:break-word}:lang(ko) #content{line-height:28px}:is(:lang(ko), :lang(ja), :lang(zh)) #page-title{font-size:28px;line-height:38px;letter-spacing:-.02em}@media (max-width:640px){:is(:lang(ko), :lang(ja), :lang(zh)) #page-title{font-size:24px;line-height:32px}}:is(:lang(ko), :lang(ja), :lang(zh)) #content h2:not([data-component-part]){font-size:22px;letter-spacing:-.01em}:is(:lang(ko), :lang(ja), :lang(zh)) #content h3:not([data-component-part]){letter-spacing:-.005em}.code-block{border-color:var(--q-line);border-radius:10px}.code-block-background{background:var(--q-well)}html.dark .code-block .code-block-background{background-color:var(--q-well)!important}.code-block pre{font-size:13px;line-height:21px}.code-block-fade-overlay{--fade-color-light:var(--q-well)!important;--fade-color-dark:var(--q-well)!important}.callout{gap:10px;padding:12px 16px;border:1px solid var(--q-line);border-radius:12px;background:var(--q-fill)}#content .callout [data-component-part=callout-content]{color:var(--q-text);font-size:14px;line-height:22px}.callout[data-callout-type=warning]{border-color:var(--q-warning-line);background:var(--q-warning-fill)}.callout[data-callout-type=warning] [data-component-part=callout-icon] svg{color:var(--q-warning)}.callout[data-callout-type=danger]{border-color:var(--q-negative-line);background:var(--q-negative-fill)}.callout[data-callout-type=danger] [data-component-part=callout-icon] svg{color:var(--q-negative)}[data-component-part=tabs-list]{gap:4px;margin-bottom:16px;padding-bottom:0;border-bottom:0}[data-component-part=tab-button]{margin-bottom:0;padding:4px 10px;border-bottom:0;border-radius:8px;color:var(--q-muted);font-weight:500}[data-component-part=tab-button]:hover,[data-component-part=tab-button][data-active=true]{color:var(--q-ink)}[data-component-part=tab-button][data-active=true]{background:var(--q-fill-strong)}.step [data-component-part=step-indicator]{background:var(--q-fill-strong);color:var(--q-ink);font-size:13px;font-weight:500}.step [data-component-part=step-line]{background:var(--q-line)}.step [data-component-part=step-title]{color:var(--q-ink);font-family:var(--font-family-headings-custom);font-size:16px;font-weight:600;letter-spacing:-.01em}.accordion,.card{border-color:var(--q-line);border-radius:12px}.card{background:var(--q-card)}#content [data-component-part=card-title]{color:var(--q-ink);font-size:16px;font-weight:500;letter-spacing:-.01em}#content [data-component-part=card-content]{color:var(--q-text);font-size:14px;line-height:22px}.accordion{background:0 0}.tryit-button{border-radius:8px;background:var(--q-ink);color:rgb(var(--background-light))}.dark .tryit-button{color:rgb(var(--background-dark))}.tryit-button svg{background-color:currentColor}"}],"page":{"pagePath":"api-reference/create-task","slug":"/api-reference/create-task","pageMetadata":{"title":"Create a task","description":"Queue a single task against one engine.","openapi":"POST /v1/async/task","href":"/api-reference/create-task"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Queue a single task against one engine.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":"css-variables"},"config":{},"pageMetadata":{"title":"Create a task","description":"Queue a single task against one engine.","openapi":"POST /v1/async/task","href":"/api-reference/create-task"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/querying-ai/473df8355cc46175/pretendard.js","/_mintlify/custom/querying-ai/258a74c1c621191b/sidebar-scroll.js"],"openApiReferenceData":{"operation":{"summary":"Create a task","description":"Queue a single task against one engine.","operationId":"createTask","tags":["Tasks"],"requestBody":"975cecb3-462e-4ffc-918f-b84583849b22","responses":{"200":"3f25a0c5-bdf1-4b7d-a01c-31ccee85a377","400":"996650e8-e759-484b-83d1-b4e8d70264c5","401":"18215b7f-1571-431c-aeee-58ac52ed4a05","402":"24ab3e0b-723e-48bb-9173-ce6239bff273","403":"863e6e1c-70bc-4a0a-9179-796ad60fdf07","409":"04f34629-9bde-4552-90ad-fcb400a5e641","413":"36ac5d7f-10c3-4cc8-989c-2856c555f84b","422":"245aa577-e209-46a8-b0b9-381b6aee14e9","429":"058ddf01-d4b1-4e8e-a98c-2dfec83f2cca","503":"a32d9016-2974-4338-aacc-a6f4ebe5d749"},"method":"post","type":"path","servers":["5d5cc89a-895a-4580-8807-bd9b46e5c89c"],"security":["5751507a-4179-48fd-981a-75ec470e4301"],"path":"/v1/async/task","baseUrlOptions":["https://api.querying.ai"],"title":"Create a task","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["taskType","payload"],"properties":{"taskType":{"type":"string","description":"Public task types accepted by POST /v1/async/task and its batch endpoints. Dedicated analysis endpoints and AI Rendering publication create readable tasks through their own routes.","enum":["CHATGPT","PERPLEXITY","GEMINI","AIMODE","GOOGLE_AIMODE","GOOGLE","GOOGLE_AIO","GOOGLE_SERP","NAVER_AI_BRIEF","NAVER_AI_TAB","NAVER_AI_MODE","NAVER","NAVER_SERP","COMMERCE_SERP","COMMERCE_PRODUCT","BING_SEARCH","BING","BING_COPILOT_SEARCH","BING_COPILOT","COPILOT","META_AI","QWEN","DOUBAO","REDDIT","WEB_SCRAPE","WEB_MAP","WEB_CRAWL","KEYWORD_VOLUME","CITATION_ANALYSIS","GEO_AUDIT","SOURCE_INFLUENCE","CITATION_ATTRIBUTION","PROMPT_RESEARCH","GEO_SCORE"],"const":"COMMERCE_SERP","isRequired":true,"uniqueKey":"oneOf.0.taskType","typeLabel":"enum\u003cstring>"},"payload":{"oneOf":[{"type":"object","description":"The payload for the selected taskType; see TaskInput for the engine-specific schema.","required":["site","query"],"properties":{"site":{"type":"string","enum":["amazon","walmart","target","ebay","aliexpress","google_shopping","sephora","ulta","coupang","oliveyoung","11st","lotteon","musinsa","kurly","rakuten","yahoo_shopping","qoo10","flipkart","myntra","nykaa","zalando"],"description":"The storefront to search. One site per task.","isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.0.site","typeLabel":"enum\u003cstring>"},"query":{"type":"string","minLength":1,"maxLength":500,"description":"The search. Send query or url, not both.","pattern":"\\S","isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.0.query","typeLabel":"string"},"limit":{"type":"integer","description":"Products to return. With query: 1-40, default 20. With url: 1-200, default 200.","maximum":40,"minimum":1,"uniqueKey":"oneOf.0.payload.oneOf.0.limit","typeLabel":"integer"},"url":{"type":"string","maxLength":2048,"description":"A listing page to read instead of searching: a Qoo10 shop page (https://www.qoo10.jp/shop/{shop}) with site qoo10. Returns every product the page shows, in page order, up to limit. Its query and fragment are dropped. Send query or url, not both.","minLength":1,"format":"uri","uniqueKey":"oneOf.0.payload.oneOf.0.url","typeLabel":"string\u003curi>"},"country":{"type":"string","description":"The site's own country: US for amazon, walmart, target, ebay, aliexpress, google_shopping, sephora and ulta; KR for coupang, oliveyoung, 11st, lotteon, musinsa and kurly; JP for rakuten, yahoo_shopping and qoo10; IN for flipkart, myntra and nykaa; DE for zalando. Omit to use it; any other value is rejected with 422 REGION_UNSUPPORTED.","uniqueKey":"oneOf.0.payload.oneOf.0.country","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.0","typeLabel":"object"},{"type":"object","description":"The payload for the selected taskType; see TaskInput for the engine-specific schema.","required":["site","url"],"properties":{"site":{"type":"string","enum":["amazon","walmart","target","ebay","aliexpress","google_shopping","sephora","ulta","coupang","oliveyoung","11st","lotteon","musinsa","kurly","rakuten","yahoo_shopping","qoo10","flipkart","myntra","nykaa","zalando"],"description":"The storefront to search. One site per task.","isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.1.site","typeLabel":"enum\u003cstring>"},"url":{"type":"string","maxLength":2048,"description":"A listing page to read instead of searching: a Qoo10 shop page (https://www.qoo10.jp/shop/{shop}) with site qoo10. Returns every product the page shows, in page order, up to limit. Its query and fragment are dropped. Send query or url, not both.","minLength":1,"format":"uri","isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.1.url","typeLabel":"string\u003curi>"},"query":{"type":"string","minLength":1,"maxLength":500,"description":"The search. Send query or url, not both.","pattern":"\\S","uniqueKey":"oneOf.0.payload.oneOf.1.query","typeLabel":"string"},"country":{"type":"string","description":"The site's own country: US for amazon, walmart, target, ebay, aliexpress, google_shopping, sephora and ulta; KR for coupang, oliveyoung, 11st, lotteon, musinsa and kurly; JP for rakuten, yahoo_shopping and qoo10; IN for flipkart, myntra and nykaa; DE for zalando. Omit to use it; any other value is rejected with 422 REGION_UNSUPPORTED.","uniqueKey":"oneOf.0.payload.oneOf.1.country","typeLabel":"string"},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Products to return. With query: 1-40, default 20. With url: 1-200, default 200.","uniqueKey":"oneOf.0.payload.oneOf.1.limit","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.payload.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.payload","typeLabel":"object"},"idempotencyKey":{"type":"string","description":"Optional. Deduplicates submissions. Omit for no deduplication. A duplicate is a `409` on this endpoint, but a success on the batch endpoint.","uniqueKey":"oneOf.0.idempotencyKey","typeLabel":"string"},"priority":{"type":"integer","description":"Compatibility field; does not guarantee execution order. Values outside 1–10 are clamped, not rejected.","minimum":1,"maximum":10,"default":1,"uniqueKey":"oneOf.0.priority","typeLabel":"integer"},"webhook":{"type":"object","description":"Optional. Omit to collect the result by polling instead.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Receives a POST when the task reaches a terminal state.","isRequired":true,"uniqueKey":"oneOf.0.webhook.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.0.webhook","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["taskType","payload"],"properties":{"taskType":{"type":"string","description":"Public task types accepted by POST /v1/async/task and its batch endpoints. Dedicated analysis endpoints and AI Rendering publication create readable tasks through their own routes.","enum":["CHATGPT","PERPLEXITY","GEMINI","AIMODE","GOOGLE_AIMODE","GOOGLE","GOOGLE_AIO","GOOGLE_SERP","NAVER_AI_BRIEF","NAVER_AI_TAB","NAVER_AI_MODE","NAVER","NAVER_SERP","COMMERCE_SERP","COMMERCE_PRODUCT","BING_SEARCH","BING","BING_COPILOT_SEARCH","BING_COPILOT","COPILOT","META_AI","QWEN","DOUBAO","REDDIT","WEB_SCRAPE","WEB_MAP","WEB_CRAWL","KEYWORD_VOLUME","CITATION_ANALYSIS","GEO_AUDIT","SOURCE_INFLUENCE","CITATION_ATTRIBUTION","PROMPT_RESEARCH","GEO_SCORE"],"const":"COMMERCE_PRODUCT","isRequired":true,"uniqueKey":"oneOf.1.taskType","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"The payload for the selected taskType; see TaskInput for the engine-specific schema.","required":["url"],"properties":{"url":{"type":"string","maxLength":2048,"description":"A product page on amazon.com, walmart.com, target.com, sephora.com or ulta.com (US); amazon.co.jp (JP, site amazon); 11st.co.kr, lotteon.com, musinsa.com, kurly.com or oliveyoung.co.kr (KR); item.rakuten.co.jp, store.shopping.yahoo.co.jp or qoo10.jp (JP); flipkart.com, myntra.com or nykaa.com (IN); or zalando.de (DE). The URL picks the storefront. Product URLs that COMMERCE_SERP returns for these storefronts work as they are, except yahoo_shopping's LOHACO pages on lohaco.yahoo.co.jp. A google_shopping product is read from the url COMMERCE_SERP returns for it (google.com/search?q={query}\u0026udm=28#product={productId}\u0026title={title}): the read runs the query again, or the title when Google no longer lists the product for the query, opens that product's panel, and fails with PAGE_UNAVAILABLE when Google lists it for neither.","minLength":1,"format":"uri","isRequired":true,"uniqueKey":"oneOf.1.payload.url","typeLabel":"string\u003curi>"},"country":{"type":"string","description":"The storefront's own country: US for amazon, walmart, target, sephora, ulta and google_shopping; KR for 11st, lotteon, musinsa, kurly and oliveyoung; JP for rakuten, yahoo_shopping and qoo10; IN for flipkart, myntra and nykaa; DE for zalando. Omit to use it; any other value is rejected with 422 REGION_UNSUPPORTED.","uniqueKey":"oneOf.1.payload.country","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.payload","typeLabel":"object"},"idempotencyKey":{"type":"string","description":"Optional. Deduplicates submissions. Omit for no deduplication. A duplicate is a `409` on this endpoint, but a success on the batch endpoint.","uniqueKey":"oneOf.1.idempotencyKey","typeLabel":"string"},"priority":{"type":"integer","description":"Compatibility field; does not guarantee execution order. Values outside 1–10 are clamped, not rejected.","minimum":1,"maximum":10,"default":1,"uniqueKey":"oneOf.1.priority","typeLabel":"integer"},"webhook":{"type":"object","description":"Optional. Omit to collect the result by polling instead.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Receives a POST when the task reaches a terminal state.","isRequired":true,"uniqueKey":"oneOf.1.webhook.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.webhook","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["taskType","payload"],"properties":{"taskType":{"type":"string","description":"Public task types accepted by POST /v1/async/task and its batch endpoints. Dedicated analysis endpoints and AI Rendering publication create readable tasks through their own routes.","enum":["CHATGPT","PERPLEXITY","GEMINI","AIMODE","GOOGLE_AIMODE","GOOGLE","GOOGLE_AIO","GOOGLE_SERP","NAVER_AI_BRIEF","NAVER_AI_TAB","NAVER_AI_MODE","NAVER","NAVER_SERP","COMMERCE_SERP","COMMERCE_PRODUCT","BING_SEARCH","BING","BING_COPILOT_SEARCH","BING_COPILOT","COPILOT","META_AI","QWEN","DOUBAO","REDDIT","WEB_SCRAPE","WEB_MAP","WEB_CRAWL","KEYWORD_VOLUME","CITATION_ANALYSIS","GEO_AUDIT","SOURCE_INFLUENCE","CITATION_ATTRIBUTION","PROMPT_RESEARCH","GEO_SCORE"],"isRequired":true,"uniqueKey":"oneOf.2.taskType","typeLabel":"enum\u003cstring>"},"payload":{"type":"object","description":"The payload for the selected taskType; see TaskInput for the engine-specific schema.","properties":{"prompt":{"type":"string","description":"The question, for LLM engines.","uniqueKey":"oneOf.2.payload.prompt","typeLabel":"string"},"query":{"type":"string","description":"The search term, for GOOGLE, AIMODE, GOOGLE_SERP, BING_SEARCH, REDDIT, COMMERCE_SERP and NAVER_* engines. BING_SEARCH reads `prompt` first and falls back to `query`, and rejects text over 4,000 characters with 422 VALIDATION_ERROR.","uniqueKey":"oneOf.2.payload.query","typeLabel":"string"},"retryQuery":{"type":"string","minLength":1,"maxLength":100000,"description":"NAVER_AI_TAB only. Optional alternative question to ask after Naver reports a generation error with no usable answer. The original question is asked first. An original answer preserved with response.upstreamError is returned immediately without retrying or rephrasing, even when retryQuery is provided. All attempts share the existing retry and time limits. If this question is used, response.recovery contains {reason: upstream_generation_error, query: \u003cthe alternative question>}; the answer belongs to that question. Without this field, retries keep the original question. Other failures and policy refusals do not activate the alternative. Other engines or a blank value are rejected with 400 VALIDATION_ERROR.","uniqueKey":"oneOf.2.payload.retryQuery","typeLabel":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, case-insensitive. Omitted, empty or null means `US` (`KR` for NAVER_* engines). A value that is not an officially assigned code, such as `UK` (use `GB`), is rejected with 400 VALIDATION_ERROR, and a country this engine cannot serve is rejected at submit time with 422.","example":"US","uniqueKey":"oneOf.2.payload.country","typeLabel":"string"},"location":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90,"isRequired":true,"uniqueKey":"oneOf.2.payload.location.latitude","typeLabel":"number"},"longitude":{"type":"number","minimum":-180,"maximum":180,"isRequired":true,"uniqueKey":"oneOf.2.payload.location.longitude","typeLabel":"number"}},"description":"CHATGPT, GEMINI, GOOGLE, AIMODE and GOOGLE_SERP. The point to ask from, in decimal degrees (WGS84). The engine answers as a user standing there, so local recommendations come from that neighborhood. Send a point inside `country`: `country` sets the market and this point sets the device location. The response echoes it as `location`.","example":{"latitude":37.4979,"longitude":127.0276},"uniqueKey":"oneOf.2.payload.location","typeLabel":"object"},"webSearch":{"type":"boolean","default":true,"description":"CHATGPT only. false asks with ChatGPT's search toggle off, so ChatGPT chooses on its own when to search. Applies to every answer of the task, followUps included. Rejected with 422 EVIDENCE_UNSUPPORTED together with include.html.","uniqueKey":"oneOf.2.payload.webSearch","typeLabel":"boolean"},"images":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","description":"A public http(s) URL, or a data URL: data:image/jpeg, png, webp or gif;base64,\u003cdata>.","uniqueKey":"oneOf.2.payload.images.items.[INDEX]","typeLabel":"string"},"description":"CHATGPT only. Photos asked with the first question, the way a user adds them with ChatGPT's photo button: JPEG, PNG, WebP or GIF, up to 10 MB each. A data URL counts toward the request body limit (1 MiB on POST /v1/async/task). followUps keep asking about the photos in the same conversation, at 1 credit per answer. Rejected with 400 VALIDATION_ERROR together with location, country CN or HK, or continueFrom, and with 422 EVIDENCE_UNSUPPORTED together with include.html. Other engines reject it with 400 VALIDATION_ERROR. A photo that cannot be fetched or read fails the task with BAD_PAYLOAD.","example":["https://www.example.com/photos/product.jpg"],"uniqueKey":"oneOf.2.payload.images","typeLabel":"string[]"},"followUps":{"type":"array","minItems":1,"maxItems":4,"description":"CHATGPT only. Questions asked after the first answer in the same conversation, in order. Each answer costs 1 credit. The result lists the answers in followUps and, when a select cannot be pressed, where and why the turns stopped in followUpsStopped.","items":{"oneOf":[{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","minLength":1,"maxLength":100000,"description":"A question of your own.","isRequired":true,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.0.prompt","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["select"],"properties":{"select":{"type":"object","additionalProperties":false,"description":"Press a follow-up form's button in the previous answer.","properties":{"button":{"type":"integer","minimum":0,"default":0,"description":"The button, counted from 0 across the answer's forms.","uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.button","typeLabel":"integer"},"choices":{"oneOf":[{"type":"object","description":"Options to pick by choice name, or as an array in the form's order. A pick is an option's value or label, or its position from 0. Unpicked choices keep ChatGPT's selection.","maxProperties":20,"additionalProperties":{"oneOf":[{"type":"string","maxLength":500,"minLength":1,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"integer","minimum":0,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.0.additionalProperties.oneOf.1","typeLabel":"integer"}],"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.0.additionalProperties","typeLabel":"string | integer"},"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{"type":"string","maxLength":500,"minLength":1,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","minimum":0,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.1.items.[INDEX]","typeLabel":"string | integer"},"description":"Options to pick by choice name, or as an array in the form's order. A pick is an option's value or label, or its position from 0. Unpicked choices keep ChatGPT's selection.","maxItems":20,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices.oneOf.1","typeLabel":"(string | integer)[]"}],"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select.choices","typeLabel":"object | (string | integer)[]"}},"isRequired":true,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1.select","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.payload.followUps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.payload.followUps","typeLabel":"object[]"},"continueFrom":{"type":"string","format":"uuid","description":"CHATGPT only. The id of a completed CHATGPT task of this account: asks one more question in its conversation, under its last answer, with either `prompt` or `select`. `country` and `location` carry over; leave them out or send the same values. The result carries `conversation` (`id`, `turn`, `expiresAt`) and, when it pressed a form, `selection`. Rejected before any charge with 400 VALIDATION_ERROR (another account's or engine's task, a task not completed, an invalid select) or 400 CONVERSATION_EXPIRED (after `conversation.expiresAt`, 3 hours after the conversation's first answer).","uniqueKey":"oneOf.2.payload.continueFrom","typeLabel":"string\u003cuuid>"},"select":{"type":"object","additionalProperties":false,"description":"With `continueFrom`, instead of `prompt`: press a follow-up form's button in the last answer of the continued task. Answers that show a form list them in `forms` (`buttons` in `button` order, `choices` with their `name`, the option selected at first and the `options`).","properties":{"button":{"type":"integer","minimum":0,"default":0,"description":"The button, counted from 0 across the answer's forms.","uniqueKey":"oneOf.2.payload.select.button","typeLabel":"integer"},"choices":{"oneOf":[{"type":"object","description":"Options to pick by choice name, or as an array in the form's order. A pick is an option's value or label, or its position from 0. Unpicked choices keep ChatGPT's selection.","maxProperties":20,"additionalProperties":{"oneOf":[{"type":"string","maxLength":500,"minLength":1,"uniqueKey":"oneOf.2.payload.select.choices.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"integer","minimum":0,"uniqueKey":"oneOf.2.payload.select.choices.oneOf.0.additionalProperties.oneOf.1","typeLabel":"integer"}],"uniqueKey":"oneOf.2.payload.select.choices.oneOf.0.additionalProperties","typeLabel":"string | integer"},"uniqueKey":"oneOf.2.payload.select.choices.oneOf.0","typeLabel":"object"},{"type":"array","items":{"oneOf":[{"type":"string","maxLength":500,"minLength":1,"uniqueKey":"oneOf.2.payload.select.choices.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","minimum":0,"uniqueKey":"oneOf.2.payload.select.choices.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"oneOf.2.payload.select.choices.oneOf.1.items.[INDEX]","typeLabel":"string | integer"},"description":"Options to pick by choice name, or as an array in the form's order. A pick is an option's value or label, or its position from 0. Unpicked choices keep ChatGPT's selection.","maxItems":20,"uniqueKey":"oneOf.2.payload.select.choices.oneOf.1","typeLabel":"(string | integer)[]"}],"uniqueKey":"oneOf.2.payload.select.choices","typeLabel":"object | (string | integer)[]"}},"uniqueKey":"oneOf.2.payload.select","typeLabel":"object"},"page":{"type":"integer","minimum":1,"maximum":10,"default":1,"description":"GOOGLE_SERP and NAVER_SERP. The results page to return, 1-10. Positions count across pages, so page 2 starts at 11 on Google and at 16 on Naver.","uniqueKey":"oneOf.2.payload.page","typeLabel":"integer"},"subreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{2,21}$","description":"REDDIT only. Limits a search to one subreddit (the name without `r/`), or picks the subreddit for `action` `feed`. A feed without it lists r/popular.","uniqueKey":"oneOf.2.payload.subreddit","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"REDDIT: a public post URL (`https://www.reddit.com/r/{subreddit}/comments/{postId}/...`); returns `post` with its first page of about 20-25 `comments` instead of searching. NAVER_SERP with `action` `page`: the naver.com page to read (blog, cafe, news, terms, kin or any other naver.com page). A redirect that leaves naver.com fails the task. WEB_SCRAPE: the HTML, plain-text page or text-based PDF to read, a public http or https address on the default port, up to 2,048 characters. PDFs return page-order text as `markdown`, available document metadata and `images: []`; no OCR, attachments or layout reconstruction. PDF limits: 8 MiB downloaded, 100 pages, 1,000,000 extracted characters and 20 seconds of extraction, independently of maxChars. Encrypted, damaged, incomplete, textless or over-limit PDFs fail with PAGE_UNAVAILABLE. A multi-page PDF costs 1 credit per URL. COMMERCE_SERP: a listing page read instead of a query, a Qoo10 shop page (https://www.qoo10.jp/shop/{shop}) with site qoo10. WEB_MAP and WEB_CRAWL: the site's start address, under the same rules; the host it redirects to is the site (`www.` aside).","uniqueKey":"oneOf.2.payload.url","typeLabel":"string\u003curi>"},"action":{"type":"string","enum":["feed","user_posts","page","search"],"description":"REDDIT: `feed` lists the newest posts of `subreddit`, `user_posts` lists what `username` submitted. NAVER_SERP: `page` reads `url` instead of searching. Omit it to search.","uniqueKey":"oneOf.2.payload.action","typeLabel":"enum\u003cstring>"},"username":{"type":"string","pattern":"^[A-Za-z0-9_-]{3,20}$","description":"REDDIT with `action` `user_posts`. The Reddit username, without `u/`.","uniqueKey":"oneOf.2.payload.username","typeLabel":"string"},"limit":{"type":"integer","minimum":1,"maximum":10000,"description":"COMMERCE_SERP: product count, integer 1-40 (default 20) with query, 1-200 (default 200) with url. REDDIT with `action` `feed` or `user_posts`: the most posts to return, 1-25 (default 25). WEB_MAP: the most addresses to return, 1-10,000 (default 1,000); `truncated` says whether the list was cut.","uniqueKey":"oneOf.2.payload.limit","typeLabel":"integer"},"commentSort":{"type":"string","enum":["top","new","controversial","old","qa"],"default":"top","description":"REDDIT post `url` only. The order of the returned comment page.","uniqueKey":"oneOf.2.payload.commentSort","typeLabel":"enum\u003cstring>"},"commentMaxDepth":{"type":"integer","minimum":0,"maximum":100,"description":"REDDIT post `url` only. Drops replies deeper than this; `0` keeps top-level comments only.","uniqueKey":"oneOf.2.payload.commentMaxDepth","typeLabel":"integer"},"maxChars":{"type":"integer","minimum":1000,"maximum":200000,"description":"NAVER_SERP with `action` `page`, WEB_SCRAPE and WEB_CRAWL. The most characters to return: page text on NAVER_SERP (1,000-50,000, default 20,000), Markdown on WEB_SCRAPE (1,000-200,000, default 100,000), Markdown per page on WEB_CRAWL (1,000-50,000, default 20,000). `truncated` says whether it was cut.","uniqueKey":"oneOf.2.payload.maxChars","typeLabel":"integer"},"rawHtml":{"type":"boolean","description":"WEB_SCRAPE: also return `rawHtml`, the HTML that was read (the rendered document when a browser read it), cut at 2,000,000 characters with `rawHtmlTruncated: true`. An empty string for PDF and plain-text pages. Off by default.","uniqueKey":"oneOf.2.payload.rawHtml","typeLabel":"boolean"},"jsonLd":{"type":"boolean","description":"WEB_SCRAPE: also return `jsonLd`, every schema.org JSON-LD block of the HTML that was read, parsed, in page order. Blocks that are not valid JSON are left out; a page without any returns `[]`. Off by default.","uniqueKey":"oneOf.2.payload.jsonLd","typeLabel":"boolean"},"maxPages":{"type":"integer","minimum":1,"maximum":100,"default":10,"description":"WEB_CRAWL. The most pages to read, the start page included. The task holds this many credits at submission and is charged 1 credit per page it returns; pages it could not read are not charged.","uniqueKey":"oneOf.2.payload.maxPages","typeLabel":"integer"},"maxDepth":{"type":"integer","minimum":0,"maximum":5,"default":2,"description":"WEB_CRAWL. Link hops from the start page; `0` reads the start page alone.","uniqueKey":"oneOf.2.payload.maxDepth","typeLabel":"integer"},"includePaths":{"type":"array","maxItems":20,"items":{"type":"string","pattern":"^/","maxLength":200,"uniqueKey":"oneOf.2.payload.includePaths.items.[INDEX]","typeLabel":"string"},"description":"WEB_MAP and WEB_CRAWL. Path patterns an address must match: `*` within one path segment, `**` across segments, `/blog/**` includes `/blog`. Matched against the decoded path.","uniqueKey":"oneOf.2.payload.includePaths","typeLabel":"string[]"},"excludePaths":{"type":"array","maxItems":20,"items":{"type":"string","pattern":"^/","maxLength":200,"uniqueKey":"oneOf.2.payload.excludePaths.items.[INDEX]","typeLabel":"string"},"description":"WEB_MAP and WEB_CRAWL. Path patterns that remove an address, in the same form as `includePaths`, which they override.","uniqueKey":"oneOf.2.payload.excludePaths","typeLabel":"string[]"},"includeSubdomains":{"type":"boolean","default":false,"description":"WEB_MAP and WEB_CRAWL. Counts the site's subdomains as the site.","uniqueKey":"oneOf.2.payload.includeSubdomains","typeLabel":"boolean"},"keywords":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":80,"uniqueKey":"oneOf.2.payload.keywords.items.[INDEX]","typeLabel":"string"},"description":"KEYWORD_VOLUME only. The keywords to count, 1-100 of up to 80 characters each; KR keywords take letters, digits and spaces. Each comes back with `searchVolume` (the 12-month average), `monthlySearches` (`{month, searchVolume}`, oldest first), `last30Days` (Naver's 30-day count, KR only) and `competition`. `country` is required, and CN and RU are refused with 422 REGION_UNSUPPORTED.","example":["sunscreen","best sunscreen for face"],"uniqueKey":"oneOf.2.payload.keywords","typeLabel":"string[]"},"include":{"type":"object","description":"Optional output flags. `markdown`, `rawResponse`, `searchQueries`, `ads` and `shopping` are ignored by engines that do not support them. `analysis` on an unsupported engine is rejected with 422 VALIDATION_ERROR, `html` with 422 EVIDENCE_UNSUPPORTED, and `screenshot: true` with 400 VALIDATION_ERROR on every engine. See the engine guide for the support table.","properties":{"markdown":{"type":"boolean","description":"Adds `markdown` on CHATGPT (on by default), PERPLEXITY, GEMINI, GOOGLE (the AI Overview), BING_SEARCH (the summary) and BING_COPILOT. AIMODE, META_AI, QWEN, DOUBAO, NAVER_AI_BRIEF and NAVER_AI_TAB return `markdown` without the flag.","uniqueKey":"oneOf.2.payload.include.markdown","typeLabel":"boolean"},"html":{"type":"boolean","description":"Returns `html`: `{\"status\": \"ok\", \"url\", \"expiresAt\"}`, the screen the engine showed for the answer, which opens without an API key until `expiresAt` (30 days). On GOOGLE and AIMODE it is the results page Google served, scripts removed; on CHATGPT, GEMINI, PERPLEXITY, META_AI and BING_COPILOT it is the engine's screen as it showed when the answer finished, scripts removed and images included. A screen that could not be collected, did not match the answer, or could not be stored comes back as `{\"status\": \"failed\", \"error\": \"EVIDENCE_FAILED\"}` and the task still completes. Other engines reject it with 422 EVIDENCE_UNSUPPORTED, and so does CHATGPT with `location`, country `CN` or `HK`, `continueFrom`, `webSearch: false` or `images`: the page comes only with a new conversation asked with web search on, without a device location or photos. On CHATGPT, PERPLEXITY, META_AI and BING_COPILOT it costs 0.25 credits per task on top of the engine's price, charged only when `html.status` is `ok`; on GEMINI, GOOGLE and AIMODE it costs nothing more. Off by default.","uniqueKey":"oneOf.2.payload.include.html","typeLabel":"boolean"},"rawResponse":{"type":"boolean","description":"Returns the engine's raw payload. Arrives as `rawResponse` on CHATGPT, GEMINI, PERPLEXITY, BING_COPILOT, META_AI, QWEN and DOUBAO, and as `rawContent` on GOOGLE, AIMODE, GOOGLE_SERP, BING_SEARCH, NAVER_AI_BRIEF and NAVER_AI_TAB. NAVER_SERP, REDDIT, WEB_SCRAPE, WEB_MAP, WEB_CRAWL and KEYWORD_VOLUME return no raw payload. Off by default.","uniqueKey":"oneOf.2.payload.include.rawResponse","typeLabel":"boolean"},"searchQueries":{"type":"boolean","description":"Gates `searchQueries` on CHATGPT (on by default) and PERPLEXITY. Other engines that emit it do so unconditionally.","uniqueKey":"oneOf.2.payload.include.searchQueries","typeLabel":"boolean"},"ads":{"type":"boolean","description":"Only honored by CHATGPT.","uniqueKey":"oneOf.2.payload.include.ads","typeLabel":"boolean"},"shopping":{"type":"boolean","description":"Only honored by CHATGPT.","uniqueKey":"oneOf.2.payload.include.shopping","typeLabel":"boolean"},"citationAnalysis":{"type":"boolean","description":"Answer engines (CHATGPT, GEMINI, PERPLEXITY, GOOGLE_AIO, GOOGLE_AIMODE, NAVER_AI_BRIEF, NAVER_AI_TAB, BING_SEARCH, BING_COPILOT): run a Citation Analysis analysis on the answer as soon as it is collected. The result then carries `response.citationAnalysis`, the analysis task as GET /v1/async/task/{id} returns it (`task`, `credits`, `response` or `error`), or `{error}` when no analysis could start (no cited URL, or credits or the key's daily limit cannot cover its hold). The webhook is sent once, after the analysis settles; a polled answer task is COMPLETED first, so poll until `response.citationAnalysis.task.status` is terminal. The analysis is charged separately by usage; a key limited to certain task types must also allow CITATION_ANALYSIS. Any other engine is rejected with 400.","uniqueKey":"oneOf.2.payload.include.citationAnalysis","typeLabel":"boolean"},"geoAudit":{"type":"boolean","deprecated":true,"description":"Accepted alias of `citationAnalysis`; results still carry `response.citationAnalysis`.","uniqueKey":"oneOf.2.payload.include.geoAudit","typeLabel":"boolean"},"sourceInfluence":{"type":"boolean","deprecated":true,"description":"Accepted alias of `citationAnalysis`; results still carry `response.citationAnalysis`.","uniqueKey":"oneOf.2.payload.include.sourceInfluence","typeLabel":"boolean"},"analysis":{"type":"boolean","description":"CHATGPT, GEMINI, PERPLEXITY, GOOGLE, AIMODE, NAVER_AI_BRIEF and NAVER_AI_TAB. Adds `analysis` (AnswerAnalysis) to the response: every brand the answer names in order, with recommendation and sentiment, the presence of `brand` and `competitors`, and the kind of each cited site. 1 credit per task on top of the engine price, charged only when `analysis.status` is `ok`. Rejected with 422 on other engines.","uniqueKey":"oneOf.2.payload.include.analysis","typeLabel":"boolean"},"entityDetails":{"type":"boolean","description":"CHATGPT only. Adds `entityDetails`: for each card in the answer (up to 20), the detail panel ChatGPT opens when a reader clicks it, with `name`, `category`, `query`, `status` (`ok` or `failed` with `error`), `markdown`, `sources` (`position`, `url`, `label`, `site`, `description`), `products` (the shopping card a product's panel opens on, shaped like `shoppingCards[].products`), `images` and `complete` (`false` when ChatGPT stopped writing the panel early). `error` is `ENTITY_DETAIL_FAILED`, `ENTITY_DETAIL_EMPTY`, or `ENTITY_DETAIL_UNAVAILABLE` when the conversation or turn credentials needed to open panels are missing. Supports tasks with `payload.location`, CN, HK, fallback answers and `html`. No extra credits; each follow-up answer gets its own panels. Rejected with 422 on other engines. Off by default.","uniqueKey":"oneOf.2.payload.include.entityDetails","typeLabel":"boolean"},"aioverview":{"type":"object","description":"Legacy GOOGLE flag. `aioverview.markdown: true` works like `include.markdown` on GOOGLE.","properties":{"markdown":{"type":"boolean","uniqueKey":"oneOf.2.payload.include.aioverview.markdown","typeLabel":"boolean"}},"uniqueKey":"oneOf.2.payload.include.aioverview","typeLabel":"object"},"screenshot":{"type":"boolean","description":"No longer available. `true` is rejected with 400 VALIDATION_ERROR; use `html` for a page of the answer.","uniqueKey":"oneOf.2.payload.include.screenshot","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.2.payload.include","typeLabel":"object"},"brand":{"type":"string","maxLength":200,"description":"With `include.analysis`: your brand's name, reported in `analysis.targets` with role `brand`.","uniqueKey":"oneOf.2.payload.brand","typeLabel":"string"},"brandAliases":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":200,"uniqueKey":"oneOf.2.payload.brandAliases.items.[INDEX]","typeLabel":"string"},"description":"With `include.analysis` and `brand`: other names the answer may use for your brand.","uniqueKey":"oneOf.2.payload.brandAliases","typeLabel":"string[]"},"brandDomains":{"type":"array","maxItems":20,"items":{"type":"string","uniqueKey":"oneOf.2.payload.brandDomains.items.[INDEX]","typeLabel":"string"},"description":"With `include.analysis` and `brand`: your sites, such as `example.com`. A citation on one of them or a subdomain has `kind` `owned`.","example":["example.com"],"uniqueKey":"oneOf.2.payload.brandDomains","typeLabel":"string[]"},"competitors":{"type":"array","maxItems":50,"items":{"oneOf":[{"type":"string","maxLength":200,"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1.name","typeLabel":"string"},"aliases":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":200,"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1.aliases.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1.aliases","typeLabel":"string[]"},"domains":{"type":"array","maxItems":20,"items":{"type":"string","uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1.domains.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1.domains","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.payload.competitors.items.[INDEX]","typeLabel":"string | object"},"description":"With `include.analysis`: competitors reported in `analysis.targets` with role `competitor`. A citation on one of their domains has `kind` `competitor`.","uniqueKey":"oneOf.2.payload.competitors","typeLabel":"(string | object)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.2.payload","typeLabel":"object"},"idempotencyKey":{"type":"string","description":"Optional. Deduplicates submissions. Omit for no deduplication. A duplicate is a `409` on this endpoint, but a success on the batch endpoint.","uniqueKey":"oneOf.2.idempotencyKey","typeLabel":"string"},"priority":{"type":"integer","description":"Compatibility field; does not guarantee execution order. Values outside 1–10 are clamped, not rejected.","minimum":1,"maximum":10,"default":1,"uniqueKey":"oneOf.2.priority","typeLabel":"integer"},"webhook":{"type":"object","description":"Optional. Omit to collect the result by polling instead.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Receives a POST when the task reaches a terminal state.","isRequired":true,"uniqueKey":"oneOf.2.webhook.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.2.webhook","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"commerce":{"title":"commerce","value":{"taskType":"COMMERCE_SERP","payload":{"site":"amazon","query":"wireless earbuds","limit":20}}},"commerceProduct":{"title":"commerceProduct","value":{"taskType":"COMMERCE_PRODUCT","payload":{"url":"https://www.amazon.com/dp/B00TTD9BRC"}}},"llm":{"title":"llm","value":{"taskType":"GEMINI","idempotencyKey":"job-42:prompt-7:gemini","priority":1,"webhook":{"url":"https://your-server.example.com/hook"},"payload":{"prompt":"best wireless earbuds 2026","country":"US","include":{"markdown":true}}}},"google":{"title":"google","value":{"taskType":"GOOGLE","payload":{"query":"best wireless earbuds 2026","country":"US"}}},"commerceListing":{"title":"commerceListing","value":{"taskType":"COMMERCE_SERP","payload":{"site":"qoo10","url":"https://www.qoo10.jp/shop/LG-DailyBeauty","limit":200}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"3f25a0c5-bdf1-4b7d-a01c-31ccee85a377":{"description":"Task accepted and queued.","content":{"application/json":{"schema":{"type":"object","required":["success","task","credits"],"properties":{"success":{"type":"boolean","const":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"task":{"type":"object","required":["id","taskType","status","priority","createdAt"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"task.id","typeLabel":"string\u003cuuid>"},"taskType":{"oneOf":[{"type":"string","description":"Task types returned by task polling, submissions, batch results and webhooks, including tasks created by dedicated endpoints. This is not a submission engine list.","enum":["CHATGPT","PERPLEXITY","GEMINI","AIMODE","GOOGLE_AIMODE","GOOGLE","GOOGLE_AIO","GOOGLE_SERP","NAVER_AI_BRIEF","NAVER_AI_TAB","NAVER_AI_MODE","NAVER","NAVER_SERP","COMMERCE_SERP","COMMERCE_PRODUCT","BING_SEARCH","BING","BING_COPILOT_SEARCH","BING_COPILOT","COPILOT","META_AI","QWEN","DOUBAO","REDDIT","WEB_SCRAPE","WEB_MAP","WEB_CRAWL","KEYWORD_VOLUME","CITATION_ANALYSIS","GEO_AUDIT","SOURCE_INFLUENCE","CITATION_ATTRIBUTION","PROMPT_RESEARCH","GEO_SCORE"],"isRequired":true,"uniqueKey":"task.taskType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Task types returned by task polling, submissions, batch results and webhooks, including tasks created by dedicated endpoints. This is not a submission engine list.","enum":["AI_RENDERING"],"isRequired":true,"uniqueKey":"task.taskType.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"task.taskType","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"`PROCESSING` means a worker holds the task. `COMPLETED` and `FAILED` are terminal. For NAVER_AI_TAB with response.upstreamError, `COMPLETED` means collection finished; the answer may still be incomplete.","enum":["QUEUED","PROCESSING","COMPLETED","FAILED"],"isRequired":true,"uniqueKey":"task.status","typeLabel":"enum\u003cstring>"},"priority":{"type":"integer","isRequired":true,"uniqueKey":"task.priority","typeLabel":"integer"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"task.createdAt","typeLabel":"string\u003cdate-time>"},"idempotencyKey":{"type":"string","description":"Echoed back verbatim. **Omitted** — not null — when the caller supplied none.","uniqueKey":"task.idempotencyKey","typeLabel":"string"}},"isRequired":true,"uniqueKey":"task","typeLabel":"object"},"credits":{"type":"object","description":"Credits, with up to two decimals (for example `1.25`). The submit response always shows `0`: a hold is placed on your balance, but nothing is charged yet. Polling shows `0` until the task is terminal, then the settled charge: the task's price for COMPLETED, `0` for FAILED. A task webhook reports the same charge in `creditsCharged`; on a FAILED task it reports the task's price in `creditsToCharge` and `0` in `creditsCharged`. CITATION_ANALYSIS and WEB_CRAWL are charged by usage, up to the hold placed at submit.","properties":{"creditsToCharge":{"type":"number","uniqueKey":"credits.creditsToCharge","typeLabel":"number"},"creditsCharged":{"oneOf":[{"type":"number","uniqueKey":"credits.creditsCharged.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"credits.creditsCharged.oneOf.1","typeLabel":"null"}],"uniqueKey":"credits.creditsCharged","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"credits","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"task":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","taskType":"CHATGPT","status":"QUEUED","priority":123,"createdAt":"2023-11-07T05:31:56Z","idempotencyKey":"\u003cstring>"},"credits":{"creditsToCharge":123,"creditsCharged":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"996650e8-e759-484b-83d1-b4e8d70264c5":{"description":"`VALIDATION_ERROR`: malformed body, unrecognised `taskType`, a missing or invalid field (`details` names it), or an invalid `webhook.url`. `USE_DEDICATED_ENDPOINT`: CITATION_ANALYSIS and PROMPT_RESEARCH are created through `POST /v1/citation-analysis` and `POST /v1/prompt-research`. `CONVERSATION_EXPIRED`: the ChatGPT conversation named by `payload.continueFrom` can no longer be continued.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Request validation failed","details":[{"field":"payload.prompt","message":"payload.prompt or payload.query is required"}],"timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"VALIDATION_ERROR","message":"Request validation failed","details":[{"field":"payload.prompt","message":"payload.prompt or payload.query is required"}],"timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"18215b7f-1571-431c-aeee-58ac52ed4a05":{"description":"Missing or invalid bearer token.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"MISSING_API_KEY","message":"Missing or invalid API key","timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"MISSING_API_KEY","message":"Missing or invalid API key","timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"24ab3e0b-723e-48bb-9173-ce6239bff273":{"description":"`INSUFFICIENT_CREDITS`: the balance is below the price of the task.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"INSUFFICIENT_CREDITS","message":"insufficient credits (need 2)","timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"INSUFFICIENT_CREDITS","message":"insufficient credits (need 2)","timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"863e6e1c-70bc-4a0a-9179-796ad60fdf07":{"description":"`KEY_SCOPE_DENIED`: the engine is outside the key's Allowed engines. `ENGINE_PRIVATE`: the `taskType` is not available on self-serve plans; `details.availableTaskTypes` lists the ones that are.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"keyScope":{"title":"keyScope","value":{"success":false,"error":{"code":"KEY_SCOPE_DENIED","message":"This API key is not allowed to submit taskType 'GEMINI'","timestamp":"2026-07-09T04:12:00.000Z"}}},"enginePrivate":{"title":"enginePrivate","value":{"success":false,"error":{"code":"ENGINE_PRIVATE","message":"taskType 'CLAUDE' is not available on self-serve plans","details":{"taskType":"CLAUDE","retryable":false,"availableTaskTypes":["CHATGPT","GEMINI","..."]},"timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"04f34629-9bde-4552-90ad-fcb400a5e641":{"description":"A task with this `idempotencyKey` already exists. The batch endpoint absorbs this as success instead.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"RESOURCE_ALREADY_EXISTS","message":"Task already exists.","timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"RESOURCE_ALREADY_EXISTS","message":"Task already exists.","timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"36ac5d7f-10c3-4cc8-989c-2856c555f84b":{"description":"`PAYLOAD_TOO_LARGE`: the body exceeds 1 MiB. Rejected before parsing.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"PAYLOAD_TOO_LARGE","message":"request body exceeds 1 MiB","timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"PAYLOAD_TOO_LARGE","message":"request body exceeds 1 MiB","timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"245aa577-e209-46a8-b0b9-381b6aee14e9":{"description":"The request is well-formed, but it cannot be served as asked. `REGION_UNSUPPORTED`: this engine never serves `payload.country`. `LOCATION_UNSUPPORTED`: the engine does not take `payload.location`. `EVIDENCE_UNSUPPORTED`: the engine cannot return `include.html`, or a CHATGPT task asks for it with `location`, country `CN` or `HK`, `continueFrom`, `webSearch: false` or `images`. `VALIDATION_ERROR` (422): an engine-specific field rule, such as a WEB_SCRAPE URL, a REDDIT field, a BING_SEARCH text over 4,000 characters, or `include.analysis` on an engine that does not support it.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"REGION_UNSUPPORTED","message":"PERPLEXITY cannot be served for country='CN' ...","details":{"taskType":"PERPLEXITY","country":"CN","retryable":false},"timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"REGION_UNSUPPORTED","message":"PERPLEXITY cannot be served for country='CN' ...","details":{"taskType":"PERPLEXITY","country":"CN","retryable":false},"timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"058ddf01-d4b1-4e8e-a98c-2dfec83f2cca":{"description":"Retry after the `Retry-After` header (seconds). `PLAN_CONCURRENCY_LIMIT`: queued and running tasks reached the plan or contract limit. `KEY_DAILY_CREDIT_LIMIT`: the key used up its daily credit limit. `SUB_ACCOUNT_CREDIT_LIMIT`: the sub-account would exceed its `monthlyCreditLimit`.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"PLAN_CONCURRENCY_LIMIT","message":"free plan allows 2 concurrent tasks; 2 already active","details":{"plan":"free","limit":2,"source":"plan","active":2,"retryAfterSec":5},"timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"PLAN_CONCURRENCY_LIMIT","message":"free plan allows 2 concurrent tasks; 2 already active","details":{"plan":"free","limit":2,"source":"plan","active":2,"retryAfterSec":5},"timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a32d9016-2974-4338-aacc-a6f4ebe5d749":{"description":"Retry after the `Retry-After` header (seconds). `QUEUE_BACKPRESSURE`: this engine's queue is full. `SERVER_OVERLOADED`: admission is saturated, or the task queue as a whole is full. `DB_UNAVAILABLE`: task storage did not answer. `ENGINE_UNAVAILABLE`: this engine is temporarily not accepting tasks. `EVIDENCE_UNAVAILABLE`: HTML pages of answers are not available right now.","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, safe to branch on. See the Errors guide for the full list.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"For humans. May change.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"Context for the error. An array of `{field, message}` on most `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted when there is nothing to add.","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"object[] | object"},"timestamp":{"type":"string","format":"date-time","uniqueKey":"error.timestamp","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":{"code":"DB_UNAVAILABLE","message":"Task storage unavailable — retry shortly","details":{"retryAfterSec":2,"retryable":true},"timestamp":"2026-07-09T04:12:00.000Z"}},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"DB_UNAVAILABLE","message":"Task storage unavailable — retry shortly","details":{"retryAfterSec":2,"retryable":true},"timestamp":"2026-07-09T04:12:00.000Z"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"5751507a-4179-48fd-981a-75ec470e4301":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key, sent as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"5d5cc89a-895a-4580-8807-bd9b46e5c89c":{"url":"https://api.querying.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API key, sent as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API key, sent as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"querying-ai","siteName":"querying.ai","title":"Create a task - querying.ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/create-task","matchLevel":0},"ko":{"href":"/ko/api-reference/create-task","matchLevel":1},"ja":{"href":"/ja/api-reference/create-task","matchLevel":1},"zh":{"href":"/zh/api-reference/create-task","matchLevel":1},"es":{"href":"/es/api-reference/create-task","matchLevel":1},"fr":{"href":"/fr/api-reference/create-task","matchLevel":1},"de":{"href":"/de/api-reference/create-task","matchLevel":1},"pt":{"href":"/pt/api-reference/create-task","matchLevel":1}}},"lastModified":"2026-07-26T17:49:52.198Z","originalFileLocation":"api-reference/create-task.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Queue a single task against one engine.\">\u003cmeta data-mint-head name=\"application-name\" content=\"querying.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a task - querying.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Queue a single task against one engine.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"querying.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.querying.ai/api-reference/create-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://querying-ai.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+a+task\u0026amp;description=Queue+a+single+task+against+one+engine.\u0026amp;theme=6dfb2324bb79452d4a6d45d0\u0026amp;signature=a8a14d530083041859bec2b34e52f56c3e2b5d6e52096ce4783174785a356871\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a task - querying.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Queue a single task against one engine.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://querying-ai.mintlify.app/_mintlify/api/og/v2?division=Tasks\u0026amp;title=Create+a+task\u0026amp;description=Queue+a+single+task+against+one+engine.\u0026amp;theme=6dfb2324bb79452d4a6d45d0\u0026amp;signature=a8a14d530083041859bec2b34e52f56c3e2b5d6e52096ce4783174785a356871\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/querying-ai/aFfd7aZ8B1gAGQVl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"querying.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F766E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.querying.ai/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-task.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.querying.ai/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.querying.ai/ko/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.querying.ai/ja/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.querying.ai/zh/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.querying.ai/es/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.querying.ai/fr/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.querying.ai/de/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.querying.ai/pt/api-reference/create-task\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.querying.ai/api-reference/create-task\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.querying.ai/#organization\",\"name\":\"querying.ai\",\"url\":\"https://docs.querying.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/querying-ai/hbPR_IODrQaVec6W/logo/light.svg?fit=max\u0026auto=format\u0026n=hbPR_IODrQaVec6W\u0026q=85\u0026s=e70eb9454629ff45d5bf908843a393ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.querying.ai#website\",\"name\":\"querying.ai\",\"url\":\"https://docs.querying.ai\",\"publisher\":{\"@id\":\"https://docs.querying.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.querying.ai/api-reference/create-task#webpage\",\"url\":\"https://docs.querying.ai/api-reference/create-task\",\"name\":\"Create a task\",\"description\":\"Queue a single task against one engine.\",\"dateModified\":\"2026-07-26T17:49:52.198Z\",\"isPartOf\":{\"@id\":\"https://docs.querying.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.querying.ai/api-reference/create-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.querying.ai/api-reference/create-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"querying.ai\",\"item\":\"https://docs.querying.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a task\",\"item\":\"https://docs.querying.ai/api-reference/create-task\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.querying.ai/api-reference/create-task#apireference\",\"headline\":\"Create a task\",\"name\":\"Create a task\",\"description\":\"Queue a single task against one engine.\",\"url\":\"https://docs.querying.ai/api-reference/create-task\",\"mainEntityOfPage\":{\"@id\":\"https://docs.querying.ai/api-reference/create-task#webpage\"},\"dateModified\":\"2026-07-26T17:49:52.198Z\",\"publisher\":{\"@id\":\"https://docs.querying.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.querying.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"querying.ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"querying.ai","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API reference","groups":[{"group":"Tasks","pages":[{"title":"Create a task","openapi":"POST /v1/async/task","href":"/api-reference/create-task"},{"title":"Get a task","description":"Poll a task by id. Terminal results are available for 24 hours after completion.","openapi":"GET /v1/async/task/{id}","href":"/api-reference/get-task"},{"title":"Create tasks in bulk","openapi":"POST /v1/async/task/batch","href":"/api-reference/create-task-batch"}]},{"group":"Batches","pages":[{"title":"Create a batch","openapi":"POST /v1/batches","href":"/api-reference/create-batch"},{"title":"Get a batch","openapi":"GET /v1/batches/{id}","href":"/api-reference/get-batch"},{"title":"List batch items","openapi":"GET /v1/batches/{id}/items","href":"/api-reference/list-batch-items"}]},{"group":"Location grids","pages":[{"title":"Create a location grid","openapi":"POST /v1/async/task/grid","href":"/api-reference/create-task-grid"},{"title":"Get a location grid","openapi":"GET /v1/async/task/grid/{id}","href":"/api-reference/get-task-grid"}]},{"group":"Research","pages":[{"openapi":"post /v1/citation-analysis","title":"Analyze answer claims and cited sources","href":"/api-reference/citation-analysis"},{"title":"Prompt Research","openapi":"POST /v1/prompt-research","href":"/api-reference/prompt-research"},{"title":"GEO Score","openapi":"POST /v1/geo-score","href":"/api-reference/geo-score"},{"title":"Product Lookup","openapi":"POST /v1/product-lookup","href":"/api-reference/product-lookup"},{"title":"Get a product lookup","openapi":"GET /v1/product-lookup/{id}","href":"/api-reference/get-product-lookup"},{"title":"Create a place lookup","openapi":"POST /v1/place-lookup","href":"/api-reference/place-lookup"},{"title":"Get a place lookup","openapi":"GET /v1/place-lookup/{id}","href":"/api-reference/get-place-lookup"}]},{"group":"AI Rendering","pages":[{"title":"List sites","openapi":"GET /v1/ai-rendering/sites","href":"/api-reference/ai-rendering/list-sites"},{"title":"Connect a site","openapi":"POST /v1/ai-rendering/sites","href":"/api-reference/ai-rendering/create-site"},{"title":"Get a site","openapi":"GET /v1/ai-rendering/sites/{id}","href":"/api-reference/ai-rendering/get-site"},{"title":"Update a site","openapi":"PATCH /v1/ai-rendering/sites/{id}","href":"/api-reference/ai-rendering/update-site"},{"title":"Remove a site","openapi":"DELETE /v1/ai-rendering/sites/{id}","href":"/api-reference/ai-rendering/delete-site"},{"title":"Get a new site key","openapi":"POST /v1/ai-rendering/sites/{id}/key","href":"/api-reference/ai-rendering/rotate-key"},{"title":"Publish a page","openapi":"POST /v1/ai-rendering/sites/{id}/pages","href":"/api-reference/ai-rendering/publish-page"},{"title":"Take a page down","openapi":"DELETE /v1/ai-rendering/sites/{id}/pages/{pageId}","href":"/api-reference/ai-rendering/delete-page"},{"title":"List a site's copies","openapi":"GET /v1/ai-rendering/copies","href":"/api-reference/ai-rendering/list-copies"}]},{"group":"Monitors","pages":[{"title":"List monitors","openapi":"GET /v1/monitors","href":"/api-reference/monitors/list-monitors"},{"title":"Create a monitor","openapi":"POST /v1/monitors","href":"/api-reference/monitors/create-monitor"},{"title":"Get a monitor","openapi":"GET /v1/monitors/{id}","href":"/api-reference/monitors/get-monitor"},{"title":"Update a monitor","openapi":"PATCH /v1/monitors/{id}","href":"/api-reference/monitors/update-monitor"},{"title":"Delete a monitor","openapi":"DELETE /v1/monitors/{id}","href":"/api-reference/monitors/delete-monitor"},{"title":"Run a monitor now","openapi":"POST /v1/monitors/{id}/run","href":"/api-reference/monitors/run-monitor"},{"title":"Get monitor analytics","openapi":"GET /v1/monitors/{id}/analytics","href":"/api-reference/monitors/get-analytics"},{"title":"List cited sources","openapi":"GET /v1/monitors/{id}/sources","href":"/api-reference/monitors/list-sources"},{"title":"Get citations over time","openapi":"GET /v1/monitors/{id}/citations","href":"/api-reference/monitors/get-citations"},{"title":"Get a scored answer","openapi":"GET /v1/monitors/{id}/answers/{taskId}","href":"/api-reference/monitors/get-answer"},{"title":"Get a prompt","openapi":"GET /v1/monitors/{id}/prompt","href":"/api-reference/monitors/get-prompt"},{"title":"Export scored answers","openapi":"GET /v1/monitors/{id}/results","href":"/api-reference/monitors/export-results"},{"title":"Get a monitor's answers by location","openapi":"GET /v1/monitors/{id}/grid","href":"/api-reference/monitors/get-grid"},{"title":"List change events","openapi":"GET /v1/monitors/{id}/events","href":"/api-reference/monitors/list-events"},{"title":"Redeliver a change event","openapi":"POST /v1/monitors/{id}/events/{eventId}/redeliver","href":"/api-reference/monitors/redeliver-event"},{"title":"Get alert history","openapi":"GET /v1/monitors/{id}/alerts","href":"/api-reference/monitors/get-alerts"},{"title":"Send a test alert","openapi":"POST /v1/monitors/{id}/alerts/test","href":"/api-reference/monitors/test-alert"},{"title":"Get monitor capabilities","openapi":"GET /v1/monitors/capabilities","href":"/api-reference/monitors/get-capabilities"},{"title":"Suggest prompts","openapi":"POST /v1/monitors/suggest","href":"/api-reference/monitors/suggest-prompts"},{"title":"Research prompts for a monitor","openapi":"POST /v1/monitors/research","href":"/api-reference/monitors/research-prompts"},{"title":"Get report sharing","openapi":"GET /v1/monitors/{id}/share","href":"/api-reference/monitors/get-share"},{"title":"Share a report","openapi":"PUT /v1/monitors/{id}/share","href":"/api-reference/monitors/update-share"}]},{"group":"Exports","pages":[{"title":"List exports","openapi":"GET /v1/exports","href":"/api-reference/exports/list-exports"},{"title":"Create an export","openapi":"POST /v1/exports","href":"/api-reference/exports/create-export"},{"title":"Get the export identity","openapi":"GET /v1/exports/identity","href":"/api-reference/exports/get-identity"},{"title":"Get an export","openapi":"GET /v1/exports/{id}","href":"/api-reference/exports/get-export"},{"title":"Pause or resume an export","openapi":"PATCH /v1/exports/{id}","href":"/api-reference/exports/update-export"},{"title":"Delete an export","openapi":"DELETE /v1/exports/{id}","href":"/api-reference/exports/delete-export"},{"title":"List delivery history","openapi":"GET /v1/exports/{id}/runs","href":"/api-reference/exports/list-runs"},{"title":"Retry a delivery window","openapi":"POST /v1/exports/{id}/runs/{runId}/retry","href":"/api-reference/exports/retry-run"}]},{"group":"Sub-accounts","pages":[{"title":"List sub-accounts","openapi":"GET /v1/sub-accounts","href":"/api-reference/sub-accounts/list-sub-accounts"},{"title":"Create a sub-account","openapi":"POST /v1/sub-accounts","href":"/api-reference/sub-accounts/create-sub-account"},{"title":"Get a sub-account","openapi":"GET /v1/sub-accounts/{id}","href":"/api-reference/sub-accounts/get-sub-account"},{"title":"Update or suspend a sub-account","openapi":"PATCH /v1/sub-accounts/{id}","href":"/api-reference/sub-accounts/update-sub-account"},{"title":"List a sub-account's keys","openapi":"GET /v1/sub-accounts/{id}/keys","href":"/api-reference/sub-accounts/list-keys"},{"title":"Issue a sub-account key","openapi":"POST /v1/sub-accounts/{id}/keys","href":"/api-reference/sub-accounts/issue-key"},{"title":"Revoke a sub-account key","openapi":"DELETE /v1/sub-accounts/{id}/keys/{keyId}","href":"/api-reference/sub-accounts/revoke-key"},{"title":"Get a sub-account's usage","openapi":"GET /v1/sub-accounts/{id}/usage","href":"/api-reference/sub-accounts/get-usage"},{"title":"List usage of every sub-account","openapi":"GET /v1/sub-accounts/usage","href":"/api-reference/sub-accounts/list-usage"}]},{"group":"Operations","pages":[{"title":"Engine capabilities","openapi":"GET /v1/capabilities","href":"/api-reference/capabilities"},{"title":"Credit balance","openapi":"GET /v1/credits","href":"/api-reference/credits"},{"title":"Credit usage","openapi":"GET /v1/usage","href":"/api-reference/usage"},{"title":"Queue status","openapi":"GET /v1/async/status","href":"/api-reference/queue-status"},{"title":"Liveness probe","openapi":"GET /health","href":"/api-reference/health"},{"title":"Readiness probe","openapi":"GET /ready","href":"/api-reference/ready"},{"title":"Task counts for your account","sidebarTitle":"Stats","openapi":"GET /stats","href":"/api-reference/stats"},{"title":"ChatGPT serving mode","sidebarTitle":"Capacity","openapi":"GET /capacity","href":"/api-reference/capacity"}]}]}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/create-task"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/create-task"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/create-task"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/create-task"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/create-task"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/create-task"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api-reference/create-task"}]}]},"title":"Create a task - querying.ai","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-CT9uE8Ip.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}