Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.
# Async usage is similar, just use async_client and awaitresult = client.upload.upload_text( tenant_id="tenant_1234", sub_tenant_id="sub_tenant_4567", content="Your text content here", file_id="text_doc_123456", tenant_metadata={}, document_metadata={})
Upload text content directly to your tenant’s knowledge base. The text will be processed, chunked, and indexed for search and retrieval.
Embedding quality is assessed for optimal retrieval performance
Processing Time: Text content is typically processed and searchable within 1-3 minutes. Large text blocks (10,000+ words) may take up to 5 minutes. You can check processing status using the document ID returned in the response.
Default Sub-Tenant Behavior: If you don’t specify a sub_tenant_id, the text content will be uploaded to the default sub-tenant created when your tenant was set up. This is perfect for organization-wide content that should be accessible across all departments.
File ID Management: The system uses a priority-based approach for file ID assignment:
First Priority: If you provide a file_id as a direct body parameter, that specific ID will be used
Second Priority: If no direct file_id is provided, the system checks for a file_id in the document_metadata object
Auto-Generation: If neither source provides a file_id, the system will automatically generate a unique identifier
When you upload text content with a file_id that already exists in your tenant:
Overwrite Behavior: The existing text content with the same file_id will be completely replaced with the new content
Processing: The new text content will go through the full processing pipeline (validation, chunking, embedding generation, indexing)
Search Results: Previous search results and embeddings from the old content will be replaced with the new content
Idempotency: Uploading the same text content with the same file_id multiple times is safe and will result in the same final state
Important: When overwriting existing text content, all previous chunks, embeddings, and search indexes associated with that file_id will be permanently removed and replaced. This action cannot be undone.
Example Success Response for Duplicate File ID:
{ "message": "Text content uploaded successfully. Existing content with file_id 'text_123456' has been overwritten.", "file_id": "text_123456", "status": "success"}
Your text content will progress through these states:
queued: Text content is in the processing queue, waiting to be processed
in_progress: Text content is actively being processed (includes validation, chunking, embedding generation, and indexing)
success: Text content is fully processed and searchable
errored: Processing encountered an error (rare occurrence)
In-Progress Details: While the status shows in_progress, the system is actually performing multiple steps: content validation, format detection, intelligent chunking, embedding generation, and database indexing. These happen sequentially but are all part of the single in_progress state.
Once processing is complete, your text content will be:
✅ Searchable via semantic search and Q&A endpoints
✅ Retrievable through our retrieval APIs
✅ Available for AI-powered applications
✅ Indexed for fast query performance
Important: Don’t attempt to search or retrieve your text content immediately after upload. Wait for processing to complete (typically 1-3 minutes) to ensure optimal results.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cortex SDK","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0","dark":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/dark.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=60bcfb5d423a574bd4d5d9e215e9c9ab"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:founders@usecortex.ai"}],"primary":{"type":"button","label":"Website","href":"https://www.usecortex.ai"}},"contextual":{"options":["copy","chatgpt","claude","perplexity"]},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-ad5578da","hasAudioNarration":false,"actualSubdomain":"cortex-ad5578da","customDomains":[],"gitSource":{"type":"github","owner":"usefindr","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae929af9035b3471a2599bb:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"Essentials","count":11},{"language":"default","tag":"Embeddings","count":5},{"language":"default","tag":"Knowledge Management","count":5},{"language":"default","tag":"Use Cases","count":5},{"language":"default","tag":"Knowledge Ingestion","count":4},{"language":"default","tag":"Query \u0026 Retrieval","count":3},{"language":"default","tag":"API Documentation","count":3},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{},"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":"*,*::before,*::after{box-sizing:border-box}#content-side-layout div.code-group{display:none}.panel.w-full.xl\\:w-\\[28rem\\].mb-6.relative.max-h-\\[calc\\(100\\%-32px\\)\\].overflow-y-auto:has(#table-of-contents-custom){max-height:none!important;overflow:visible!important}:where(.mt-8.lg\\:mt-0.flex.flex-col.gap-6.xl\\:hidden.max-h-\\[30rem\\]),:where([class*=\"mt-8\"][class*=\"lg:mt-0\"][class*=\"flex\"][class*=\"flex-col\"][class*=\"gap-6\"][class*=\"xl:hidden\"][class*=\"max-h-[30rem]\"]){display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;width:0!important;padding:0!important;margin:0!important;position:absolute!important;clip:rect(0, 0, 0, 0)!important;overflow:hidden!important}#content-side-layout{max-width:18rem!important}#content-area{width:calc(100% - 20rem)!important}#chat-assistant-sheet{display:none!important}#navbar{position:fixed}@media (min-width: 1024px){#header.relative{margin-top:7rem}}"}],"page":{"pagePath":"api-reference/endpoint/upload-content","slug":"/api-reference/endpoint/upload-content","pageMetadata":{"title":"Upload Content","openapi":"POST /ingestion/upload-content","description":"Upload raw text or markdown content for ingestion.\nSupports both single and batch uploads via the contents list in the request.","href":"/api-reference/endpoint/upload-content"},"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: \"Upload raw text or markdown content for ingestion.\\nSupports both single and batch uploads via the contents list in the request.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Note,Tab,Tabs,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Tip,{children:[` Hit the `,_jsx(_components.code,{children:`Try it`}),` button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.`]}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`API Request`,id:`api-request`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.usecortex.ai/ingestion/upload-content'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accept: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contents\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content\": \"# Introduction\\\\n\\\\nThis is the document content.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"is_markdown\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_metadata\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"document_metadata\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"relations\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_tenant_id\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"upsert\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})}),_jsx(Tab,{title:`TypeScript`,id:`typescript`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`upload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`uploadText`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sub_tenant_4567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Your text content here\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text_doc_123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document_metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})}),_jsx(Tab,{title:`Python (Sync)`,id:`python-sync`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Async usage is similar, just use async_client and await`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.upload.upload_text(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_tenant_4567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Your text content here\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text_doc_123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` document_metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})})]}),`\n`,_jsx(_components.p,{children:`Upload text content directly to your tenant’s knowledge base. The text will be processed, chunked, and indexed for search and retrieval.`}),`\n`,_jsx(Heading,{level:`2`,id:`text-processing-pipeline`,children:`Text Processing Pipeline`}),`\n`,_jsx(_components.p,{children:`When you upload text content, it goes through a streamlined processing pipeline optimized for direct text input:`}),`\n`,_jsxs(Heading,{level:`3`,id:`1-immediate-upload-\u0026-queue`,children:[`1. `,_jsx(_components.strong,{children:`Immediate Upload \u0026 Queue`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Your text content is immediately accepted and stored securely`}),`\n`,_jsx(_components.li,{children:`It’s added to our processing queue for background processing`}),`\n`,_jsxs(_components.li,{children:[`You receive a confirmation response with a `,_jsx(_components.code,{children:`file_id`}),` for tracking`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`2-text-processing-phase`,children:[`2. `,_jsx(_components.strong,{children:`Text Processing Phase`})]}),`\n`,_jsx(_components.p,{children:`Our system automatically handles:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Content Validation`}),`: Ensuring text content is properly formatted and accessible`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Format Detection`}),`: Identifying markdown, plain text, or structured content`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text Normalization`}),`: Cleaning and standardizing text formatting`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`3-intelligent-chunking`,children:[`3. `,_jsx(_components.strong,{children:`Intelligent Chunking`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Text is split into semantically meaningful chunks`}),`\n`,_jsx(_components.li,{children:`Chunk size is optimized for both context preservation and search accuracy`}),`\n`,_jsx(_components.li,{children:`Overlapping boundaries ensure no information is lost between chunks`}),`\n`,_jsx(_components.li,{children:`Metadata is preserved and associated with each chunk`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`4-embedding-generation`,children:[`4. `,_jsx(_components.strong,{children:`Embedding Generation`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Each chunk is converted into high-dimensional vector embeddings`}),`\n`,_jsx(_components.li,{children:`Embeddings capture semantic meaning and context`}),`\n`,_jsx(_components.li,{children:`Vectors are optimized for similarity search and retrieval`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`5-indexing-\u0026-database-updates`,children:[`5. `,_jsx(_components.strong,{children:`Indexing \u0026 Database Updates`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Embeddings are stored in our vector database for fast similarity search`}),`\n`,_jsx(_components.li,{children:`Full-text search indexes are created for keyword-based queries`}),`\n`,_jsx(_components.li,{children:`Metadata is indexed for filtering and faceted search`}),`\n`,_jsx(_components.li,{children:`Cross-references are established for related content`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`6-quality-assurance`,children:[`6. `,_jsx(_components.strong,{children:`Quality Assurance`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Automated quality checks ensure processing accuracy`}),`\n`,_jsx(_components.li,{children:`Content validation verifies text completeness`}),`\n`,_jsx(_components.li,{children:`Embedding quality is assessed for optimal retrieval performance`}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Processing Time`}),`: Text content is typically processed and searchable within 1-3 minutes. Large text blocks (10,000+ words) may take up to 5 minutes. You can check processing status using the document ID returned in the response.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Default Sub-Tenant Behavior`}),`: If you don’t specify a `,_jsx(_components.code,{children:`sub_tenant_id`}),`, the text content will be uploaded to the default sub-tenant created when your tenant was set up. This is perfect for organization-wide content that should be accessible across all departments.`]})}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`File ID Management`}),`: The system uses a priority-based approach for file ID assignment:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`First Priority`}),`: If you provide a `,_jsx(_components.code,{children:`file_id`}),` as a direct body parameter, that specific ID will be used`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Second Priority`}),`: If no direct `,_jsx(_components.code,{children:`file_id`}),` is provided, the system checks for a `,_jsx(_components.code,{children:`file_id`}),` in the `,_jsx(_components.code,{children:`document_metadata`}),` object`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Auto-Generation`}),`: If neither source provides a `,_jsx(_components.code,{children:`file_id`}),`, the system will automatically generate a unique identifier`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`duplicate-file-id-behavior`,children:_jsx(_components.strong,{children:`Duplicate File ID Behavior`})}),`\n`,_jsxs(_components.p,{children:[`When you upload text content with a `,_jsx(_components.code,{children:`file_id`}),` that already exists in your tenant:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overwrite Behavior`}),`: The existing text content with the same `,_jsx(_components.code,{children:`file_id`}),` will be `,_jsx(_components.strong,{children:`completely replaced`}),` with the new content`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Processing`}),`: The new text content will go through the full processing pipeline (validation, chunking, embedding generation, indexing)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Search Results`}),`: Previous search results and embeddings from the old content will be replaced with the new content`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Idempotency`}),`: Uploading the same text content with the same `,_jsx(_components.code,{children:`file_id`}),` multiple times is safe and will result in the same final state`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important`}),`: When overwriting existing text content, all previous chunks, embeddings, and search indexes associated with that `,_jsx(_components.code,{children:`file_id`}),` will be permanently removed and replaced. This action cannot be undone.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example Success Response for Duplicate File ID:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Text content uploaded successfully. Existing content with file_id 'text_123456' has been overwritten.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text_123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`processing-status-\u0026-monitoring`,children:`Processing Status \u0026 Monitoring`}),`\n`,_jsx(_components.p,{children:`After uploading, you can monitor your text content’s processing status:`}),`\n`,_jsx(Heading,{level:`3`,id:`immediate-response`,children:_jsx(_components.strong,{children:`Immediate Response`})}),`\n`,_jsx(_components.p,{children:`Upon successful upload, you’ll receive:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Text content uploaded successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"doc_123456\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`processing-states`,children:_jsx(_components.strong,{children:`Processing States`})}),`\n`,_jsx(_components.p,{children:`Your text content will progress through these states:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`queued`})}),`: Text content is in the processing queue, waiting to be processed`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`in_progress`})}),`: Text content is actively being processed (includes validation, chunking, embedding generation, and indexing)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`success`})}),`: Text content is fully processed and searchable`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`errored`})}),`: Processing encountered an error (rare occurrence)`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`In-Progress Details`}),`: While the status shows `,_jsx(_components.code,{children:`in_progress`}),`, the system is actually performing multiple steps: content validation, format detection, intelligent chunking, embedding generation, and database indexing. These happen sequentially but are all part of the single `,_jsx(_components.code,{children:`in_progress`}),` state.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`when-your-text-is-ready`,children:_jsx(_components.strong,{children:`When Your Text is Ready`})}),`\n`,_jsx(_components.p,{children:`Once processing is complete, your text content will be:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Searchable`}),` via semantic search and Q\u0026A endpoints`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Retrievable`}),` through our retrieval APIs`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Available`}),` for AI-powered applications`]}),`\n`,_jsxs(_components.li,{children:[`✅ `,_jsx(_components.strong,{children:`Indexed`}),` for fast query performance`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important`}),`: Don’t attempt to search or retrieve your text content immediately after upload. Wait for processing to complete (typically 1-3 minutes) to ensure optimal results.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(_components.p,{children:[`All endpoints return consistent error responses following the standard format. For detailed error information, see our `,_jsx(_components.a,{href:`/api-reference/error-responses`,children:`Error Responses`}),` documentation.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload Content","openapi":"POST /ingestion/upload-content","description":"Upload raw text or markdown content for ingestion.\nSupports both single and batch uploads via the contents list in the request.","href":"/api-reference/endpoint/upload-content"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[151,3472,")=>null;function _cr"]]},"panelMdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`TableOfContents`,children:_jsx(TableOfContents,{})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload Content","openapi":"POST /ingestion/upload-content","description":"Upload raw text or markdown content for ingestion.\nSupports both single and batch uploads via the contents list in the request.","href":"/api-reference/endpoint/upload-content"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[19,69,"jsx:_jsx}=arguments["],[151,3472,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Examples","slug":"examples","depth":3,"children":[]},{"title":"Text Processing Pipeline","slug":"text-processing-pipeline","depth":2,"children":[{"title":"1. Immediate Upload \u0026 Queue","slug":"1-immediate-upload-\u0026-queue","depth":3,"children":[]},{"title":"2. Text Processing Phase","slug":"2-text-processing-phase","depth":3,"children":[]},{"title":"3. Intelligent Chunking","slug":"3-intelligent-chunking","depth":3,"children":[]},{"title":"4. Embedding Generation","slug":"4-embedding-generation","depth":3,"children":[]},{"title":"5. Indexing \u0026 Database Updates","slug":"5-indexing-\u0026-database-updates","depth":3,"children":[]},{"title":"6. Quality Assurance","slug":"6-quality-assurance","depth":3,"children":[]},{"title":"Duplicate File ID Behavior","slug":"duplicate-file-id-behavior","depth":3,"children":[]}]},{"title":"Processing Status \u0026 Monitoring","slug":"processing-status-\u0026-monitoring","depth":2,"children":[{"title":"Immediate Response","slug":"immediate-response","depth":3,"children":[]},{"title":"Processing States","slug":"processing-states","depth":3,"children":[]},{"title":"When Your Text is Ready","slug":"when-your-text-is-ready","depth":3,"children":[]}]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]}],"panel":{"content":"export const TableOfContents = ({title = 'On this page', items, minHeadingLevel = 2, maxHeadingLevel = 3, className = '', activeClassName = 'text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light', inactiveClassName = 'hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300'}) => {\n const [toc, setToc] = useState(items ?? []);\n const [activeId, setActiveId] = useState('');\n useEffect(() => {\n if (items \u0026\u0026 items.length) return;\n if (typeof document === 'undefined') return;\n const selectors = [];\n for (let lvl = minHeadingLevel; lvl \u003c= maxHeadingLevel; lvl++) {\n selectors.push(`h${lvl}`);\n }\n const nodes = Array.from(document.querySelectorAll(selectors.join(','))).filter(el => el.id);\n const built = [];\n let currentTop = null;\n nodes.forEach(el => {\n const level = Number(el.tagName.slice(1));\n const node = {\n id: el.id,\n label: el.textContent.trim(),\n href: `#${el.id}`,\n children: []\n };\n if (level === minHeadingLevel) {\n built.push(node);\n currentTop = node;\n } else if (level > minHeadingLevel \u0026\u0026 currentTop) {\n currentTop.children.push(node);\n } else {\n built.push(node);\n }\n });\n setToc(built);\n }, [items, minHeadingLevel, maxHeadingLevel]);\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const applyHash = () => {\n const h = window.location.hash.replace('#', '');\n if (h) setActiveId(h);\n };\n applyHash();\n const observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n setActiveId(entry.target.id);\n }\n });\n }, {\n rootMargin: '0px 0px -70% 0px',\n threshold: 0.1\n });\n const ids = toc.flatMap(i => [i, ...i.children ?? []]).map(i => i.id);\n ids.forEach(id => {\n const el = document.getElementById(id);\n if (el) observer.observe(el);\n });\n window.addEventListener('hashchange', applyHash);\n return () => {\n window.removeEventListener('hashchange', applyHash);\n observer.disconnect();\n };\n }, [toc]);\n const Item = ({node, depth = 0}) => {\n const isActive = activeId === node.id;\n return \u003cli className=\"toc-item relative ml-6\" data-depth={depth}>\n \u003ca href={node.href} className={`py-1 block font-medium ${isActive ? activeClassName : inactiveClassName}`} style={depth > 0 ? {\n marginLeft: `${depth}rem`\n } : {}} onClick={() => setActiveId(node.id)}>\n {node.label}\n \u003c/a>\n {node.children \u0026\u0026 node.children.length > 0 \u0026\u0026 \u003c>\n {node.children.map(child => \u003cItem node={child} depth={depth + 1} key={child.href} />)}\n \u003c/>}\n \u003c/li>;\n };\n const data = toc \u0026\u0026 toc.length ? toc : items || [];\n return \u003cdiv className={`text-gray-600 text-sm leading-6 w-[18rem] pb-4 -mt-10 pt-10 hidden xl:block ${className}`} id=\"table-of-contents-custom\">\n \u003cul id=\"table-of-contents-custom-content\" className=\"toc\">\n \u003cli className=\"toc-item relative\">\n \u003cdiv className=\"text-gray-700 dark:text-gray-300 font-medium flex items-center space-x-2 py-1\">\n \u003csvg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" xmlns=\"http://www.w3.org/2000/svg\" className=\"h-3 w-3\">\n \u003cpath d=\"M2.44434 12.6665H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 3.3335H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 8H7.33323\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003c/svg>\n \u003cspan>{title}\u003c/span>\n \u003c/div>\n \u003c/li>\n {data.map(node => \u003cItem node={node} key={node.href} />)}\n \u003c/ul>\n \u003c/div>;\n};\n\n\u003cTableOfContents />\n"},"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-relative {\n position: relative\n}\n.mint--mt-10 {\n margin-top: -2.5rem\n}\n.mint-ml-6 {\n margin-left: 1.5rem\n}\n.mint-block {\n display: block\n}\n.mint-flex {\n display: flex\n}\n.mint-hidden {\n display: none\n}\n.mint-h-3 {\n height: 0.75rem\n}\n.mint-w-3 {\n width: 0.75rem\n}\n.mint-w-\\[18rem\\] {\n width: 18rem\n}\n.mint-items-center {\n align-items: center\n}\n.mint-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))\n}\n.mint-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem\n}\n.mint-pb-4 {\n padding-bottom: 1rem\n}\n.mint-pt-10 {\n padding-top: 2.5rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-leading-6 {\n line-height: 1.5rem\n}\n.mint-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1))\n}\n@media (min-width: 1280px) {\n .xl\\:mint-block {\n display: block\n }\n}","openApiReferenceData":{"operation":{"tags":["ingestion"],"summary":"Upload Content","description":"Upload raw text or markdown content for ingestion.\nSupports both single and batch uploads via the contents list in the request.","operationId":"upload_content_ingestion_upload_content_post","requestBody":"c8a00599-6ff7-46c1-892e-784af1fa975f","responses":{"200":"47b972b0-4565-4e77-ad3f-a985749ca556","400":"35e02a16-9125-460a-bc61-355e86839dd3","401":"2aa513b4-e89e-4ce4-b6e2-d4a2765cd356","403":"f8797044-3662-4360-92c5-9d0fbe53b3b1","404":"1a413786-e8f7-464f-b36c-53619ed17cd3","422":"51b9184b-048d-44f0-908c-3b95488060b2","500":"5d70daea-952a-4c9e-adae-467fbdfbccbe","503":"22b92109-85e1-4e03-b656-36689ca34277"},"security":["f8beb333-9021-4147-be03-34d5aa41f132"],"x-fern-sdk-group-name":"upload","x-fern-sdk-method-name":"upload_content","x-fern-sdk-audience":["public"],"method":"post","type":"path","servers":["27177c36-ced5-48ec-934a-74f1d3c21f2f","ec4a38bd-f056-41fa-92b7-9e831f0c977f","c80917a8-4b03-45cd-ba80-6a4329afc4a3"],"path":"/ingestion/upload-content","baseUrlOptions":["/","https://api.usecortex.ai","https://preprod.usecortex.ai"],"title":"Upload Content","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"properties":{"contents":{"items":{"properties":{"content":{"type":"string","title":"Content","description":"Text or markdown content to be indexed.","examples":["# Introduction\n\nThis is the document content."],"example":"\u003ccontent>","isRequired":true,"uniqueKey":"content.contents.items.[INDEX].content","typeLabel":"string"},"source_id":{"oneOf":[{"type":"string","title":"Source Id","description":"Optional file ID (used for idempotency or re-uploads)","example":"CortexDoc1234","uniqueKey":"content.contents.items.[INDEX].source_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Source Id","description":"Optional file ID (used for idempotency or re-uploads)","example":"CortexDoc1234","uniqueKey":"content.contents.items.[INDEX].source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.contents.items.[INDEX].source_id","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Title or name for this content item","uniqueKey":"content.contents.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Title or name for this content item","uniqueKey":"content.contents.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.contents.items.[INDEX].title","typeLabel":"string | null"},"is_markdown":{"type":"boolean","title":"Is Markdown","description":"Whether the content is markdown formatted.","default":false,"example":true,"uniqueKey":"content.contents.items.[INDEX].is_markdown","typeLabel":"boolean"},"tenant_metadata":{"oneOf":[{"type":"string","title":"Tenant Metadata","description":"JSON string containing tenant-level document metadata (e.g., department, compliance_tag)\n\nExample: > \"{\"department\":\"Finance\",\"compliance_tag\":\"GDPR\"}\"\n\n","default":"","uniqueKey":"content.contents.items.[INDEX].tenant_metadata.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tenant Metadata","description":"JSON string containing tenant-level document metadata (e.g., department, compliance_tag)\n\nExample: > \"{\"department\":\"Finance\",\"compliance_tag\":\"GDPR\"}\"\n\n","default":"","uniqueKey":"content.contents.items.[INDEX].tenant_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.contents.items.[INDEX].tenant_metadata","typeLabel":"string | null"},"document_metadata":{"oneOf":[{"type":"string","title":"Document Metadata","description":"JSON string containing document-specific metadata (e.g., title, author, file_id). If file_id is not provided, the system will generate an ID automatically.\n\nExample: > \"{\"title\":\"Q1 Report.pdf\",\"author\":\"Alice Smith\",\"file_id\":\"custom_file_123\"}\"\n\n\n","default":"","uniqueKey":"content.contents.items.[INDEX].document_metadata.oneOf.0","typeLabel":"string"},{"type":"null","title":"Document Metadata","description":"JSON string containing document-specific metadata (e.g., title, author, file_id). If file_id is not provided, the system will generate an ID automatically.\n\nExample: > \"{\"title\":\"Q1 Report.pdf\",\"author\":\"Alice Smith\",\"file_id\":\"custom_file_123\"}\"\n\n\n","default":"","uniqueKey":"content.contents.items.[INDEX].document_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.contents.items.[INDEX].document_metadata","typeLabel":"string | null"},"relations":{"oneOf":[{"type":"boolean","title":"Relations","description":"Optional JSON string containing relations as key-value pairs","default":false,"uniqueKey":"content.contents.items.[INDEX].relations.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Relations","description":"Optional JSON string containing relations as key-value pairs","default":false,"uniqueKey":"content.contents.items.[INDEX].relations.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.contents.items.[INDEX].relations","typeLabel":"boolean | null"}},"type":"object","required":["content"],"title":"ContentUploadItem","description":"Represents a single file/content upload.\nThis model is intended to be used inside a list for batch uploads.","uniqueKey":"content.contents.items.[INDEX]","typeLabel":"ContentUploadItem · object"},"type":"array","title":"Contents","description":"List of text/markdown content to upload.","example":[],"uniqueKey":"content.contents","typeLabel":"ContentUploadItem · object[]"}},"type":"object","title":"ContentUploadRequest","description":"CONTENT_DESCRIPTION","isRequired":true,"uniqueKey":"content","typeLabel":"ContentUploadRequest · object"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Unique identifier for the tenant/organization","example":"tenant_1234","isRequired":true,"uniqueKey":"tenant_id","typeLabel":"string"},"sub_tenant_id":{"type":"string","title":"Sub Tenant Id","description":"Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.","default":"","example":"sub_tenant_4567","uniqueKey":"sub_tenant_id","typeLabel":"string"},"upsert":{"type":"boolean","title":"Upsert","description":"If true, update existing sources with the same source_id. Defaults to True.","default":true,"example":true,"uniqueKey":"upsert","typeLabel":"boolean"}},"type":"object","required":["content","tenant_id"],"title":"Body_upload_content_ingestion_upload_content_post","uniqueKey":"","typeLabel":"Body_upload_content_ingestion_upload_content_post · object"},"examples":{"Example":{"title":"Example","value":{"content":{"contents":[]},"tenant_id":"tenant_1234","sub_tenant_id":"sub_tenant_4567","upsert":true}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"47b972b0-4565-4e77-ad3f-a985749ca556":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","title":"Success","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Upload initiated successfully","uniqueKey":"message","typeLabel":"string"},"results":{"items":{"properties":{"source_id":{"type":"string","title":"Source Id","description":"Unique identifier for the uploaded source.","example":"CortexDoc1234","isRequired":true,"uniqueKey":"results.items.[INDEX].source_id","typeLabel":"string"},"filename":{"oneOf":[{"type":"string","title":"Filename","description":"Original filename if present.","uniqueKey":"results.items.[INDEX].filename.oneOf.0","typeLabel":"string"},{"type":"null","title":"Filename","description":"Original filename if present.","uniqueKey":"results.items.[INDEX].filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].filename","typeLabel":"string | null"},"status":{"type":"string","enum":["queued","processing","completed","failed"],"title":"SourceStatus","description":"Initial processing status.","default":"queued","uniqueKey":"results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"error":{"oneOf":[{"type":"string","title":"Error","description":"Error message if upload failed.","uniqueKey":"results.items.[INDEX].error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"Error message if upload failed.","uniqueKey":"results.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].error","typeLabel":"string | null"}},"type":"object","required":["source_id"],"title":"SourceUploadResultItem","uniqueKey":"results.items.[INDEX]","typeLabel":"SourceUploadResultItem · object"},"type":"array","title":"Results","description":"List of upload results for each source.","example":[],"uniqueKey":"results","typeLabel":"SourceUploadResultItem · object[]"},"success_count":{"type":"integer","title":"Success Count","description":"Number of sources successfully queued.","default":0,"example":1,"uniqueKey":"success_count","typeLabel":"integer"},"failed_count":{"type":"integer","title":"Failed Count","description":"Number of sources that failed to upload.","default":0,"example":1,"uniqueKey":"failed_count","typeLabel":"integer"}},"type":"object","title":"SourceUploadResponse","uniqueKey":"","typeLabel":"SourceUploadResponse · object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Upload initiated successfully","results":[],"success_count":1,"failed_count":1}}},"exampleType":"generated"}},"exampleType":"generated"},"35e02a16-9125-460a-bc61-355e86839dd3":{"description":"Bad Request - Invalid input parameters","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2aa513b4-e89e-4ce4-b6e2-d4a2765cd356":{"description":"Unauthorized - Authentication required","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f8797044-3662-4360-92c5-9d0fbe53b3b1":{"description":"Forbidden - Access denied","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"1a413786-e8f7-464f-b36c-53619ed17cd3":{"description":"Not Found - Resource does not exist","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"51b9184b-048d-44f0-908c-3b95488060b2":{"description":"Unprocessable Entity - Validation failed","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5d70daea-952a-4c9e-adae-467fbdfbccbe":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"22b92109-85e1-4e03-b656-36689ca34277":{"description":"Service Unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"f8beb333-9021-4147-be03-34d5aa41f132":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"27177c36-ced5-48ec-934a-74f1d3c21f2f":{"url":"/","description":"Local","x-fern-server-name":"cortex-backend-local"},"ec4a38bd-f056-41fa-92b7-9e831f0c977f":{"url":"https://api.usecortex.ai","description":"Production","x-fern-server-name":"cortex-prod","x-fern-audiences":["public"]},"c80917a8-4b03-45cd-ba80-6a4329afc4a3":{"url":"https://preprod.usecortex.ai","description":"Staging","x-fern-server-name":"cortex-staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cortex-ad5578da","siteName":"Cortex SDK","title":"Upload Content - Cortex SDK","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-16T08:49:48.260Z","originalFileLocation":"api-reference/endpoint/upload-content.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=\"Upload raw text or markdown content for ingestion. Supports both single and batch uploads via the contents list in the request.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload Content - Cortex SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload raw text or markdown content for ingestion. Supports both single and batch uploads via the contents list in the request.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cortex SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Knowledge+Ingestion\u0026amp;title=Upload+Content\u0026amp;description=Upload+raw+text+or+markdown+content+for+ingestion.%0ASupports+both+single+and+batch+uploads+via+the+contents+list+in+the+request.\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=cca54c125c713f63f2096058ce409a3a9e5a79de2d371e4cf332970696a653fd\">\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=\"Upload Content - Cortex SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload raw text or markdown content for ingestion. Supports both single and batch uploads via the contents list in the request.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Knowledge+Ingestion\u0026amp;title=Upload+Content\u0026amp;description=Upload+raw+text+or+markdown+content+for+ingestion.%0ASupports+both+single+and+batch+uploads+via+the+contents+list+in+the+request.\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=cca54c125c713f63f2096058ce409a3a9e5a79de2d371e4cf332970696a653fd\">\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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/upload-content.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://cortex-ad5578da.mintlify.app#website\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content#webpage\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content\",\"name\":\"Upload Content\",\"description\":\"Upload raw text or markdown content for ingestion. Supports both single and batch uploads via the contents list in the request.\",\"dateModified\":\"2026-01-16T08:49:48.260Z\",\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowledge Ingestion\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-document\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Content\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content#apireference\",\"headline\":\"Upload Content\",\"name\":\"Upload Content\",\"description\":\"Upload raw text or markdown content for ingestion. Supports both single and batch uploads via the contents list in the request.\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content\",\"mainEntityOfPage\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/upload-content#webpage\"},\"dateModified\":\"2026-01-16T08:49:48.260Z\",\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cortex SDK\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cortex SDK","nav":{"global":{},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Error Responses","href":"/api-reference/error-responses"},{"title":"SDKs - Node and Python","href":"/api-reference/sdks"}]},{"group":"Tenant Management","pages":[{"title":"Create Tenant","openapi":"POST /tenants/create","href":"/api-reference/endpoint/create-tenant"},{"title":"Get Tenant Stats","openapi":"GET /tenants/stats","href":"/api-reference/endpoint/tenant-stats"}]},{"group":"Knowledge Ingestion","pages":[{"title":"Upload Document","openapi":"POST /ingestion/upload-document","description":"Upload one or more documents for ingestion.\nSupports both single and batch uploads.\nFor single file: send one file with the 'files' field.\nFor batch: send multiple files with the 'files' field (FastAPI will parse as list).","href":"/api-reference/endpoint/upload-document"},{"title":"Upload Content","openapi":"POST /ingestion/upload-content","href":"/api-reference/endpoint/upload-content"},{"title":"Upload App Sources","openapi":"POST /upload/upload_app_sources","description":"Specifically built to handle knowledge from workplace apps. Parsing, chunking, and indexing depends on the kind of app (eg - gmail, slack, documents, etc). ","href":"/api-reference/endpoint/upload-app"},{"title":"Verify Processing","openapi":"POST /ingestion/verify-processing","href":"/api-reference/endpoint/verify-processing"}]},{"group":"Query \u0026 Retrieval","pages":[{"title":"Hybrid Search","openapi":"POST /search/hybrid-search","href":"/api-reference/endpoint/hybrid-search"},{"title":"Full Text Search","openapi":"POST /search/full-text-search","href":"/api-reference/endpoint/full-text-search"},{"title":"QnA","openapi":"POST /search/qna","tag":"DEPRECATING","href":"/api-reference/endpoint/qna"}]},{"group":"Knowledge Management","pages":[{"title":"List Sources","openapi":"GET /list/list-sources","href":"/api-reference/endpoint/list-sources"},{"title":"List Sources By ID","openapi":"POST /list/list-sources-by-id","href":"/api-reference/endpoint/list-sources-by-id"},{"title":"Fetch Content","openapi":"POST /fetch/fetch-source-content","href":"/api-reference/endpoint/fetch-source-content"},{"title":"Delete Sources","openapi":"DELETE /delete/delete-sources","href":"/api-reference/endpoint/delete-sources"},{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","href":"/api-reference/endpoint/graph-relations"}]},{"group":"Embeddings","pages":[{"title":"Create Embeddings Tenant","openapi":"POST /embeddings/create_tenant","href":"/api-reference/endpoint/create-embeddings-tenant"},{"title":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","href":"/api-reference/endpoint/insert-raw-embeddings"},{"title":"Search Embeddings","openapi":"POST /embeddings/search-raw-embeddings","href":"/api-reference/endpoint/search-raw-embeddings"},{"title":"Filter Raw Embeddings","openapi":"POST /embeddings/filter-raw-embeddings","href":"/api-reference/endpoint/filter-raw-embeddings"},{"title":"Delete Embeddings","openapi":"DELETE /embeddings/delete-raw-embeddings","href":"/api-reference/endpoint/delete-raw-embeddings"}]},{"group":"User Memories","pages":[{"title":"Add User Memory","openapi":"POST /memories/add-memories","href":"/api-reference/endpoint/add-memories"},{"title":"Delete User Memory","openapi":"DELETE /memories/delete-memory","href":"/api-reference/endpoint/delete-memory"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Upload Content - Cortex SDK","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"]}