Make one coherent decision about a document (or pure context), guided by
explicit instructions and caller-supplied context.
Unlike /analyze — which researches each schema field independently — /decide
answers the whole schema in a single reasoning pass with tools (reading, search,
computation, vision) available on the way. Use it when the fields are facets of
one judgment: where to file a document, which branch a workflow should take,
what to rename a file.
Request parts:
instructions (required): what decision to make and what makes it correct.
context (optional): JSON array of {"label": ..., "content": ...} blocks —
folder listings, sibling decisions, established facts. Authoritative for the decision.
schema (required): typed schema of the decision fields.
file/url (optional): the document. Omit both for context-only decisions.
Response: data (schema-shaped, enforced by structured outputs), per-field
confidence, a single reasoning string for the whole decision, and sources.
Failures are errors: provider overload returns 503 with Retry-After;
provider errors return 502. A 200 always contains a real decision.
Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.
URL to POST the result to when async processing completes.
Response
Successful Response
Response for /decide — ONE coherent decision over the whole schema.
Unlike /analyze, reasoning is a single string and sources a single
list: the fields are facets of one judgment, so they share one rationale.
A failed decision is an HTTP error, never a null-with-zero-confidence.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"The Drive AI","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/thedriveai/7p_tCtj9qAPOIRij/logo/light.svg?fit=max\u0026auto=format\u0026n=7p_tCtj9qAPOIRij\u0026q=85\u0026s=729f2cc138ce2a3bfb9f73b9dcfc25b1","dark":"https://mintcdn.com/thedriveai/7p_tCtj9qAPOIRij/logo/dark.svg?fit=max\u0026auto=format\u0026n=7p_tCtj9qAPOIRij\u0026q=85\u0026s=a58150ea42b3f6c1a83fc16f2614b555"},"favicon":"https://mintcdn.com/thedriveai/iw4AQrNX1HQm5qm5/favicon.png?fit=max\u0026auto=format\u0026n=iw4AQrNX1HQm5qm5\u0026q=85\u0026s=89fdfcb0c008070c22f5086fedba1f9e","navbar":{"links":[{"href":"https://thedrive.ai/contact","label":"Contact"},{"href":"https://cal.com/bigyan","label":"Get a demo"}],"primary":{"type":"button","label":"Open App","href":"https://thedrive.ai"}},"footer":{"socials":{"discord":"https://discord.com/invite/mCnxKxyxPC","x":"https://x.com/thedriveai","linkedin":"https://linkedin.com/company/thedriveai","instagram":"https://instagram.com/thedriveai","reddit":"https://reddit.com/r/thedriveai"}},"seo":{"metatags":{"og:site_name":"The Drive AI Docs","og:type":"website","og:image":"https://thedrive.ai/cover.png","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@thedriveai","twitter:image":"https://thedrive.ai/cover.png"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://thedrive.ai"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/mCnxKxyxPC"},{"anchor":"MCP Server","icon":"plug","href":"https://thedrive.ai/mcp"},{"anchor":"Android App","icon":"android","href":"https://play.google.com/store/apps/details?id=com.bigyankarki.thedriveai\u0026referrer=utm_source%3Ddocs%26utm_medium%3Ddocs%26utm_campaign%3Dandroid_launch"},{"anchor":"iOS App","icon":"apple","href":"https://apps.apple.com/us/app/the-drive-ai-file-organizer/id6758524851"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thedriveai","hasAudioNarration":false,"actualSubdomain":"thedriveai","customDomains":["docs.thedrive.ai"],"gitSource":{"type":"github","owner":"thedriveai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adbd384158f708b7a4437d3","collectionId":"2697b941-3df2-48f4-8985-ed6e3231276b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adbd384158f708b7a4437d3"},"entitlements":{},"buildId":"6adbd384158f708b7a4437d3","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Documentation","count":46},{"language":"default","tag":"Developer API","count":18},{"language":"default","tag":"The Agent","count":12},{"language":"default","tag":"Getting Started","count":8},{"language":"default","tag":"Integrations","count":7},{"language":"default","tag":"Account","count":6},{"language":"default","tag":"Workflows","count":6},{"language":"default","tag":"Files","count":5},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Collaboration","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/decision/make-a-decision","slug":"/api-reference/decision/make-a-decision","pageMetadata":{"title":"Make a Decision","description":"Make **one coherent decision** about a document (or pure context), guided by\nexplicit instructions and caller-supplied context.\n\nUnlike `/analyze` — which researches each schema field independently — `/decide`\nanswers the whole schema in a single reasoning pass with tools (reading, search,\ncomputation, vision) available on the way. Use it when the fields are facets of\none judgment: where to file a document, which branch a workflow should take,\nwhat to rename a file.\n\n**Request parts**:\n- `instructions` (required): what decision to make and what makes it correct.\n- `context` (optional): JSON array of `{\"label\": ..., \"content\": ...}` blocks —\n folder listings, sibling decisions, established facts. Authoritative for the decision.\n- `schema` (required): typed schema of the decision fields.\n- `file`/`url` (optional): the document. Omit both for context-only decisions.\n\n**Response**: `data` (schema-shaped, enforced by structured outputs), per-field\n`confidence`, a single `reasoning` string for the whole decision, and `sources`.\n\n**Failures are errors**: provider overload returns `503` with `Retry-After`;\nprovider errors return `502`. A `200` always contains a real decision.\n\n**Pricing**: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/decide","href":"/api-reference/decision/make-a-decision","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Make \", _jsx(_components.strong, {\n children: \"one coherent decision\"\n }), \" about a document (or pure context), guided by\\nexplicit instructions and caller-supplied context.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Unlike \", _jsx(_components.code, {\n children: \"/analyze\"\n }), \" — which researches each schema field independently — \", _jsx(_components.code, {\n children: \"/decide\"\n }), \"\\nanswers the whole schema in a single reasoning pass with tools (reading, search,\\ncomputation, vision) available on the way. Use it when the fields are facets of\\none judgment: where to file a document, which branch a workflow should take,\\nwhat to rename a file.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Request parts\"\n }), \":\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"instructions\"\n }), \" (required): what decision to make and what makes it correct.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"context\"\n }), \" (optional): JSON array of \", _jsx(_components.code, {\n children: \"{\\\"label\\\": ..., \\\"content\\\": ...}\"\n }), \" blocks —\\nfolder listings, sibling decisions, established facts. Authoritative for the decision.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"schema\"\n }), \" (required): typed schema of the decision fields.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"file\"\n }), \"/\", _jsx(_components.code, {\n children: \"url\"\n }), \" (optional): the document. Omit both for context-only decisions.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Response\"\n }), \": \", _jsx(_components.code, {\n children: \"data\"\n }), \" (schema-shaped, enforced by structured outputs), per-field\\n\", _jsx(_components.code, {\n children: \"confidence\"\n }), \", a single \", _jsx(_components.code, {\n children: \"reasoning\"\n }), \" string for the whole decision, and \", _jsx(_components.code, {\n children: \"sources\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Failures are errors\"\n }), \": provider overload returns \", _jsx(_components.code, {\n children: \"503\"\n }), \" with \", _jsx(_components.code, {\n children: \"Retry-After\"\n }), \";\\nprovider errors return \", _jsx(_components.code, {\n children: \"502\"\n }), \". A \", _jsx(_components.code, {\n children: \"200\"\n }), \" always contains a real decision.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Pricing\"\n }), \": 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\"]\n })]\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":"Make a Decision","description":"Make **one coherent decision** about a document (or pure context), guided by\nexplicit instructions and caller-supplied context.\n\nUnlike `/analyze` — which researches each schema field independently — `/decide`\nanswers the whole schema in a single reasoning pass with tools (reading, search,\ncomputation, vision) available on the way. Use it when the fields are facets of\none judgment: where to file a document, which branch a workflow should take,\nwhat to rename a file.\n\n**Request parts**:\n- `instructions` (required): what decision to make and what makes it correct.\n- `context` (optional): JSON array of `{\"label\": ..., \"content\": ...}` blocks —\n folder listings, sibling decisions, established facts. Authoritative for the decision.\n- `schema` (required): typed schema of the decision fields.\n- `file`/`url` (optional): the document. Omit both for context-only decisions.\n\n**Response**: `data` (schema-shaped, enforced by structured outputs), per-field\n`confidence`, a single `reasoning` string for the whole decision, and `sources`.\n\n**Failures are errors**: provider overload returns `503` with `Retry-After`;\nprovider errors return `502`. A `200` always contains a real decision.\n\n**Pricing**: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/decide","href":"/api-reference/decision/make-a-decision","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["decision"],"summary":"Make a Decision","description":"Make **one coherent decision** about a document (or pure context), guided by\nexplicit instructions and caller-supplied context.\n\nUnlike `/analyze` — which researches each schema field independently — `/decide`\nanswers the whole schema in a single reasoning pass with tools (reading, search,\ncomputation, vision) available on the way. Use it when the fields are facets of\none judgment: where to file a document, which branch a workflow should take,\nwhat to rename a file.\n\n**Request parts**:\n- `instructions` (required): what decision to make and what makes it correct.\n- `context` (optional): JSON array of `{\"label\": ..., \"content\": ...}` blocks —\n folder listings, sibling decisions, established facts. Authoritative for the decision.\n- `schema` (required): typed schema of the decision fields.\n- `file`/`url` (optional): the document. Omit both for context-only decisions.\n\n**Response**: `data` (schema-shaped, enforced by structured outputs), per-field\n`confidence`, a single `reasoning` string for the whole decision, and `sources`.\n\n**Failures are errors**: provider overload returns `503` with `Retry-After`;\nprovider errors return `502`. A `200` always contains a real decision.\n\n**Pricing**: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.","operationId":"decide_document_api_v1_decide_post","parameters":["02047e47-12f0-483f-b9d0-39b36eb8d7f9"],"requestBody":"a065edd8-d2b5-4c79-bb86-641870b5e96d","responses":{"200":"9360d877-63a1-4584-9f8e-4d6943f59c55","400":"acbeb9f6-387b-4f7f-a573-531b56073b50","413":"a38e05cc-04e7-4192-b381-eceb1802d679","422":"474cc4ac-44cf-49be-8de3-33cca16b0d94","502":"df11fbac-9a4f-4961-8fd9-24efbb6cda17","503":"be7b48f4-9720-4e59-ad95-37c25c936add"},"method":"post","type":"path","servers":[],"security":[],"path":"/api/v1/decide","baseUrlOptions":[],"title":"Make a Decision","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"02047e47-12f0-483f-b9d0-39b36eb8d7f9":{"name":"X-API-Key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"properties":{"instructions":{"type":"string","title":"Instructions","description":"What decision to make, and what makes it correct","isRequired":true,"uniqueKey":"instructions","typeLabel":"string"},"schema":{"type":"string","title":"Schema","description":"Typed schema of the decision fields","isRequired":true,"uniqueKey":"schema","typeLabel":"string"},"file":{"oneOf":[{"type":"string","title":"File","description":"Document to decide about","contentMediaType":"application/octet-stream","uniqueKey":"file.oneOf.0","typeLabel":"file"},{"type":"null","title":"File","description":"Document to decide about","uniqueKey":"file.oneOf.1","typeLabel":"null"}],"uniqueKey":"file","typeLabel":"file | null"},"url":{"oneOf":[{"type":"string","title":"Url","description":"URL to fetch the document from","uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","description":"URL to fetch the document from","uniqueKey":"url.oneOf.1","typeLabel":"null"}],"uniqueKey":"url","typeLabel":"string | null"},"url_headers":{"oneOf":[{"type":"string","title":"Url Headers","description":"JSON-encoded headers for URL auth","uniqueKey":"url_headers.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url Headers","description":"JSON-encoded headers for URL auth","uniqueKey":"url_headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"url_headers","typeLabel":"string | null"},"context":{"oneOf":[{"type":"string","title":"Context","description":"JSON array of {\"label\", \"content\"} context blocks","uniqueKey":"context.oneOf.0","typeLabel":"string"},{"type":"null","title":"Context","description":"JSON array of {\"label\", \"content\"} context blocks","uniqueKey":"context.oneOf.1","typeLabel":"null"}],"uniqueKey":"context","typeLabel":"string | null"},"include_steps":{"type":"boolean","title":"Include Steps","description":"Include the agent's tool-call trace","default":false,"uniqueKey":"include_steps","typeLabel":"boolean"},"sync":{"type":"boolean","title":"Sync","description":"Set to false to process asynchronously. Returns a task_id to poll.","default":true,"uniqueKey":"sync","typeLabel":"boolean"},"webhook_url":{"oneOf":[{"type":"string","title":"Webhook Url","description":"URL to POST the result to when async processing completes.","uniqueKey":"webhook_url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Webhook Url","description":"URL to POST the result to when async processing completes.","uniqueKey":"webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"webhook_url","typeLabel":"string | null"}},"type":"object","required":["instructions","schema"],"title":"Body_decide_document_api_v1_decide_post","uniqueKey":"","typeLabel":"Body_decide_document_api_v1_decide_post · object"},"examples":{"Example":{"title":"Example","value":{"instructions":"\u003cstring>","schema":"\u003cstring>","file":"\u003cstring>","url":"\u003cstring>","url_headers":"\u003cstring>","context":"\u003cstring>","include_steps":false,"sync":true,"webhook_url":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9360d877-63a1-4584-9f8e-4d6943f59c55":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Decision values keyed by field name","isRequired":true,"uniqueKey":"data","typeLabel":"Data · object"},"model_used":{"type":"string","title":"Model Used","description":"Model used for the decision","isRequired":true,"uniqueKey":"model_used","typeLabel":"string"},"success":{"type":"boolean","title":"Success","default":true,"uniqueKey":"success","typeLabel":"boolean"},"confidence":{"additionalProperties":{"type":"number","uniqueKey":"confidence.additionalProperties","typeLabel":"number"},"type":"object","title":"Confidence","description":"Per-field confidence scores (0.0–1.0)","uniqueKey":"confidence","typeLabel":"Confidence · object"},"reasoning":{"type":"string","title":"Reasoning","description":"One coherent explanation of the decision as a whole","default":"","uniqueKey":"reasoning","typeLabel":"string"},"sources":{"items":{"type":"string","uniqueKey":"sources.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Sources","description":"Quotes from the document/context that support the decision","uniqueKey":"sources","typeLabel":"string[]"},"steps":{"items":{"properties":{"tool":{"type":"string","title":"Tool","description":"Tool that was called","isRequired":true,"uniqueKey":"steps.items.[INDEX].tool","typeLabel":"string"},"args":{"additionalProperties":true,"type":"object","title":"Args","description":"Arguments passed to the tool","uniqueKey":"steps.items.[INDEX].args","typeLabel":"Args · object"},"result_preview":{"type":"string","title":"Result Preview","description":"First 200 chars of the tool output","default":"","uniqueKey":"steps.items.[INDEX].result_preview","typeLabel":"string"}},"type":"object","required":["tool"],"title":"AgentStepResponse","description":"One step in the agent's reasoning trace.","uniqueKey":"steps.items.[INDEX]","typeLabel":"AgentStepResponse · object"},"type":"array","title":"Steps","description":"Agent tool-call trace. Empty unless include_steps=true.","uniqueKey":"steps","typeLabel":"AgentStepResponse · object[]"},"filename":{"oneOf":[{"type":"string","title":"Filename","description":"Original filename or URL (null for context-only decisions)","uniqueKey":"filename.oneOf.0","typeLabel":"string"},{"type":"null","title":"Filename","description":"Original filename or URL (null for context-only decisions)","uniqueKey":"filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"filename","typeLabel":"string | null"},"content_type":{"oneOf":[{"type":"string","title":"Content Type","description":"Detected MIME type","uniqueKey":"content_type.oneOf.0","typeLabel":"string"},{"type":"null","title":"Content Type","description":"Detected MIME type","uniqueKey":"content_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"content_type","typeLabel":"string | null"},"text_length":{"type":"integer","title":"Text Length","description":"Length of extracted document text (0 for context-only)","default":0,"uniqueKey":"text_length","typeLabel":"integer"},"total_pages":{"type":"integer","title":"Total Pages","description":"Total pages in the document (0 for non-paginated files)","default":0,"uniqueKey":"total_pages","typeLabel":"integer"},"credits_used":{"type":"integer","title":"Credits Used","description":"Credits consumed","default":0,"uniqueKey":"credits_used","typeLabel":"integer"},"schema_format":{"oneOf":[{"type":"string","title":"SchemaFormat","description":"Schema format: always 'typed'","enum":["typed"],"uniqueKey":"schema_format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Schema format: always 'typed'","uniqueKey":"schema_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"schema_format","typeLabel":"enum\u003cstring> | null"}},"type":"object","required":["data","model_used"],"title":"DecideResponse","description":"Response for /decide — ONE coherent decision over the whole schema.\n\nUnlike /analyze, `reasoning` is a single string and `sources` a single\nlist: the fields are facets of one judgment, so they share one rationale.\nA failed decision is an HTTP error, never a null-with-zero-confidence.","example":{"confidence":{"destination_path":0.92},"content_type":"application/pdf","credits_used":5,"data":{"destination_path":"billing/Acme Corp/2026/Apr"},"filename":"invoice.pdf","model_used":"gpt-5.1","reasoning":"The invoice names Acme Corp and is dated April 2026; the instruction files by client, then year, then month, and 'billing/Acme Corp' already exists in the provided folder list.","sources":["Bill To: Acme Corp","Invoice Date: April 3, 2026"],"success":true,"text_length":3200,"total_pages":2},"uniqueKey":"","typeLabel":"DecideResponse · object"},"examples":{"Example":{"title":"Example","value":{"confidence":{"destination_path":0.92},"content_type":"application/pdf","credits_used":5,"data":{"destination_path":"billing/Acme Corp/2026/Apr"},"filename":"invoice.pdf","model_used":"gpt-5.1","reasoning":"The invoice names Acme Corp and is dated April 2026; the instruction files by client, then year, then month, and 'billing/Acme Corp' already exists in the provided folder list.","sources":["Bill To: Acme Corp","Invoice Date: April 3, 2026"],"success":true,"text_length":3200,"total_pages":2}}},"exampleType":"generated"}},"exampleType":"generated"},"acbeb9f6-387b-4f7f-a573-531b56073b50":{"description":"Invalid request","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","title":"Detail","description":"Human-readable error message","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"success":{"type":"boolean","title":"Success","default":false,"uniqueKey":"success","typeLabel":"boolean"}},"type":"object","required":["error","detail"],"title":"ErrorResponse","description":"Standard error response.","example":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false}}},"exampleType":"generated"}},"exampleType":"generated"},"a38e05cc-04e7-4192-b381-eceb1802d679":{"description":"File too large","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","title":"Detail","description":"Human-readable error message","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"success":{"type":"boolean","title":"Success","default":false,"uniqueKey":"success","typeLabel":"boolean"}},"type":"object","required":["error","detail"],"title":"ErrorResponse","description":"Standard error response.","example":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false}}},"exampleType":"generated"}},"exampleType":"generated"},"474cc4ac-44cf-49be-8de3-33cca16b0d94":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"df11fbac-9a4f-4961-8fd9-24efbb6cda17":{"description":"AI provider failed (not retryable)","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","title":"Detail","description":"Human-readable error message","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"success":{"type":"boolean","title":"Success","default":false,"uniqueKey":"success","typeLabel":"boolean"}},"type":"object","required":["error","detail"],"title":"ErrorResponse","description":"Standard error response.","example":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false}}},"exampleType":"generated"}},"exampleType":"generated"},"be7b48f4-9720-4e59-ad95-37c25c936add":{"description":"AI provider overloaded (retry with backoff)","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","title":"Detail","description":"Human-readable error message","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"success":{"type":"boolean","title":"Success","default":false,"uniqueKey":"success","typeLabel":"boolean"}},"type":"object","required":["error","detail"],"title":"ErrorResponse","description":"Standard error response.","example":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false},"uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":"File size exceeds maximum allowed (50MB)","error":"validation_error","success":false}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{}},"originalFileLocation":"openapi.json"},"subdomain":"thedriveai","siteName":"The Drive AI","title":"Make a Decision - The Drive AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T05:02:03.743Z","originalFileLocation":"api-reference/decision/make-a-decision.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=\"Make one coherent decision about a document (or pure context), guided by explicit instructions and caller-supplied context. Unlike /analyze — which researches each schema field independently — /decide answers the whole schema in a single reasoning pass with tools (reading, search, computation, vision) available on the way. Use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file. Request parts: - instructions (required): what decision to make and what makes it correct. - context (optional): JSON array of {\u0026quot;label\u0026quot;: ..., \u0026quot;content\u0026quot;: ...} blocks — folder listings, sibling decisions, established facts. Authoritative for the decision. - schema (required): typed schema of the decision fields. - file/url (optional): the document. Omit both for context-only decisions. Response: data (schema-shaped, enforced by structured outputs), per-field confidence, a single reasoning string for the whole decision, and sources. Failures are errors: provider overload returns 503 with Retry-After; provider errors return 502. A 200 always contains a real decision. Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\">\u003cmeta data-mint-head name=\"application-name\" content=\"The Drive AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_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/thedriveai/OKDmHqZLcGHpxgyK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Make a Decision - The Drive AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Make one coherent decision about a document (or pure context), guided by explicit instructions and caller-supplied context. Unlike /analyze — which researches each schema field independently — /decide answers the whole schema in a single reasoning pass with tools (reading, search, computation, vision) available on the way. Use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file. Request parts: - instructions (required): what decision to make and what makes it correct. - context (optional): JSON array of {\u0026quot;label\u0026quot;: ..., \u0026quot;content\u0026quot;: ...} blocks — folder listings, sibling decisions, established facts. Authoritative for the decision. - schema (required): typed schema of the decision fields. - file/url (optional): the document. Omit both for context-only decisions. Response: data (schema-shaped, enforced by structured outputs), per-field confidence, a single reasoning string for the whole decision, and sources. Failures are errors: provider overload returns 503 with Retry-After; provider errors return 502. A 200 always contains a real decision. Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"The Drive AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thedrive.ai/api-reference/decision/make-a-decision\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thedrive.ai/cover.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=\"Make a Decision - The Drive AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Make one coherent decision about a document (or pure context), guided by explicit instructions and caller-supplied context. Unlike /analyze — which researches each schema field independently — /decide answers the whole schema in a single reasoning pass with tools (reading, search, computation, vision) available on the way. Use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file. Request parts: - instructions (required): what decision to make and what makes it correct. - context (optional): JSON array of {\u0026quot;label\u0026quot;: ..., \u0026quot;content\u0026quot;: ...} blocks — folder listings, sibling decisions, established facts. Authoritative for the decision. - schema (required): typed schema of the decision fields. - file/url (optional): the document. Omit both for context-only decisions. Response: data (schema-shaped, enforced by structured outputs), per-field confidence, a single reasoning string for the whole decision, and sources. Failures are errors: provider overload returns 503 with Retry-After; provider errors return 502. A 200 always contains a real decision. Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thedrive.ai/cover.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/thedriveai/OKDmHqZLcGHpxgyK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"The Drive AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thedrive.ai/api-reference/decision/make-a-decision\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/decision/make-a-decision.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thedrive.ai/#organization\",\"name\":\"The Drive AI\",\"url\":\"https://docs.thedrive.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thedriveai/7p_tCtj9qAPOIRij/logo/light.svg?fit=max\u0026auto=format\u0026n=7p_tCtj9qAPOIRij\u0026q=85\u0026s=729f2cc138ce2a3bfb9f73b9dcfc25b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thedrive.ai#website\",\"name\":\"The Drive AI\",\"url\":\"https://docs.thedrive.ai\",\"publisher\":{\"@id\":\"https://docs.thedrive.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision#webpage\",\"url\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision\",\"name\":\"Make a Decision\",\"description\":\"Make one coherent decision about a document (or pure context), guided by explicit instructions and caller-supplied context. Unlike /analyze — which researches each schema field independently — /decide answers the whole schema in a single reasoning pass with tools (reading, search, computation, vision) available on the way. Use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file. Request parts: - instructions (required): what decision to make and what makes it correct. - context (optional): JSON array of {\\\"label\\\": ..., \\\"content\\\": ...} blocks — folder listings, sibling decisions, established facts. Authoritative for the decision. - schema (required): typed schema of the decision fields. - file/url (optional): the document. Omit both for context-only decisions. Response: data (schema-shaped, enforced by structured outputs), per-field confidence, a single reasoning string for the whole decision, and sources. Failures are errors: provider overload returns 503 with Retry-After; provider errors return 502. A 200 always contains a real decision. Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\",\"dateModified\":\"2026-10-06T05:02:03.743Z\",\"isPartOf\":{\"@id\":\"https://docs.thedrive.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"The Drive AI\",\"item\":\"https://docs.thedrive.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make a Decision\",\"item\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision#apireference\",\"headline\":\"Make a Decision\",\"name\":\"Make a Decision\",\"description\":\"Make one coherent decision about a document (or pure context), guided by explicit instructions and caller-supplied context. Unlike /analyze — which researches each schema field independently — /decide answers the whole schema in a single reasoning pass with tools (reading, search, computation, vision) available on the way. Use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file. Request parts: - instructions (required): what decision to make and what makes it correct. - context (optional): JSON array of {\\\"label\\\": ..., \\\"content\\\": ...} blocks — folder listings, sibling decisions, established facts. Authoritative for the decision. - schema (required): typed schema of the decision fields. - file/url (optional): the document. Omit both for context-only decisions. Response: data (schema-shaped, enforced by structured outputs), per-field confidence, a single reasoning string for the whole decision, and sources. Failures are errors: provider overload returns 503 with Retry-After; provider errors return 502. A 200 always contains a real decision. Pricing: 2 credits/page (min 5) for documents, 10 for websites, 5 for context-only.\",\"url\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thedrive.ai/api-reference/decision/make-a-decision#webpage\"},\"image\":\"https://thedrive.ai/cover.png\",\"dateModified\":\"2026-10-06T05:02:03.743Z\",\"publisher\":{\"@id\":\"https://docs.thedrive.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thedrive.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"The Drive AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"The Drive AI","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://thedrive.ai"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/mCnxKxyxPC"},{"anchor":"MCP Server","icon":"plug","href":"https://thedrive.ai/mcp"},{"anchor":"Android App","icon":"android","href":"https://play.google.com/store/apps/details?id=com.bigyankarki.thedriveai\u0026referrer=utm_source%3Ddocs%26utm_medium%3Ddocs%26utm_campaign%3Dandroid_launch"},{"anchor":"iOS App","icon":"apple","href":"https://apps.apple.com/us/app/the-drive-ai-file-organizer/id6758524851"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"tab":"Developer API","groups":[{"group":"Getting Started","pages":[{"title":"Developer Platform","href":"/developer/introduction"},{"title":"Quickstart","href":"/developer/quickstart"},{"title":"Schemas","href":"/developer/schemas"}]},{"group":"Guides","pages":[{"title":"Analyze","href":"/developer/analyze"},{"title":"Decide","href":"/developer/decide"},{"title":"Cross-Analyze","href":"/developer/cross-analyze"},{"title":"Async \u0026 Webhooks","href":"/developer/webhooks"}]},{"group":"Extraction","pages":[{"title":"Extract Structured Data","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/extract","href":"/api-reference/extraction/extract-structured-data"},{"title":"Batch Extract","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/extract/batch","href":"/api-reference/batch/batch-extract"}]},{"group":"Analysis","pages":[{"title":"Analyze Document","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/analyze","href":"/api-reference/analysis/analyze-document"},{"title":"Cross-Document Analysis","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/analyze/cross","href":"/api-reference/analysis/cross-document-analysis"},{"title":"Batch Analyze","description":"Submit multiple files or URLs for analysis with a single schema.\nEach item is processed concurrently. Returns a batch_id to poll.\n\n**Poll**: `GET /api/v1/jobs/batch/{batch_id}`\n\n**Limits**: Maximum 10 items per batch.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/analyze/batch","href":"/api-reference/batch/batch-analyze"}]},{"group":"Decision","pages":[{"title":"Make a Decision","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/decide","href":"/api-reference/decision/make-a-decision"}]},{"group":"Utilities","pages":[{"title":"Convert to Markdown","description":"Convert a file or URL to markdown.\n\n**File Upload**: Use multipart/form-data with a `file` field.\n\n**URL Fetch**: Provide a `url` field. For websites (HTML), uses a headless browser\nto render the page before converting — handles JS-heavy sites.\n\n**Supported formats**: PDF, DOCX, PPTX, XLSX, CSV, HTML, images, audio,\ncode files, and any URL via headless browser rendering.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/markdown/convert","href":"/api-reference/markdown/convert-to-markdown"},{"title":"Generate Thumbnail","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/thumbnails/generate","href":"/api-reference/thumbnails/generate-thumbnail"}]},{"group":"Jobs \u0026 Webhooks","pages":[{"title":"Get Task Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jobs/{task_id}","href":"/api-reference/jobs/get-task-status"},{"title":"Get Batch Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jobs/batch/{batch_id}","href":"/api-reference/jobs/get-batch-status"},{"title":"Get Webhook Deliveries","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jobs/{task_id}/deliveries","href":"/api-reference/jobs/get-webhook-deliveries"}]}]}]},"title":"Make a Decision - The Drive AI","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}