{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Apiosk","description":"Ask a question, review the price, and get sourced data through the App, API, or MCP server.","colors":{"primary":"#8a4ef7","light":"#b39bff","dark":"#6d28d9"},"logo":{"light":"https://mintcdn.com/apiosk/ZHUz58mqube34NcZ/images/logo-light.png?fit=max\u0026auto=format\u0026n=ZHUz58mqube34NcZ\u0026q=85\u0026s=072ba3bb8f1dd67c0f0dab25751a1396","dark":"https://mintcdn.com/apiosk/ZHUz58mqube34NcZ/images/logo-dark.png?fit=max\u0026auto=format\u0026n=ZHUz58mqube34NcZ\u0026q=85\u0026s=16f4108d7ea144d82378f2a6317b144a","href":"https://apiosk.com"},"favicon":"https://mintcdn.com/apiosk/DM36AnaYUkuqZML4/images/favicon.svg?fit=max\u0026auto=format\u0026n=DM36AnaYUkuqZML4\u0026q=85\u0026s=cf060553de19e2d61d49666ad2f79e82","api":{"playground":{"display":"simple","proxy":false},"examples":{"defaults":"required","languages":["bash","typescript"],"prefill":false,"autogenerate":true}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#ffffff","dark":"#0b0b0f"}},"navbar":{"links":[{"href":"https://apiosk.com","label":"Back to Site"}]},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apiosk","hasAudioNarration":false,"actualSubdomain":"apiosk","customDomains":["docs.apiosk.com"],"gitSource":{"type":"github","owner":"apiosk","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6abd7158547562e4fc6d01e3","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API","count":32},{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Buy data","count":7},{"language":"default","tag":"Overview","count":6},{"language":"default","tag":"Start here","count":6},{"language":"default","tag":"Operating it","count":4},{"language":"default","tag":"App","count":3},{"language":"default","tag":"Your organisation","count":3},{"language":"default","tag":"MCP","count":2},{"language":"default","tag":"Assistants","count":2}]},"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":"rbac-expansion","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-container>div{max-width:none}@media (min-width: 1024px){#content-container{padding-left:3rem!important;padding-right:3rem!important}}@media (max-width: 1535px){#content-side-layout:has(#table-of-contents){display:none!important}}"}],"page":{"pagePath":"api-reference/run-a-plan","slug":"/api-reference/run-a-plan","pageMetadata":{"title":"Run a plan","description":"Approve the plan against this key's limits and run it. Running twice is the same run. Requires ask:execute.","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/asks/{id}/run","href":"/api-reference/run-a-plan","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: \"Approve the plan against this key’s limits and run it. Running twice is the same run. Requires ask:execute.\"\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":"Run a plan","description":"Approve the plan against this key's limits and run it. Running twice is the same run. Requires ask:execute.","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/asks/{id}/run","href":"/api-reference/run-a-plan","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Run a plan","operationId":"runAsk","description":"Approve the plan against this key's limits and run it. Running twice is the same run. Requires ask:execute.","parameters":["78b3642d-0804-4058-9e2b-061bc8ce7fcf"],"requestBody":"2d5a73c2-0c0c-4f07-8e9c-7ba87403303d","responses":{"200":"4871a3bb-08c7-4b57-a25c-c1e0933a8d4e","202":"9059be11-dcaf-4774-9b5a-629e16c15e0b","400":"df15b4c8-48a1-4bea-9172-4a6649066687","401":"53cab200-3872-47db-b564-96e2fb6ebe78","402":"7fdf2bc7-4201-4aba-bc1f-83a1bca41ca2","403":"9c40811a-505a-4161-960c-46363e0c18e7","404":"6958999d-a4d3-4a8d-bcc6-589fc35e68d8","409":"d25109d1-e6ef-4c9e-876e-0cd5d3bcd974","422":"d673dc5f-3822-40bf-af88-94661c5ff977","429":"66590ffe-5098-4559-807d-3d6516a76e2d","502":"7ae16a37-434c-469c-a3c3-649df2de20a3","503":"20b06597-42f8-4ada-85c9-eabb0b5d0f8f"},"method":"post","type":"path","servers":["133deab5-b0ee-4e31-a064-eab9def7b030"],"security":["84f1942c-1614-45d4-a0e3-82d72b9496ef"],"path":"/v2/asks/{id}/run","baseUrlOptions":["https://gateway.apiosk.com"],"title":"Run a plan","codeSamples":[],"requestExampleLanguages":["bash","typescript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"78b3642d-0804-4058-9e2b-061bc8ce7fcf":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"max_spend":{"type":"number","example":1,"uniqueKey":"max_spend","typeLabel":"number"},"limit":{"type":"integer","minimum":1,"maximum":50,"uniqueKey":"limit","typeLabel":"integer"},"wait_seconds":{"type":"integer","minimum":0,"maximum":55,"uniqueKey":"wait_seconds","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"max_spend":1,"limit":25,"wait_seconds":27}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"4871a3bb-08c7-4b57-a25c-c1e0933a8d4e":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["requires_approval","running","completed","partial","needs_input","needs_selection","unsupported","cancelled","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"question":{"type":"string","uniqueKey":"question","typeLabel":"string"},"plan":{"type":"object","properties":{"quote_ref":{"type":"string","format":"uuid","uniqueKey":"plan.quote_ref","typeLabel":"string\u003cuuid>"},"expires_at":{"type":"string","format":"date-time","uniqueKey":"plan.expires_at","typeLabel":"string\u003cdate-time>"},"steps":{"type":"array","items":{"type":"object","properties":{"source_id":{"type":"string","example":"kvk-dutch-business-register","uniqueKey":"plan.steps.items.[INDEX].source_id","typeLabel":"string"},"operation":{"type":"string","example":"company_registry.search","uniqueKey":"plan.steps.items.[INDEX].operation","typeLabel":"string"},"name":{"type":"string","uniqueKey":"plan.steps.items.[INDEX].name","typeLabel":"string"},"conditional":{"type":"boolean","uniqueKey":"plan.steps.items.[INDEX].conditional","typeLabel":"boolean"},"estimated_cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"plan.steps.items.[INDEX].estimated_cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"plan.steps.items.[INDEX].estimated_cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"plan.steps.items.[INDEX].estimated_cost.currency","typeLabel":"string"}},"uniqueKey":"plan.steps.items.[INDEX].estimated_cost","typeLabel":"object"}},"uniqueKey":"plan.steps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"plan.steps","typeLabel":"object[]"},"estimated_total":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"plan.estimated_total.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"plan.estimated_total.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"plan.estimated_total.currency","typeLabel":"string"}},"uniqueKey":"plan.estimated_total","typeLabel":"object"}},"uniqueKey":"plan","typeLabel":"object"},"answer":{"oneOf":[{"type":"object","description":"Apiosk's reading of the results, with evidence pointers. Null for a direct call.","uniqueKey":"answer.oneOf.0","typeLabel":"object"},{"type":"null","description":"Apiosk's reading of the results, with evidence pointers. Null for a direct call.","uniqueKey":"answer.oneOf.1","typeLabel":"null"}],"uniqueKey":"answer","typeLabel":"object | null"},"data":{"type":"object","description":"The source document, when the run produced exactly one.","uniqueKey":"data","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"result_ref":{"type":"string","format":"uuid","uniqueKey":"results.items.[INDEX].result_ref","typeLabel":"string\u003cuuid>"},"source":{"type":"object","properties":{"provider":{"type":"string","uniqueKey":"results.items.[INDEX].source.provider","typeLabel":"string"},"name":{"type":"string","uniqueKey":"results.items.[INDEX].source.name","typeLabel":"string"}},"uniqueKey":"results.items.[INDEX].source","typeLabel":"object"},"data":{"type":"object","uniqueKey":"results.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"usage":{"type":"object","properties":{"sources":{"type":"array","items":{"type":"object","properties":{"source_id":{"type":"string","uniqueKey":"usage.sources.items.[INDEX].source_id","typeLabel":"string"},"operation":{"type":"string","uniqueKey":"usage.sources.items.[INDEX].operation","typeLabel":"string"},"calls":{"type":"integer","uniqueKey":"usage.sources.items.[INDEX].calls","typeLabel":"integer"},"cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.sources.items.[INDEX].cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.sources.items.[INDEX].cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.sources.items.[INDEX].cost.currency","typeLabel":"string"}},"uniqueKey":"usage.sources.items.[INDEX].cost","typeLabel":"object"}},"uniqueKey":"usage.sources.items.[INDEX]","typeLabel":"object"},"uniqueKey":"usage.sources","typeLabel":"object[]"},"cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.cost.currency","typeLabel":"string"}},"uniqueKey":"usage.cost","typeLabel":"object"},"held":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.held.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.held.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.held.currency","typeLabel":"string"}},"uniqueKey":"usage.held","typeLabel":"object"}},"uniqueKey":"usage","typeLabel":"object"},"balance":{"type":"object","properties":{"remaining":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"balance.remaining.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"balance.remaining.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"balance.remaining.currency","typeLabel":"string"}},"uniqueKey":"balance.remaining","typeLabel":"object"}},"uniqueKey":"balance","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"retry_after_ms":{"type":"integer","uniqueKey":"retry_after_ms","typeLabel":"integer"},"message":{"oneOf":[{"type":"string","description":"Natural-language clarification for needs_input.","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Natural-language clarification for needs_input.","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"needs_input":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","uniqueKey":"needs_input.items.[INDEX].label","typeLabel":"string"},"schema":{"type":"object","uniqueKey":"needs_input.items.[INDEX].schema","typeLabel":"object"}},"uniqueKey":"needs_input.items.[INDEX]","typeLabel":"object"},"uniqueKey":"needs_input","typeLabel":"object[]"},"candidates":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"candidates.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"candidates.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"uniqueKey":"candidates.oneOf.1","typeLabel":"null"}],"uniqueKey":"candidates","typeLabel":"object[] | null"},"approval_required_reason":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"approval_required_reason.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"approval_required_reason.message","typeLabel":"string"}},"uniqueKey":"approval_required_reason","typeLabel":"object"},"metadata":{"type":"object","description":"Attribution for a single result, when present.","uniqueKey":"metadata","typeLabel":"object"},"continuation":{"type":"object","required":["state","actions"],"properties":{"state":{"type":"object","additionalProperties":false,"description":"Signed snapshot returned by this run. Copy unchanged.","required":["schema_version","state_ref","revision","expires_at","focus","state_token"],"properties":{"schema_version":{"type":"string","enum":["2"],"isRequired":true,"uniqueKey":"continuation.state.schema_version","typeLabel":"enum\u003cstring>"},"state_ref":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"continuation.state.state_ref","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"continuation.state.revision","typeLabel":"integer"},"expires_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"continuation.state.expires_at","typeLabel":"string\u003cdate-time>"},"focus":{"type":"object","additionalProperties":false,"required":["entity_refs","goal_refs"],"properties":{"entity_refs":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"continuation.state.focus.entity_refs.items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":true,"uniqueKey":"continuation.state.focus.entity_refs","typeLabel":"string\u003cuuid>[]"},"goal_refs":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"continuation.state.focus.goal_refs.items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":true,"uniqueKey":"continuation.state.focus.goal_refs","typeLabel":"string\u003cuuid>[]"}},"isRequired":true,"uniqueKey":"continuation.state.focus","typeLabel":"object"},"state_token":{"type":"string","isRequired":true,"uniqueKey":"continuation.state.state_token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"continuation.state","typeLabel":"object"},"actions":{"type":"array","minItems":1,"items":{"type":"object","required":["action_id","kind","label","requires_authorization","input_schema"],"properties":{"action_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].action_id","typeLabel":"string\u003cuuid>"},"kind":{"type":"string","enum":["select_entity","supply_input"],"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"type":"string","isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].label","typeLabel":"string"},"requires_authorization":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].requires_authorization","typeLabel":"boolean"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].input_schema","typeLabel":"object"}},"uniqueKey":"continuation.actions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"continuation.actions","typeLabel":"object[]"}},"uniqueKey":"continuation","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"requires_approval","question":"\u003cstring>","plan":{"quote_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","expires_at":"2023-11-07T05:31:56Z","steps":[{"source_id":"kvk-dutch-business-register","operation":"company_registry.search","name":"\u003cstring>","conditional":true,"estimated_cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}}],"estimated_total":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"answer":{},"data":{},"results":[{"result_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","source":{"provider":"\u003cstring>","name":"\u003cstring>"},"data":{}}],"usage":{"sources":[{"source_id":"\u003cstring>","operation":"\u003cstring>","calls":123,"cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}}],"cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"held":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"balance":{"remaining":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"errors":[{"code":"\u003cstring>","message":"\u003cstring>"}],"retry_after_ms":123,"message":"\u003cstring>","needs_input":[{"label":"\u003cstring>","schema":{}}],"candidates":[{}],"approval_required_reason":{"code":"\u003cstring>","message":"\u003cstring>"},"metadata":{},"continuation":{"state":{"schema_version":"2","state_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":1,"expires_at":"2023-11-07T05:31:56Z","focus":{"entity_refs":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"goal_refs":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]},"state_token":"\u003cstring>"},"actions":[{"action_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","kind":"select_entity","label":"\u003cstring>","requires_authorization":false,"input_schema":{}}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"9059be11-dcaf-4774-9b5a-629e16c15e0b":{"description":"Still running","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["requires_approval","running","completed","partial","needs_input","needs_selection","unsupported","cancelled","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"question":{"type":"string","uniqueKey":"question","typeLabel":"string"},"plan":{"type":"object","properties":{"quote_ref":{"type":"string","format":"uuid","uniqueKey":"plan.quote_ref","typeLabel":"string\u003cuuid>"},"expires_at":{"type":"string","format":"date-time","uniqueKey":"plan.expires_at","typeLabel":"string\u003cdate-time>"},"steps":{"type":"array","items":{"type":"object","properties":{"source_id":{"type":"string","example":"kvk-dutch-business-register","uniqueKey":"plan.steps.items.[INDEX].source_id","typeLabel":"string"},"operation":{"type":"string","example":"company_registry.search","uniqueKey":"plan.steps.items.[INDEX].operation","typeLabel":"string"},"name":{"type":"string","uniqueKey":"plan.steps.items.[INDEX].name","typeLabel":"string"},"conditional":{"type":"boolean","uniqueKey":"plan.steps.items.[INDEX].conditional","typeLabel":"boolean"},"estimated_cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"plan.steps.items.[INDEX].estimated_cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"plan.steps.items.[INDEX].estimated_cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"plan.steps.items.[INDEX].estimated_cost.currency","typeLabel":"string"}},"uniqueKey":"plan.steps.items.[INDEX].estimated_cost","typeLabel":"object"}},"uniqueKey":"plan.steps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"plan.steps","typeLabel":"object[]"},"estimated_total":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"plan.estimated_total.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"plan.estimated_total.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"plan.estimated_total.currency","typeLabel":"string"}},"uniqueKey":"plan.estimated_total","typeLabel":"object"}},"uniqueKey":"plan","typeLabel":"object"},"answer":{"oneOf":[{"type":"object","description":"Apiosk's reading of the results, with evidence pointers. Null for a direct call.","uniqueKey":"answer.oneOf.0","typeLabel":"object"},{"type":"null","description":"Apiosk's reading of the results, with evidence pointers. Null for a direct call.","uniqueKey":"answer.oneOf.1","typeLabel":"null"}],"uniqueKey":"answer","typeLabel":"object | null"},"data":{"type":"object","description":"The source document, when the run produced exactly one.","uniqueKey":"data","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"result_ref":{"type":"string","format":"uuid","uniqueKey":"results.items.[INDEX].result_ref","typeLabel":"string\u003cuuid>"},"source":{"type":"object","properties":{"provider":{"type":"string","uniqueKey":"results.items.[INDEX].source.provider","typeLabel":"string"},"name":{"type":"string","uniqueKey":"results.items.[INDEX].source.name","typeLabel":"string"}},"uniqueKey":"results.items.[INDEX].source","typeLabel":"object"},"data":{"type":"object","uniqueKey":"results.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"usage":{"type":"object","properties":{"sources":{"type":"array","items":{"type":"object","properties":{"source_id":{"type":"string","uniqueKey":"usage.sources.items.[INDEX].source_id","typeLabel":"string"},"operation":{"type":"string","uniqueKey":"usage.sources.items.[INDEX].operation","typeLabel":"string"},"calls":{"type":"integer","uniqueKey":"usage.sources.items.[INDEX].calls","typeLabel":"integer"},"cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.sources.items.[INDEX].cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.sources.items.[INDEX].cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.sources.items.[INDEX].cost.currency","typeLabel":"string"}},"uniqueKey":"usage.sources.items.[INDEX].cost","typeLabel":"object"}},"uniqueKey":"usage.sources.items.[INDEX]","typeLabel":"object"},"uniqueKey":"usage.sources","typeLabel":"object[]"},"cost":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.cost.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.cost.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.cost.currency","typeLabel":"string"}},"uniqueKey":"usage.cost","typeLabel":"object"},"held":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"usage.held.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"usage.held.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"usage.held.currency","typeLabel":"string"}},"uniqueKey":"usage.held","typeLabel":"object"}},"uniqueKey":"usage","typeLabel":"object"},"balance":{"type":"object","properties":{"remaining":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"balance.remaining.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"balance.remaining.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"balance.remaining.currency","typeLabel":"string"}},"uniqueKey":"balance.remaining","typeLabel":"object"}},"uniqueKey":"balance","typeLabel":"object"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"retry_after_ms":{"type":"integer","uniqueKey":"retry_after_ms","typeLabel":"integer"},"message":{"oneOf":[{"type":"string","description":"Natural-language clarification for needs_input.","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","description":"Natural-language clarification for needs_input.","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"needs_input":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","uniqueKey":"needs_input.items.[INDEX].label","typeLabel":"string"},"schema":{"type":"object","uniqueKey":"needs_input.items.[INDEX].schema","typeLabel":"object"}},"uniqueKey":"needs_input.items.[INDEX]","typeLabel":"object"},"uniqueKey":"needs_input","typeLabel":"object[]"},"candidates":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"candidates.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"candidates.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"uniqueKey":"candidates.oneOf.1","typeLabel":"null"}],"uniqueKey":"candidates","typeLabel":"object[] | null"},"approval_required_reason":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"approval_required_reason.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"approval_required_reason.message","typeLabel":"string"}},"uniqueKey":"approval_required_reason","typeLabel":"object"},"metadata":{"type":"object","description":"Attribution for a single result, when present.","uniqueKey":"metadata","typeLabel":"object"},"continuation":{"type":"object","required":["state","actions"],"properties":{"state":{"type":"object","additionalProperties":false,"description":"Signed snapshot returned by this run. Copy unchanged.","required":["schema_version","state_ref","revision","expires_at","focus","state_token"],"properties":{"schema_version":{"type":"string","enum":["2"],"isRequired":true,"uniqueKey":"continuation.state.schema_version","typeLabel":"enum\u003cstring>"},"state_ref":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"continuation.state.state_ref","typeLabel":"string\u003cuuid>"},"revision":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"continuation.state.revision","typeLabel":"integer"},"expires_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"continuation.state.expires_at","typeLabel":"string\u003cdate-time>"},"focus":{"type":"object","additionalProperties":false,"required":["entity_refs","goal_refs"],"properties":{"entity_refs":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"continuation.state.focus.entity_refs.items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":true,"uniqueKey":"continuation.state.focus.entity_refs","typeLabel":"string\u003cuuid>[]"},"goal_refs":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"continuation.state.focus.goal_refs.items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":true,"uniqueKey":"continuation.state.focus.goal_refs","typeLabel":"string\u003cuuid>[]"}},"isRequired":true,"uniqueKey":"continuation.state.focus","typeLabel":"object"},"state_token":{"type":"string","isRequired":true,"uniqueKey":"continuation.state.state_token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"continuation.state","typeLabel":"object"},"actions":{"type":"array","minItems":1,"items":{"type":"object","required":["action_id","kind","label","requires_authorization","input_schema"],"properties":{"action_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].action_id","typeLabel":"string\u003cuuid>"},"kind":{"type":"string","enum":["select_entity","supply_input"],"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"label":{"type":"string","isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].label","typeLabel":"string"},"requires_authorization":{"type":"boolean","const":false,"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].requires_authorization","typeLabel":"boolean"},"input_schema":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"continuation.actions.items.[INDEX].input_schema","typeLabel":"object"}},"uniqueKey":"continuation.actions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"continuation.actions","typeLabel":"object[]"}},"uniqueKey":"continuation","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"requires_approval","question":"\u003cstring>","plan":{"quote_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","expires_at":"2023-11-07T05:31:56Z","steps":[{"source_id":"kvk-dutch-business-register","operation":"company_registry.search","name":"\u003cstring>","conditional":true,"estimated_cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}}],"estimated_total":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"answer":{},"data":{},"results":[{"result_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","source":{"provider":"\u003cstring>","name":"\u003cstring>"},"data":{}}],"usage":{"sources":[{"source_id":"\u003cstring>","operation":"\u003cstring>","calls":123,"cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}}],"cost":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"held":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"balance":{"remaining":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"}},"errors":[{"code":"\u003cstring>","message":"\u003cstring>"}],"retry_after_ms":123,"message":"\u003cstring>","needs_input":[{"label":"\u003cstring>","schema":{}}],"candidates":[{}],"approval_required_reason":{"code":"\u003cstring>","message":"\u003cstring>"},"metadata":{},"continuation":{"state":{"schema_version":"2","state_ref":"3c90c3cc-0d44-4b50-8888-8dd25736052a","revision":1,"expires_at":"2023-11-07T05:31:56Z","focus":{"entity_refs":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"goal_refs":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]},"state_token":"\u003cstring>"},"actions":[{"action_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","kind":"select_entity","label":"\u003cstring>","requires_authorization":false,"input_schema":{}}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"df15b4c8-48a1-4bea-9172-4a6649066687":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"53cab200-3872-47db-b564-96e2fb6ebe78":{"description":"invalid_api_key, api_key_expired or api_key_revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"7fdf2bc7-4201-4aba-bc1f-83a1bca41ca2":{"description":"insufficient_balance or spend_limit_exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"9c40811a-505a-4161-960c-46363e0c18e7":{"description":"insufficient_scope or organisation_unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"6958999d-a4d3-4a8d-bcc6-589fc35e68d8":{"description":"source_not_found or operation_not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"d25109d1-e6ef-4c9e-876e-0cd5d3bcd974":{"description":"idempotency_conflict or request_in_progress","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"d673dc5f-3822-40bf-af88-94661c5ff977":{"description":"invalid_source_input","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"66590ffe-5098-4559-807d-3d6516a76e2d":{"description":"rate_limit_exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"7ae16a37-434c-469c-a3c3-649df2de20a3":{"description":"source_error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"20b06597-42f8-4ada-85c9-eabb0b5d0f8f":{"description":"service_unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_source_input","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"required_scope":{"type":"string","uniqueKey":"error.required_scope","typeLabel":"string"},"limit":{"type":"string","enum":["per_request","monthly","max_spend","daily"],"uniqueKey":"error.limit","typeLabel":"enum\u003cstring>"},"required":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.required.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.required.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.required.currency","typeLabel":"string"}},"uniqueKey":"error.required","typeLabel":"object"},"available":{"type":"object","properties":{"amount":{"type":"number","example":0.023,"uniqueKey":"error.available.amount","typeLabel":"number"},"amount_micro_usd":{"type":"string","example":"23000","uniqueKey":"error.available.amount_micro_usd","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"error.available.currency","typeLabel":"string"}},"uniqueKey":"error.available","typeLabel":"object"},"field":{"type":"string","uniqueKey":"error.field","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"error.missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.missing","typeLabel":"string[]"},"expected":{"type":"array","items":{"type":"string","uniqueKey":"error.expected.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.expected","typeLabel":"string[]"},"operations":{"type":"array","items":{"type":"string","uniqueKey":"error.operations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.operations","typeLabel":"string[]"},"retry_after_ms":{"type":"integer","uniqueKey":"error.retry_after_ms","typeLabel":"integer"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_source_input","message":"\u003cstring>","required_scope":"\u003cstring>","limit":"per_request","required":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"available":{"amount":0.023,"amount_micro_usd":"23000","currency":"USD"},"field":"\u003cstring>","missing":["\u003cstring>"],"expected":["\u003cstring>"],"operations":["\u003cstring>"],"retry_after_ms":123}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"84f1942c-1614-45d4-a0e3-82d72b9496ef":{"apiKey":{"type":"http","scheme":"bearer","description":"An organisation API key: Authorization: Bearer apk_org_live_…","scopes":[]}}},"servers":{"133deab5-b0ee-4e31-a064-eab9def7b030":{"url":"https://gateway.apiosk.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An organisation API key: Authorization: Bearer apk_org_live_…","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An organisation API key: Authorization: Bearer apk_org_live_…","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi/apiosk-api.json"},"subdomain":"apiosk","siteName":"Apiosk","title":"Run a plan - Apiosk","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-30T18:52:20.923Z","originalFileLocation":"api-reference/run-a-plan.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Approve the plan against this key\u0026#x27;s limits and run it. Running twice is the same run. Requires ask:execute.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Apiosk\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_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/apiosk/6JNOb6s7BYg7bfL8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run a plan - Apiosk\">\u003cmeta data-mint-head property=\"og:description\" content=\"Approve the plan against this key\u0026#x27;s limits and run it. Running twice is the same run. Requires ask:execute.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Apiosk\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apiosk.com/api-reference/run-a-plan\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apiosk.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Run+a+plan\u0026amp;description=Approve+the+plan+against+this+key%27s+limits+and+run+it.+Running+twice+is+the+same+run.+Requires+ask%3Aexecute.\u0026amp;theme=5b929ca4cb17c036b8416f60\u0026amp;signature=29117e6682b2e07ee680fef34982057fff1ea74c104cd97bb36b2e98576e4943\">\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=\"Run a plan - Apiosk\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Approve the plan against this key\u0026#x27;s limits and run it. Running twice is the same run. Requires ask:execute.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apiosk.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Run+a+plan\u0026amp;description=Approve+the+plan+against+this+key%27s+limits+and+run+it.+Running+twice+is+the+same+run.+Requires+ask%3Aexecute.\u0026amp;theme=5b929ca4cb17c036b8416f60\u0026amp;signature=29117e6682b2e07ee680fef34982057fff1ea74c104cd97bb36b2e98576e4943\">\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/apiosk/6JNOb6s7BYg7bfL8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Apiosk\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8a4ef7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apiosk.com/api-reference/run-a-plan\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/run-a-plan.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apiosk.com/#organization\",\"name\":\"Apiosk\",\"url\":\"https://docs.apiosk.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/apiosk/ZHUz58mqube34NcZ/images/logo-light.png?fit=max\u0026auto=format\u0026n=ZHUz58mqube34NcZ\u0026q=85\u0026s=072ba3bb8f1dd67c0f0dab25751a1396\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apiosk.com#website\",\"name\":\"Apiosk\",\"url\":\"https://docs.apiosk.com\",\"publisher\":{\"@id\":\"https://docs.apiosk.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apiosk.com/api-reference/run-a-plan#webpage\",\"url\":\"https://docs.apiosk.com/api-reference/run-a-plan\",\"name\":\"Run a plan\",\"description\":\"Approve the plan against this key's limits and run it. Running twice is the same run. Requires ask:execute.\",\"dateModified\":\"2026-09-30T18:52:20.923Z\",\"isPartOf\":{\"@id\":\"https://docs.apiosk.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apiosk.com/api-reference/run-a-plan#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apiosk.com/api-reference/run-a-plan#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.apiosk.com/api-reference/list-sources\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run a plan\",\"item\":\"https://docs.apiosk.com/api-reference/run-a-plan\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apiosk.com/api-reference/run-a-plan#apireference\",\"headline\":\"Run a plan\",\"name\":\"Run a plan\",\"description\":\"Approve the plan against this key's limits and run it. Running twice is the same run. Requires ask:execute.\",\"url\":\"https://docs.apiosk.com/api-reference/run-a-plan\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apiosk.com/api-reference/run-a-plan#webpage\"},\"dateModified\":\"2026-09-30T18:52:20.923Z\",\"publisher\":{\"@id\":\"https://docs.apiosk.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apiosk.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Apiosk\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Apiosk","nav":{"global":null,"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"API","groups":[{"group":"Buy data","pages":[{"title":"Authentication","href":"/api/authentication"},{"title":"Sources","href":"/api/sources"},{"title":"Call a source","href":"/api/execute"},{"title":"Ask","href":"/api/ask"},{"title":"European company and tender dossiers","href":"/api/workflows"},{"title":"Continue a run","href":"/api/continue"},{"title":"Runs","href":"/api/runs"}]},{"group":"Use cases","pages":[{"title":"Sales signals","href":"/api/sales-signals"}]},{"group":"Operating it","pages":[{"title":"Balance and usage","href":"/api/billing"},{"title":"Idempotency","href":"/api/idempotency"},{"title":"Errors","href":"/api/errors"},{"title":"Limits","href":"/api/limits"}]},{"group":"API Reference","pages":[{"title":"List sources","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/sources","href":"/api-reference/list-sources"},{"title":"Read one source","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/sources/{source_id}","href":"/api-reference/read-one-source"},{"title":"Call a source","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v1/execute/{source}/{operation}","href":"/api-reference/call-a-source"},{"title":"Call a source (explicit form)","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/sources/{source_id}/run","href":"/api-reference/call-a-source-explicit-form"},{"title":"Plan a question across sources","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/ask/plan","href":"/api-reference/plan-a-question-across-sources"},{"title":"Discover the same API choices as the Ask page","description":"Requires ask:create. A question uses the shared App interpreter/search and creates no task, approval or paid provider request. Explicit workflow objects retain their plan/auto behavior.","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/ask","href":"/api-reference/discover-the-same-api-choices-as-the-ask-page"},{"title":"Run a plan","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/asks/{id}/run","href":"/api-reference/run-a-plan"},{"title":"Continue a saved run","description":"Requires ask:execute and the same key that created the task. Submit a returned select_entity or supply_input action with its signed state. Resumes existing approved work without buying the search twice. Never approves a new quote. Idempotency-Key is required; retry the same state, action and input unchanged.","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/asks/{id}/continue","href":"/api-reference/continue-a-saved-run"},{"title":"Read a run","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/runs/{id}","href":"/api-reference/read-a-run"},{"title":"Balance and key limits","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/balance","href":"/api-reference/balance-and-key-limits"},{"title":"Usage for this key","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/usage","href":"/api-reference/usage-for-this-key"},{"title":"Call a source (v2 alias)","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/execute/{source}/{operation}","href":"/api-reference/call-a-source-v2-alias"},{"title":"Read an ask","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/asks/{id}","href":"/api-reference/read-an-ask"},{"title":"Public source readiness","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v1/source-readiness","href":"/api-reference/public-source-readiness"},{"title":"Gateway health","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /health","href":"/api-reference/gateway-health"},{"title":"Browse source endpoints","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/sources/{source_id}/endpoints","href":"/api-reference/browse-source-endpoints"},{"title":"Find fitting European source operations","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/capabilities/resolve","href":"/api-reference/find-fitting-european-source-operations"},{"title":"Price a structured European capability","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/capabilities/plan","href":"/api-reference/price-a-structured-european-capability"},{"title":"Execute the API selected from Ask","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json post /v2/execute","href":"/api-reference/execute-the-api-selected-from-ask"}]},{"group":"Ask","pages":[{"title":"List fixed workflows and country coverage","deprecated":null,"version":null,"openapi":"/openapi/apiosk-api.json get /v2/ask/workflows","href":"/api-reference/ask/list-fixed-workflows-and-country-coverage"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"App","pages":[{"title":"App","href":"/app/organisations"}]}]},"basePath":"","title":"Run a plan - Apiosk","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}