Bearer token used for request authentication. Alternatively, you can send the API key in the x-api-key header. Note: A payment method is required to use the API.
Why the task stopped. schema_satisfied: completed normally; stopped: stopped on request; budget_reached / time_limit_reached: wrapped up early after reaching an internal budget or time limit; cancelled: cancelled; error: failed.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Octen Docs","description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","colors":{"primary":"#039855","light":"#FFFFFF","dark":"#0F1117"},"logo":{"light":"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=26d2a863c023b0211afa7c6c0bce2d8e","dark":"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=bfbe0113ad39cf82fe68dd515c2091bf","href":"https://octen.ai"},"favicon":"https://mintcdn.com/octen-ai/R4_y7aW-VxkGajbE/logo/favicon.svg?fit=max\u0026auto=format\u0026n=R4_y7aW-VxkGajbE\u0026q=85\u0026s=f60d8117581e937a7e3cab4ecf74aa22","api":{"playground":{"display":"interactive"},"examples":{"prefill":true}},"navbar":{"links":[{"href":"mailto:support@octen.ai","label":"Support"}],"primary":{"type":"button","label":"API Platform","href":"https://octen.ai/platform"}},"footer":{},"seo":{"metatags":{"canonical":"https://docs.octen.ai","keywords":"octen,octen.ai,ai search infrastructure,real-time web search,search api,ai search engine,search for ai agents,retrieval layer for llms,llm grounding,real-time indexing,low latency retrieval,agentic search engine,live web data,sota embedding model,octen-8b,ai search api,web search api,api,search,ai,llms","og:description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","og:image":"https://octen.ai/_next/static/media/octen-cover.dc74905e.png","og:url":"https://docs.octen.ai","og:site_name":"Octen Docs","twitter:card":"summary_large_image","twitter:description":"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world's latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.","twitter:image":"https://octen.ai/_next/static/media/octen-cover.dc74905e.png","google-site-verification":"WomFSLfAsZAC_vWB_WcRDmkF_IPlrOw-VHZROUA1LFE"},"indexing":"all"},"integrations":{"posthog":{"apiKey":"phc_S3tyhNZM8KsgXjF0kw1LYLgTQ8D2amhZNFA4vz1yHRo","sessionRecording":false}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"octen-ai","hasAudioNarration":false,"actualSubdomain":"octen-ai","customDomains":["docs.octen.ai"],"gitSource":{"type":"github","owner":"ai-apitech","repo":"apt_docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ae8437b26d449f6e4d783ff","collectionId":"35f6ca5b-8438-4a11-807e-8e221273d36c","liveDeploymentHistoryId":"6ae8437b26d449f6e4d783ff","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae86e45e4f1cb0cd68a321f","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Capabilities","count":17},{"language":"default","tag":"Applications","count":17},{"language":"default","tag":"APIs","count":11},{"language":"default","tag":"Resources","count":9},{"language":"default","tag":"Octen Fast","count":8},{"language":"default","tag":"Octen Premier","count":6},{"language":"default","tag":"Integrations","count":6},{"language":"default","tag":"Overview","count":6}],"searchSettings":{"maxResults":6}},"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":"full-page-search","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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"fix-copy-page.css","content":"#page-context-menu.hidden{display:flex!important}#header>#page-context-menu.mt-3{display:none!important}"}],"page":{"pagePath":"api-reference/get-search-agent","slug":"/api-reference/get-search-agent","pageMetadata":{"title":"Search Agent Result API Reference","description":"Returns a Search Agent task by id.","deprecated":null,"version":null,"sidebarTitle":"Search Agent Result","openapi":"/api-reference/openapi.json get /v1/agent/{task_id}","href":"/api-reference/get-search-agent","autogeneratedByOpenApi":true},"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: \"Returns a Search Agent task by id.\"\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":{"config":{},"pageMetadata":{"title":"Search Agent Result API Reference","description":"Returns a Search Agent task by id.","deprecated":null,"version":null,"sidebarTitle":"Search Agent Result","openapi":"/api-reference/openapi.json get /v1/agent/{task_id}","href":"/api-reference/get-search-agent","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/octen-ai/1394afa843283735/tryit-button.js"],"openApiReferenceData":{"operation":{"summary":"Get a Search Agent result","description":"Returns a Search Agent task by id.","operationId":"get-search-agent","x-mint":{"href":"/api-reference/get-search-agent","metadata":{"title":"Search Agent Result API Reference","sidebarTitle":"Search Agent Result"}},"parameters":["93fb6401-44c6-4d3b-974f-20730c67caa2"],"responses":{"200":"8c1f58b1-3e24-4e36-9998-ba1ad40acb31","401":"5708d5da-f9ff-482c-b60a-4baf916be73d","404":"65f7d5ad-abef-44d6-96cb-7c2c3e8e1034","429":"4fa2a97b-2b09-4fd8-bd78-2edc16a25cb7","500":"10b92582-71fa-4444-b767-a6cc31e3372a"},"method":"get","type":"path","servers":["fb4bb3f4-2efc-4e3c-8c32-f050bca54607"],"security":["aae1d82c-c7f1-4d15-a9bf-a81ce273950b","bbc4e1cd-5926-4ab4-842a-dcee61fd2199"],"path":"/v1/agent/{task_id}","baseUrlOptions":["https://api.octen.ai"],"title":"Get a Search Agent result","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"93fb6401-44c6-4d3b-974f-20730c67caa2":{"name":"task_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"The task id returned by the Search Agent API.","uniqueKey":"","typeLabel":"string"},"example":"agent-7f3c2a9e4b1d4c6f8a0e5b2d9c1f6a37","description":"The task id returned by the Search Agent API."}},"responses":{"8c1f58b1-3e24-4e36-9998-ba1ad40acb31":{"description":"Successful Search Agent task response","content":{"application/json":{"schema":{"type":"object","required":["request_id","task_id","tier","status","created_at"],"properties":{"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"task_id":{"type":"string","description":"Unique task id.","isRequired":true,"uniqueKey":"task_id","typeLabel":"string"},"tier":{"type":"string","enum":["auto","low","medium","high"],"description":"The tier from the request.","isRequired":true,"uniqueKey":"tier","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"description":"Task state.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"integer","description":"Unix timestamp in seconds when the task was created.","isRequired":true,"uniqueKey":"created_at","typeLabel":"integer"},"previous_task_id":{"oneOf":[{"type":"string","description":"The `previous_task_id` from the request.","uniqueKey":"previous_task_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `previous_task_id` from the request.","uniqueKey":"previous_task_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"previous_task_id","typeLabel":"string | null"},"stop_reason":{"type":"string","enum":["schema_satisfied","stopped","budget_reached","time_limit_reached","cancelled","error"],"description":"Why the task stopped. `schema_satisfied`: completed normally; `stopped`: stopped on request; `budget_reached` / `time_limit_reached`: wrapped up early after reaching an internal budget or time limit; `cancelled`: cancelled; `error`: failed.","uniqueKey":"stop_reason","typeLabel":"enum\u003cstring>"},"choices":{"type":"array","description":"A list of completion choices, present when `status` is `succeeded`.","items":{"type":"object","description":"A single completion choice in a non-streaming response.","properties":{"message":{"type":"object","description":"The assistant's response message.","properties":{"role":{"type":"string","enum":["assistant"],"description":"The role of the message author. Always `assistant`.","uniqueKey":"choices.items.[INDEX].message.role","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"The assistant's text content. A JSON string when `response_format.type` is `json_schema`.","uniqueKey":"choices.items.[INDEX].message.content","typeLabel":"string"},"annotations":{"type":"array","description":"Citation annotations.","items":{"type":"object","description":"A citation annotation.","properties":{"type":{"type":"string","enum":["url_citation"],"description":"The annotation type.","uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url_citation":{"type":"object","properties":{"url":{"type":"string","description":"The URL of the cited source.","uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.url","typeLabel":"string"},"title":{"type":"string","description":"The title of the cited source.","uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.title","typeLabel":"string"},"start_index":{"type":"integer","description":"Start position of the cited span in `content`.","uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.start_index","typeLabel":"integer"},"end_index":{"type":"integer","description":"End position of the cited span in `content`.","uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation.end_index","typeLabel":"integer"}},"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX].url_citation","typeLabel":"object"}},"uniqueKey":"choices.items.[INDEX].message.annotations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices.items.[INDEX].message.annotations","typeLabel":"object[]"}},"uniqueKey":"choices.items.[INDEX].message","typeLabel":"object"}},"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices","typeLabel":"object[]"},"error":{"type":"object","description":"Failure reason, present when `status` is `failed`. Failed tasks are not billed.","properties":{"code":{"type":"string","enum":["AGENT_TIMEOUT","AGENT_FAILED"],"description":"`AGENT_TIMEOUT`: the task timed out; `AGENT_FAILED`: the task failed for another reason.","uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A message describing the failure.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"completed_at":{"type":"integer","description":"Unix timestamp in seconds when the task finished.","uniqueKey":"completed_at","typeLabel":"integer"},"meta":{"type":"object","description":"Metadata for the Search Agent response.","properties":{"latency":{"type":"integer","description":"Total request latency in milliseconds.","uniqueKey":"meta.latency","typeLabel":"integer"},"billed_tier":{"type":"string","enum":["auto","low","medium","high"],"description":"The tier actually billed for this request.","uniqueKey":"meta.billed_tier","typeLabel":"enum\u003cstring>"},"cost":{"type":"number","description":"Amount charged for this task in USD.","uniqueKey":"meta.cost","typeLabel":"number"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"text":{"title":"text","value":{"request_id":"20261016091305542P3VN8TQ6WE","task_id":"agent-7f3c2a9e4b1d4c6f8a0e5b2d9c1f6a37","tier":"low","status":"succeeded","previous_task_id":null,"stop_reason":"schema_satisfied","choices":[{"message":{"role":"assistant","content":"**The 2026 Nobel Prize in Physiology or Medicine was awarded jointly to Karl Deisseroth, Peter Hegemann, and Georg Nagel.**[^1] They were recognized “for their discoveries concerning light-gated ion channels and optogenetics.”[^1]","annotations":[{"type":"url_citation","url_citation":{"url":"https://www.nobelprize.org/prizes/medicine/2026/press-release/","title":"Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org","start_index":123,"end_index":127}},{"type":"url_citation","url_citation":{"url":"https://www.nobelprize.org/prizes/medicine/2026/press-release/","title":"Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org","start_index":226,"end_index":230}}]}}],"created_at":1793608513,"completed_at":1793608522,"meta":{"latency":9376,"billed_tier":"low","cost":0.05}}},"structuredOutput":{"title":"structuredOutput","value":{"request_id":"20261016092150863W4KD7NF2QX","task_id":"agent-2b8e6d41c9a04f7e93d5a1c0e6b7f284","tier":"low","status":"succeeded","previous_task_id":null,"stop_reason":"schema_satisfied","choices":[{"message":{"role":"assistant","content":"{\"laureates\":[{\"name\":\"Karl Deisseroth\",\"affiliation\":\"Howard Hughes Medical Institute; Stanford University\",\"nationality\":\"American\"},{\"name\":\"Peter Hegemann\",\"affiliation\":\"Humboldt University of Berlin\",\"nationality\":\"German\"},{\"name\":\"Georg Nagel\",\"affiliation\":\"University of Würzburg\",\"nationality\":\"German\"}]}","annotations":[{"type":"url_citation","url_citation":{"url":"https://www.nobelprize.org/prizes/medicine/2026/deisseroth/facts/","title":"Karl Deisseroth – Facts – 2026 - NobelPrize.org","start_index":0,"end_index":316}},{"type":"url_citation","url_citation":{"url":"https://www.nobelprize.org/prizes/medicine/2026/hegemann/facts/","title":"Peter Hegemann – Facts – 2026 - NobelPrize.org","start_index":0,"end_index":316}}]}}],"created_at":1793608547,"completed_at":1793608562,"meta":{"latency":12210,"billed_tier":"low","cost":0.05}}},"failed":{"title":"failed","value":{"request_id":"20261016081012476M8TB5YH3RC","task_id":"agent-c41a7e9052d34b8f9e6a0b3d7f1c5e28","tier":"high","status":"failed","previous_task_id":null,"error":{"code":"AGENT_FAILED","message":"Task failed, please retry"},"stop_reason":"error","created_at":1792137730}}},"exampleType":"examples"}},"exampleType":"examples"},"5708d5da-f9ff-482c-b60a-4baf916be73d":{"description":"Invalid API Key — Returned when the API key is missing or invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":401,"msg":"Invalid API Key","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":401,"msg":"Invalid API Key","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"65f7d5ad-abef-44d6-96cb-7c2c3e8e1034":{"description":"Task not found or expired — Returned when the task id does not exist or has expired.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":404,"msg":"Task not found or expired.","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":404,"msg":"Task not found or expired.","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"4fa2a97b-2b09-4fd8-bd78-2edc16a25cb7":{"description":"Exceeding the rate limit — Returned when the request exceeds the configured rate limit.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":429,"msg":"Exceeding the rate limit","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":429,"msg":"Exceeding the rate limit","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"},"10b92582-71fa-4444-b767-a6cc31e3372a":{"description":"Internal error — Returned when an unexpected server-side error occurs.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Business status code. Non-zero values indicate an error.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"A message describing the error.","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"request_id":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["code","msg","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"code":500,"msg":"Internal error","request_id":"req_abc123def456"},"examples":{"Example":{"title":"Example","value":{"code":500,"msg":"Internal error","request_id":"req_abc123def456"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"aae1d82c-c7f1-4d15-a9bf-a81ce273950b":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"bearerAuth"}},"bbc4e1cd-5926-4ab4-842a-dcee61fd2199":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"fb4bb3f4-2efc-4e3c-8c32-f050bca54607":{"url":"https://api.octen.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token used for request authentication. Alternatively, you can send the API key in the `x-api-key` header. Note: A payment method is required to use the API.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key used for request authentication. Alternatively, you can send the key as a Bearer token in the `Authorization` header. Note: A payment method is required to use the API.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"octen-ai","siteName":"Octen Docs","title":"Search Agent Result API Reference - Octen Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T11:04:41.877Z","originalFileLocation":"api-reference/get-search-agent.mdx"},"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=\"Returns a Search Agent task by id.\">\u003cmeta data-mint-head name=\"keywords\" content=\"octen,octen.ai,ai search infrastructure,real-time web search,search api,ai search engine,search for ai agents,retrieval layer for llms,llm grounding,real-time indexing,low latency retrieval,agentic search engine,live web data,sota embedding model,octen-8b,ai search api,web search api,api,search,ai,llms\">\u003cmeta data-mint-head name=\"application-name\" content=\"Octen Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search Agent Result API Reference - Octen Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world\u0026#x27;s latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Octen Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.octen.ai/api-reference/get-search-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\">\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=\"Search Agent Result API Reference - Octen Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The search infrastructure for AI. Real-time web search foundation that empowers LLMs to reason with the world\u0026#x27;s latest information. Engineered for AI Agents, Copilots, and Chatbots with real-time indexing, sub-100ms latency, and high reliability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\">\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/octen-ai/XhyhRRvOpTIxrcMy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Octen Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#039855\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"WomFSLfAsZAC_vWB_WcRDmkF_IPlrOw-VHZROUA1LFE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.octen.ai/api-reference/get-search-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/get-search-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.octen.ai/#organization\",\"name\":\"Octen Docs\",\"url\":\"https://docs.octen.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/octen-ai/7a_UtFqtHVRx7z9z/logo/logo.svg?fit=max\u0026auto=format\u0026n=7a_UtFqtHVRx7z9z\u0026q=85\u0026s=26d2a863c023b0211afa7c6c0bce2d8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.octen.ai#website\",\"name\":\"Octen Docs\",\"url\":\"https://docs.octen.ai\",\"publisher\":{\"@id\":\"https://docs.octen.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.octen.ai/api-reference/get-search-agent#webpage\",\"url\":\"https://docs.octen.ai/api-reference/get-search-agent\",\"name\":\"Search Agent Result API Reference\",\"description\":\"Returns a Search Agent task by id.\",\"dateModified\":\"2026-11-02T11:04:41.877Z\",\"isPartOf\":{\"@id\":\"https://docs.octen.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.octen.ai/api-reference/get-search-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.octen.ai/api-reference/get-search-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Applications\",\"item\":\"https://docs.octen.ai/api-reference/answer\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search Agent Result API Reference\",\"item\":\"https://docs.octen.ai/api-reference/get-search-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.octen.ai/api-reference/get-search-agent#apireference\",\"headline\":\"Search Agent Result API Reference\",\"name\":\"Search Agent Result API Reference\",\"description\":\"Returns a Search Agent task by id.\",\"url\":\"https://docs.octen.ai/api-reference/get-search-agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.octen.ai/api-reference/get-search-agent#webpage\"},\"image\":\"https://octen.ai/_next/static/media/octen-cover.dc74905e.png\",\"dateModified\":\"2026-11-02T11:04:41.877Z\",\"publisher\":{\"@id\":\"https://docs.octen.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.octen.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Octen Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Octen Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview/welcome"}]},{"tab":"API Reference","groups":[{"group":"APIs","pages":[{"group":"Octen Pulse","pages":[{"title":"Pulse Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Pulse Search","openapi":"/api-reference/openapi.json post /pulse-search","href":"/api-reference/pulse-search"}]},{"group":"Octen Fast","pages":[{"title":"Broad Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Broad Search","openapi":"/api-reference/openapi.json post /broad-search","href":"/api-reference/broad-search"},{"title":"Web Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Web Search","openapi":"/api-reference/openapi.json post /search","href":"/api-reference/search"},{"title":"Image Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Image Search","openapi":"/api-reference/openapi.json post /image-search","href":"/api-reference/image-search"},{"title":"Video Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Search","openapi":"/api-reference/openapi.json post /video-search","href":"/api-reference/video-search"}]},{"group":"Octen Premier","pages":[{"title":"News Search API Reference","deprecated":null,"version":null,"sidebarTitle":"News Search","openapi":"/api-reference/openapi.json post /news-search","href":"/api-reference/news-search"},{"title":"Business Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Business Search","openapi":"/api-reference/openapi.json post /business-search","href":"/api-reference/business-search"},{"title":"Place Search API Reference","deprecated":null,"version":null,"sidebarTitle":"Place Search","openapi":"/api-reference/openapi.json post /place-search","href":"/api-reference/place-search"}]},{"title":"Extract API Reference","deprecated":null,"version":null,"sidebarTitle":"Extract","openapi":"/api-reference/openapi.json post /extract","href":"/api-reference/extract"},{"title":"Embedding API Reference","deprecated":null,"version":null,"sidebarTitle":"Embedding","openapi":"/api-reference/openapi.json post /embedding","href":"/api-reference/embedding"},{"title":"VL Embedding API Reference","deprecated":null,"version":null,"sidebarTitle":"VL Embedding","openapi":"/api-reference/openapi.json post /vl-embedding","href":"/api-reference/vl-embedding"}]},{"group":"Applications","pages":[{"title":"Answer API Reference","deprecated":null,"version":null,"sidebarTitle":"Answer","openapi":"/api-reference/openapi.json post /answer","href":"/api-reference/answer"},{"title":"Search Agent API Reference","description":"Runs a Search Agent task that answers a question with cited sources, as a Markdown answer or as JSON that matches your schema.","deprecated":null,"version":null,"sidebarTitle":"Search Agent","openapi":"/api-reference/openapi.json post /v1/agent","href":"/api-reference/post-search-agent"},{"title":"Search Agent Result API Reference","deprecated":null,"version":null,"sidebarTitle":"Search Agent Result","openapi":"/api-reference/openapi.json get /v1/agent/{task_id}","href":"/api-reference/get-search-agent"},{"title":"Deep Research API Reference","description":"Generates a deep research report at the selected tier. The `pro-visual` tier also returns relevant images and videos.\n\n**Two-phase invocation**\n- **Phase 1:** the server generates a research plan. If the plan has no ambiguity, the server proceeds directly to research and streams the final report. If the plan is ambiguous, the `plan` event carries `requires_selection=true` together with a `plan_id`, and the SSE stream ends there — waiting for the client to confirm.\n- **Phase 2:** call this endpoint again with the `plan_id` and `selections`. The server loads the stored plan, applies the selections, and streams the final report.\n\n**Notes**\n- Phase 2 only inherits the stored `plan` via `plan_id`. Other parameters are NOT inherited from Phase 1 — they must be supplied again in Phase 2, otherwise they fall back to defaults.\n- `messages` is required in both phases and should carry the same user question.","deprecated":null,"version":null,"sidebarTitle":"Deep Research","openapi":"/api-reference/openapi.json post /v1/research","href":"/api-reference/deep-research"},{"title":"Grounded Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Grounded Generation","openapi":"/api-reference/openapi.json post /v1/grounded-generation","href":"/api-reference/post-grounded-generation"},{"title":"Generation Result API Reference","deprecated":null,"version":null,"sidebarTitle":"Generation Result","openapi":"/api-reference/openapi.json get /v1/grounded-generation/{generation_id}","href":"/api-reference/get-grounded-generation"},{"group":"Auto Search","root":{"title":"LLM Chat (OpenAI-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (OpenAI-Compatible)","openapi":"/api-reference/openapi.json post /v1/chat/completions","href":"/api-reference/chat-completions"},"pages":[{"title":"LLM Chat (OpenAI-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (OpenAI-Compatible)","openapi":"/api-reference/openapi.json post /v1/chat/completions","href":"/api-reference/chat-completions"},{"title":"LLM Chat (Anthropic-Compatible) API Reference","deprecated":null,"version":null,"sidebarTitle":"LLM Chat (Anthropic-Compatible)","openapi":"/api-reference/openapi.json post /v1/messages","href":"/api-reference/messages"},{"title":"Image Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Image Generation","openapi":"/api-reference/openapi.json post /v1/images/generations","href":"/api-reference/images-generations"},{"title":"Video Generation API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Generation","openapi":"/api-reference/openapi.json post /v1/videos","href":"/api-reference/post-video"},{"title":"Video Download API Reference","deprecated":null,"version":null,"sidebarTitle":"Video Download","openapi":"/api-reference/openapi.json get /v1/videos/{id}","href":"/api-reference/get-video"}]}]}]}]},"basePath":"","title":"Search Agent Result API Reference - Octen Docs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}