Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status.
Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected.
External source metadata for documents ingested from third-party systems. Provide as a JSON object with external_id (required), doc_type (optional), and additional_metadata (optional JSON object).
Show child attributes
Response
Document already exists (idempotent). Returned when external_metadata.external_id matches a manually-uploaded document in the same workspace. The existing document is returned without creating a duplicate.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LightOn Developers","colors":{"primary":"#1f99bb","light":"#1f99bb","dark":"#1f99bb"},"logo":{"light":"https://mintcdn.com/lighton-developers/dojq_qF_vSGGGm4-/logo/light.svg?fit=max\u0026auto=format\u0026n=dojq_qF_vSGGGm4-\u0026q=85\u0026s=345d3b10124f99971a7737a9f06f2886","dark":"https://mintcdn.com/lighton-developers/dojq_qF_vSGGGm4-/logo/dark.svg?fit=max\u0026auto=format\u0026n=dojq_qF_vSGGGm4-\u0026q=85\u0026s=d1c2d4800c07667359bb3abf2437e7aa"},"favicon":"https://mintcdn.com/lighton-developers/p54dDELPycbNT9ym/favicon.svg?fit=max\u0026auto=format\u0026n=p54dDELPycbNT9ym\u0026q=85\u0026s=c9a4897b47f6d0e0d035509f82d5c847","navbar":{"primary":{"type":"button","label":"Console","href":"https://console.lighton.ai"}},"footer":{"socials":{"x":"https://x.com/lightonio","linkedin":"https://www.linkedin.com/company/lighton","bluesky":"https://bsky.app/profile/lightonai.bsky.social","youtube":"https://www.youtube.com/@lighton4013","website":"https://lighton.ai/newsletter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Playground","icon":"circle-play","href":"https://console.lighton.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lighton-developers","hasAudioNarration":false,"actualSubdomain":"lighton-developers","customDomains":["developers.lighton.ai"],"gitSource":{"type":"github","owner":"lightonai","repo":"lighton-developers-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae0d933663d8e17af01bd02","collectionId":"33d6668b-f92a-409f-9b5b-7f9039646113","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae0d933663d8e17af01bd02"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae0d933663d8e17af01bd02","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":50},{"language":"default","tag":"Intelligence","count":30},{"language":"default","tag":"Tutorials","count":15},{"language":"default","tag":"Facets","count":14},{"language":"default","tag":"Administration","count":13},{"language":"default","tag":"MCP Server","count":9},{"language":"default","tag":"Integrations","count":8},{"language":"default","tag":"Classify and organise documents","count":8},{"language":"default","tag":"Workspaces","count":8},{"language":"default","tag":"Budget","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@lighton.ai"}},"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":"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":[],"page":{"pagePath":"api-reference/files/upload-a-file","slug":"/api-reference/files/upload-a-file","pageMetadata":{"title":"Upload a file","description":"Upload a file to a workspace.\n\nFiles are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status.\n\n**Idempotent upload:** When `external_metadata.external_id` is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with `200 OK` instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected.\n\n**Accepted file formats:** `csv`, `doc`, `docx`, `htm`, `html`, `jpeg`, `jpg`, `json`, `md`, `odp`, `odt`, `pdf`, `png`, `ppt`, `pptx`, `txt`, `xhtml`, `xls`, `xlsx`, `yaml`, `yml`\n\n**Customization Options:**\n- `title`: Customize the document title (defaults to filename without extension)\n- `filename`: Override the uploaded filename\n- `parser`: Specify a custom ingestion pipeline instead of using the default\n\n","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files","href":"/api-reference/files/upload-a-file","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: [_jsx(_components.p, {\n children: \"Upload a file to a workspace.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Idempotent upload:\"\n }), \" When \", _jsx(_components.code, {\n children: \"external_metadata.external_id\"\n }), \" is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with \", _jsx(_components.code, {\n children: \"200 OK\"\n }), \" instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Accepted file formats:\"\n }), \" \", _jsx(_components.code, {\n children: \"csv\"\n }), \", \", _jsx(_components.code, {\n children: \"doc\"\n }), \", \", _jsx(_components.code, {\n children: \"docx\"\n }), \", \", _jsx(_components.code, {\n children: \"htm\"\n }), \", \", _jsx(_components.code, {\n children: \"html\"\n }), \", \", _jsx(_components.code, {\n children: \"jpeg\"\n }), \", \", _jsx(_components.code, {\n children: \"jpg\"\n }), \", \", _jsx(_components.code, {\n children: \"json\"\n }), \", \", _jsx(_components.code, {\n children: \"md\"\n }), \", \", _jsx(_components.code, {\n children: \"odp\"\n }), \", \", _jsx(_components.code, {\n children: \"odt\"\n }), \", \", _jsx(_components.code, {\n children: \"pdf\"\n }), \", \", _jsx(_components.code, {\n children: \"png\"\n }), \", \", _jsx(_components.code, {\n children: \"ppt\"\n }), \", \", _jsx(_components.code, {\n children: \"pptx\"\n }), \", \", _jsx(_components.code, {\n children: \"txt\"\n }), \", \", _jsx(_components.code, {\n children: \"xhtml\"\n }), \", \", _jsx(_components.code, {\n children: \"xls\"\n }), \", \", _jsx(_components.code, {\n children: \"xlsx\"\n }), \", \", _jsx(_components.code, {\n children: \"yaml\"\n }), \", \", _jsx(_components.code, {\n children: \"yml\"\n })]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Customization Options:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"title\"\n }), \": Customize the document title (defaults to filename without extension)\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"filename\"\n }), \": Override the uploaded filename\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"parser\"\n }), \": Specify a custom ingestion pipeline instead of using the default\"]\n }), \"\\n\"]\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":"Upload a file","description":"Upload a file to a workspace.\n\nFiles are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status.\n\n**Idempotent upload:** When `external_metadata.external_id` is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with `200 OK` instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected.\n\n**Accepted file formats:** `csv`, `doc`, `docx`, `htm`, `html`, `jpeg`, `jpg`, `json`, `md`, `odp`, `odt`, `pdf`, `png`, `ppt`, `pptx`, `txt`, `xhtml`, `xls`, `xlsx`, `yaml`, `yml`\n\n**Customization Options:**\n- `title`: Customize the document title (defaults to filename without extension)\n- `filename`: Override the uploaded filename\n- `parser`: Specify a custom ingestion pipeline instead of using the default\n\n","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files","href":"/api-reference/files/upload-a-file","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"api_v3_files_create","description":"Upload a file to a workspace.\n\nFiles are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status.\n\n**Idempotent upload:** When `external_metadata.external_id` is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with `200 OK` instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected.\n\n**Accepted file formats:** `csv`, `doc`, `docx`, `htm`, `html`, `jpeg`, `jpg`, `json`, `md`, `odp`, `odt`, `pdf`, `png`, `ppt`, `pptx`, `txt`, `xhtml`, `xls`, `xlsx`, `yaml`, `yml`\n\n**Customization Options:**\n- `title`: Customize the document title (defaults to filename without extension)\n- `filename`: Override the uploaded filename\n- `parser`: Specify a custom ingestion pipeline instead of using the default\n\n","summary":"Upload a file","tags":["Files"],"requestBody":"8c1a05e1-0344-4f8c-b6a6-f8b982f03fd2","security":["af570c79-cb4e-4210-aa21-f088c43bff16"],"responses":{"200":"5d136418-4aae-431a-9662-6aed2993f24e","201":"b9003384-bd27-41dd-93c4-f15addaa53e8","207":"7dcd8c10-ebf4-4ef8-9a9b-a39aff538ce5","400":"cb85346d-d021-4099-b000-c14666f7f42d","401":"9ebf74ab-6691-4340-9d9f-f8d3740f13bf","403":"de739988-a4c2-4bd3-8d11-2e9e9585fe85","422":"fea99e60-b05c-40b5-8fb9-1fd57c4f3856","429":"afa1aa5a-cecf-40ab-9747-ad067b313eef","503":"9ba87685-3c4f-4cfa-beee-4e9fd172be54"},"method":"post","type":"path","servers":["48c3fa0c-537e-4ab8-b62c-fc02ab11f431"],"path":"/api/v3/files","baseUrlOptions":["https://api.lighton.ai"],"title":"Upload a file","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","description":"Request serializer for POST /api/v3/files endpoint.\n\nPhase 1 Implementation - Core Parameters:\n- file: The file to upload (required)\n- name: Custom filename (optional, defaults to uploaded filename)\n- title: Custom title for the document (optional)\n- workspace_id: Workspace ID where the document will be stored (required)\n- parser: Deprecated — ignored, the platform always uses its default pipeline","properties":{"file":{"type":"string","format":"uri","description":"The file to upload (binary data)","isRequired":true,"uniqueKey":"file","typeLabel":"string\u003curi>"},"workspace_id":{"type":"integer","description":"Workspace where the document will be stored.","isRequired":true,"uniqueKey":"workspace_id","typeLabel":"integer"},"filename":{"type":"string","description":"Custom filename (defaults to uploaded filename if not provided)","maxLength":255,"uniqueKey":"filename","typeLabel":"string"},"title":{"type":"string","description":"Custom title for the document. If not provided, defaults to filename without extension.","maxLength":255,"uniqueKey":"title","typeLabel":"string"},"parser":{"type":"string","deprecated":true,"description":"Deprecated — the platform always uses its default ingestion pipeline. This field is accepted but ignored. Will be removed in a future release.","maxLength":255,"uniqueKey":"parser","typeLabel":"string"},"tags":{"type":"array","items":{"type":"integer","uniqueKey":"tags.items.[INDEX]","typeLabel":"integer"},"description":"List of tag IDs to assign to the document on creation.","uniqueKey":"tags","typeLabel":"integer[]"},"external_metadata":{"oneOf":[{"type":"object","description":"External source metadata for documents ingested from third-party systems. Provide as a JSON object with `external_id` (required), `doc_type` (optional), and `additional_metadata` (optional JSON object).","properties":{"external_id":{"type":"string","description":"External document ID in the source system. Required when creating external metadata for the first time.","uniqueKey":"external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","description":"External document type (e.g. 'incident', 'page')","uniqueKey":"external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"description":"Arbitrary JSON object with extra information about the document (e.g. URL, version, timestamps). Passed through as-is.","uniqueKey":"external_metadata.oneOf.0.additional_metadata","typeLabel":"any"}},"uniqueKey":"external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External source metadata for documents ingested from third-party systems. Provide as a JSON object with `external_id` (required), `doc_type` (optional), and `additional_metadata` (optional JSON object).","uniqueKey":"external_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_metadata","typeLabel":"object | null"}},"required":["file","workspace_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"BasicFileUpload":{"title":"BasicFileUpload","description":"Upload a PDF file with only required fields","value":{"file":"(binary file data)","workspace_id":42}},"FileUploadWithCustomMetadataAndTags":{"title":"FileUploadWithCustomMetadataAndTags","description":"Upload a file with custom filename, title, and manual tag assignment. Tags can be sent as a JSON array string (e.g., '[1,2]') or as multiple form fields with the same name. ","value":{"file":"(binary file data)","workspace_id":42,"filename":"Q4_Report_2025.pdf","title":"Q4 Financial Report","tags":[1,2]}},"IdempotentUploadWithExternalId":{"title":"IdempotentUploadWithExternalId","description":"Upload with `external_id` for idempotent re-runs. If a manually-uploaded document with the same `external_id` already exists in the workspace, the server returns 200 OK with the existing document instead of creating a duplicate. Datasource-imported documents are not affected — idempotency is scoped to manual uploads only.","value":{"file":"(binary file data)","workspace_id":42,"external_metadata":{"external_id":"hupd:13144833"}}},"FileUploadWithExternalMetadata":{"title":"FileUploadWithExternalMetadata","description":"Upload a file that originates from an external system (e.g. ServiceNow, SharePoint). `external_metadata` must be sent as a JSON string when using multipart/form-data. `external_id` is required; `doc_type` and `additional_metadata` are optional.","value":{"file":"(binary file data)","workspace_id":42,"external_metadata":{"external_id":"SRV-456789","doc_type":"incident","additional_metadata":{"external_url":"https://servicenow.example.com/incident/SRV-456789","external_full_path":"ServiceNow > Incidents > SRV-456789","created_at":"2024-01-10T08:00:00Z","modified_at":"2024-01-12T16:45:00Z"}}}}},"exampleType":"examples"},"application/x-www-form-urlencoded":{"schema":{"type":"object","description":"Request serializer for POST /api/v3/files endpoint.\n\nPhase 1 Implementation - Core Parameters:\n- file: The file to upload (required)\n- name: Custom filename (optional, defaults to uploaded filename)\n- title: Custom title for the document (optional)\n- workspace_id: Workspace ID where the document will be stored (required)\n- parser: Deprecated — ignored, the platform always uses its default pipeline","properties":{"file":{"type":"string","format":"uri","description":"The file to upload (binary data)","isRequired":true,"uniqueKey":"file","typeLabel":"string\u003curi>"},"workspace_id":{"type":"integer","description":"Workspace where the document will be stored.","isRequired":true,"uniqueKey":"workspace_id","typeLabel":"integer"},"filename":{"type":"string","description":"Custom filename (defaults to uploaded filename if not provided)","maxLength":255,"uniqueKey":"filename","typeLabel":"string"},"title":{"type":"string","description":"Custom title for the document. If not provided, defaults to filename without extension.","maxLength":255,"uniqueKey":"title","typeLabel":"string"},"parser":{"type":"string","deprecated":true,"description":"Deprecated — the platform always uses its default ingestion pipeline. This field is accepted but ignored. Will be removed in a future release.","maxLength":255,"uniqueKey":"parser","typeLabel":"string"},"tags":{"type":"array","items":{"type":"integer","uniqueKey":"tags.items.[INDEX]","typeLabel":"integer"},"description":"List of tag IDs to assign to the document on creation.","uniqueKey":"tags","typeLabel":"integer[]"},"external_metadata":{"oneOf":[{"type":"object","description":"External source metadata for documents ingested from third-party systems. Provide as a JSON object with `external_id` (required), `doc_type` (optional), and `additional_metadata` (optional JSON object).","properties":{"external_id":{"type":"string","description":"External document ID in the source system. Required when creating external metadata for the first time.","uniqueKey":"external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","description":"External document type (e.g. 'incident', 'page')","uniqueKey":"external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"description":"Arbitrary JSON object with extra information about the document (e.g. URL, version, timestamps). Passed through as-is.","uniqueKey":"external_metadata.oneOf.0.additional_metadata","typeLabel":"any"}},"uniqueKey":"external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External source metadata for documents ingested from third-party systems. Provide as a JSON object with `external_id` (required), `doc_type` (optional), and `additional_metadata` (optional JSON object).","uniqueKey":"external_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_metadata","typeLabel":"object | null"}},"required":["file","workspace_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"BasicFileUpload":{"title":"BasicFileUpload","description":"Upload a PDF file with only required fields","value":{"file":"(binary file data)","workspace_id":42}},"FileUploadWithCustomMetadataAndTags":{"title":"FileUploadWithCustomMetadataAndTags","description":"Upload a file with custom filename, title, and manual tag assignment. Tags can be sent as a JSON array string (e.g., '[1,2]') or as multiple form fields with the same name. ","value":{"file":"(binary file data)","workspace_id":42,"filename":"Q4_Report_2025.pdf","title":"Q4 Financial Report","tags":[1,2]}},"IdempotentUploadWithExternalId":{"title":"IdempotentUploadWithExternalId","description":"Upload with `external_id` for idempotent re-runs. If a manually-uploaded document with the same `external_id` already exists in the workspace, the server returns 200 OK with the existing document instead of creating a duplicate. Datasource-imported documents are not affected — idempotency is scoped to manual uploads only.","value":{"file":"(binary file data)","workspace_id":42,"external_metadata":{"external_id":"hupd:13144833"}}},"FileUploadWithExternalMetadata":{"title":"FileUploadWithExternalMetadata","description":"Upload a file that originates from an external system (e.g. ServiceNow, SharePoint). `external_metadata` must be sent as a JSON string when using multipart/form-data. `external_id` is required; `doc_type` and `additional_metadata` are optional.","value":{"file":"(binary file data)","workspace_id":42,"external_metadata":{"external_id":"SRV-456789","doc_type":"incident","additional_metadata":{"external_url":"https://servicenow.example.com/incident/SRV-456789","external_full_path":"ServiceNow > Incidents > SRV-456789","created_at":"2024-01-10T08:00:00Z","modified_at":"2024-01-12T16:45:00Z"}}}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"5d136418-4aae-431a-9662-6aed2993f24e":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"filename":{"type":"string","readOnly":true,"description":"Filename of the document","isRequired":true,"uniqueKey":"filename","typeLabel":"string"},"workspace":{"oneOf":[{"type":"object","description":"Workspace the document belongs to","required":["id","name","workspace_type"],"properties":{"id":{"type":"integer","description":"Workspace ID","isRequired":true,"uniqueKey":"workspace.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","description":"Workspace name","isRequired":true,"uniqueKey":"workspace.oneOf.0.name","typeLabel":"string"},"workspace_type":{"type":"string","description":"Workspace type (shared or personal)","isRequired":true,"uniqueKey":"workspace.oneOf.0.workspace_type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"workspace.oneOf.0","typeLabel":"object"},{"type":"null","description":"Workspace the document belongs to","isRequired":true,"uniqueKey":"workspace.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workspace","typeLabel":"object | null"},"summaries":{"type":"array","items":{"type":"object","properties":{"summary":{"type":"string","description":"Summary of the document.","isRequired":true,"uniqueKey":"summaries.items.[INDEX].summary","typeLabel":"string"},"language":{"type":"string","description":"Language of the summary.\n\n* `en` - English\n* `fr` - French\n* `es` - Spanish\n* `it` - Italian\n* `ar` - Arabic\n* `nl` - Dutch\n* `sv` - Swedish\n* `de` - German\n* `ja` - Japanese\n* `zh` - Chinese\n* `ko` - Korean","enum":["en","fr","es","it","ar","nl","sv","de","ja","zh","ko"],"uniqueKey":"summaries.items.[INDEX].language","typeLabel":"enum\u003cstring>"}},"required":["summary"],"uniqueKey":"summaries.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Document summaries (all languages)","isRequired":true,"uniqueKey":"summaries","typeLabel":"object[]"},"extension":{"type":"string","description":"File extension of the document","isRequired":true,"uniqueKey":"extension","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Creation date of the resource","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"total_pages":{"type":"integer","readOnly":true,"description":"Total number of pages","isRequired":true,"uniqueKey":"total_pages","typeLabel":"integer"},"tags":{"type":"array","items":{"type":"object","description":"Serializer for tag items in file list response.","properties":{"id":{"type":"integer","description":"Tag ID","isRequired":true,"uniqueKey":"tags.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","description":"Tag name","isRequired":true,"uniqueKey":"tags.items.[INDEX].name","typeLabel":"string"},"auto_assigned":{"type":"boolean","description":"True if this tag was automatically assigned by the system, False if manually assigned by a user","isRequired":true,"uniqueKey":"tags.items.[INDEX].auto_assigned","typeLabel":"boolean"}},"required":["auto_assigned","id","name"],"uniqueKey":"tags.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"List of tags associated with the document","isRequired":true,"uniqueKey":"tags","typeLabel":"object[]"},"created_by":{"oneOf":[{"type":"object","description":"User who created the file. Null when the file was created by the system.","required":["first_name","id","last_name","username"],"properties":{"id":{"type":"integer","description":"User ID","isRequired":true,"uniqueKey":"created_by.oneOf.0.id","typeLabel":"integer"},"first_name":{"type":"string","description":"First name","isRequired":true,"uniqueKey":"created_by.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Last name","isRequired":true,"uniqueKey":"created_by.oneOf.0.last_name","typeLabel":"string"},"username":{"type":"string","description":"Username","isRequired":true,"uniqueKey":"created_by.oneOf.0.username","typeLabel":"string"}},"isRequired":true,"uniqueKey":"created_by.oneOf.0","typeLabel":"object"},{"type":"null","description":"User who created the file. Null when the file was created by the system.","isRequired":true,"uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by","typeLabel":"object | null"},"upload_session_uuid":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"upload_session_uuid","typeLabel":"string\u003cuuid> | null"},"external_metadata":{"oneOf":[{"type":"object","description":"External document metadata","required":["additional_metadata","doc_type","external_id"],"properties":{"external_id":{"type":"string","description":"External document ID","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","description":"External document type","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"description":"Additional metadata associated with the document","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.additional_metadata","typeLabel":"any"}},"isRequired":true,"uniqueKey":"external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External document metadata","isRequired":true,"uniqueKey":"external_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_metadata","typeLabel":"object | null"},"message":{"type":"string","readOnly":true,"description":"Status message about the file upload","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"thumbnail":{"type":"object","description":"Thumbnail preview of the document (256x256 WebP).","required":["status","url"],"properties":{"status":{"type":"string","description":"Thumbnail generation status: MISSING (not available), PROCESSING (being generated), READY (available)\n\n* `MISSING` - MISSING\n* `PROCESSING` - PROCESSING\n* `READY` - READY","enum":["MISSING","PROCESSING","READY"],"isRequired":true,"uniqueKey":"thumbnail.status","typeLabel":"enum\u003cstring>"},"url":{"oneOf":[{"type":"string","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thumbnail.url","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"thumbnail","typeLabel":"object"},"title":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"enum":["pending","pending_conversion","converting","parsing","parsing_failed","embedding","embedding_failed","embedded","parsed","fail","updating"],"type":"string","description":"* `pending` - Pending\n* `pending_conversion` - Pending Conversion\n* `converting` - Converting\n* `parsing` - Parsing\n* `parsing_failed` - Parsing Failed\n* `embedding` - Embedding\n* `embedding_failed` - Embedding Failed\n* `embedded` - Embedded\n* `parsed` - Parsed\n* `fail` - Fail\n* `updating` - Updating","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"status_vision":{"enum":["pending","processing","embedded","fail","-"],"type":"string","description":"* `pending` - Pending\n* `processing` - Processing\n* `embedded` - Embedded\n* `fail` - Fail\n* `-` - Not available","uniqueKey":"status_vision","typeLabel":"enum\u003cstring>"}},"required":["created_at","created_by","extension","external_metadata","filename","id","message","summaries","tags","thumbnail","total_pages","updated_at","upload_session_uuid","workspace"],"uniqueKey":"","typeLabel":"object"},"examples":{"Idempotent—DocumentAlreadyExists":{"title":"Idempotent—DocumentAlreadyExists","description":"The document with this external_id was already uploaded to this workspace. No new document is created. The response body is identical to a normal upload response.","value":{"id":12345,"filename":"13144833.md","workspace":{"id":42,"name":"My Workspace","workspace_type":"shared"},"title":"Patent 13144833","extension":"md","status":"embedded","status_vision":null,"created_at":"2025-03-01T10:30:00Z","updated_at":"2025-03-01T10:30:00Z","total_pages":3,"tags":[],"created_by":{"id":42,"first_name":"Jane","last_name":"Doe","username":"jdoe"},"upload_session_uuid":null,"external_metadata":{"external_id":"hupd:13144833","doc_type":"","additional_metadata":{}},"message":"Document already exists (idempotent)"}}},"exampleType":"examples"}},"description":"Document already exists (idempotent). Returned when `external_metadata.external_id` matches a manually-uploaded document in the same workspace. The existing document is returned without creating a duplicate.","exampleType":"examples"},"b9003384-bd27-41dd-93c4-f15addaa53e8":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"filename":{"type":"string","readOnly":true,"description":"Filename of the document","isRequired":true,"uniqueKey":"filename","typeLabel":"string"},"workspace":{"oneOf":[{"type":"object","description":"Workspace the document belongs to","required":["id","name","workspace_type"],"properties":{"id":{"type":"integer","description":"Workspace ID","isRequired":true,"uniqueKey":"workspace.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","description":"Workspace name","isRequired":true,"uniqueKey":"workspace.oneOf.0.name","typeLabel":"string"},"workspace_type":{"type":"string","description":"Workspace type (shared or personal)","isRequired":true,"uniqueKey":"workspace.oneOf.0.workspace_type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"workspace.oneOf.0","typeLabel":"object"},{"type":"null","description":"Workspace the document belongs to","isRequired":true,"uniqueKey":"workspace.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workspace","typeLabel":"object | null"},"summaries":{"type":"array","items":{"type":"object","properties":{"summary":{"type":"string","description":"Summary of the document.","isRequired":true,"uniqueKey":"summaries.items.[INDEX].summary","typeLabel":"string"},"language":{"type":"string","description":"Language of the summary.\n\n* `en` - English\n* `fr` - French\n* `es` - Spanish\n* `it` - Italian\n* `ar` - Arabic\n* `nl` - Dutch\n* `sv` - Swedish\n* `de` - German\n* `ja` - Japanese\n* `zh` - Chinese\n* `ko` - Korean","enum":["en","fr","es","it","ar","nl","sv","de","ja","zh","ko"],"uniqueKey":"summaries.items.[INDEX].language","typeLabel":"enum\u003cstring>"}},"required":["summary"],"uniqueKey":"summaries.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Document summaries (all languages)","isRequired":true,"uniqueKey":"summaries","typeLabel":"object[]"},"extension":{"type":"string","description":"File extension of the document","isRequired":true,"uniqueKey":"extension","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Creation date of the resource","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"total_pages":{"type":"integer","readOnly":true,"description":"Total number of pages","isRequired":true,"uniqueKey":"total_pages","typeLabel":"integer"},"tags":{"type":"array","items":{"type":"object","description":"Serializer for tag items in file list response.","properties":{"id":{"type":"integer","description":"Tag ID","isRequired":true,"uniqueKey":"tags.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","description":"Tag name","isRequired":true,"uniqueKey":"tags.items.[INDEX].name","typeLabel":"string"},"auto_assigned":{"type":"boolean","description":"True if this tag was automatically assigned by the system, False if manually assigned by a user","isRequired":true,"uniqueKey":"tags.items.[INDEX].auto_assigned","typeLabel":"boolean"}},"required":["auto_assigned","id","name"],"uniqueKey":"tags.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"List of tags associated with the document","isRequired":true,"uniqueKey":"tags","typeLabel":"object[]"},"created_by":{"oneOf":[{"type":"object","description":"User who created the file. Null when the file was created by the system.","required":["first_name","id","last_name","username"],"properties":{"id":{"type":"integer","description":"User ID","isRequired":true,"uniqueKey":"created_by.oneOf.0.id","typeLabel":"integer"},"first_name":{"type":"string","description":"First name","isRequired":true,"uniqueKey":"created_by.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Last name","isRequired":true,"uniqueKey":"created_by.oneOf.0.last_name","typeLabel":"string"},"username":{"type":"string","description":"Username","isRequired":true,"uniqueKey":"created_by.oneOf.0.username","typeLabel":"string"}},"isRequired":true,"uniqueKey":"created_by.oneOf.0","typeLabel":"object"},{"type":"null","description":"User who created the file. Null when the file was created by the system.","isRequired":true,"uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by","typeLabel":"object | null"},"upload_session_uuid":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"upload_session_uuid","typeLabel":"string\u003cuuid> | null"},"external_metadata":{"oneOf":[{"type":"object","description":"External document metadata","required":["additional_metadata","doc_type","external_id"],"properties":{"external_id":{"type":"string","description":"External document ID","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","description":"External document type","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"description":"Additional metadata associated with the document","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.additional_metadata","typeLabel":"any"}},"isRequired":true,"uniqueKey":"external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External document metadata","isRequired":true,"uniqueKey":"external_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_metadata","typeLabel":"object | null"},"message":{"type":"string","readOnly":true,"description":"Status message about the file upload","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"thumbnail":{"type":"object","description":"Thumbnail preview of the document (256x256 WebP).","required":["status","url"],"properties":{"status":{"type":"string","description":"Thumbnail generation status: MISSING (not available), PROCESSING (being generated), READY (available)\n\n* `MISSING` - MISSING\n* `PROCESSING` - PROCESSING\n* `READY` - READY","enum":["MISSING","PROCESSING","READY"],"isRequired":true,"uniqueKey":"thumbnail.status","typeLabel":"enum\u003cstring>"},"url":{"oneOf":[{"type":"string","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thumbnail.url","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"thumbnail","typeLabel":"object"},"title":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"enum":["pending","pending_conversion","converting","parsing","parsing_failed","embedding","embedding_failed","embedded","parsed","fail","updating"],"type":"string","description":"* `pending` - Pending\n* `pending_conversion` - Pending Conversion\n* `converting` - Converting\n* `parsing` - Parsing\n* `parsing_failed` - Parsing Failed\n* `embedding` - Embedding\n* `embedding_failed` - Embedding Failed\n* `embedded` - Embedded\n* `parsed` - Parsed\n* `fail` - Fail\n* `updating` - Updating","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"status_vision":{"enum":["pending","processing","embedded","fail","-"],"type":"string","description":"* `pending` - Pending\n* `processing` - Processing\n* `embedded` - Embedded\n* `fail` - Fail\n* `-` - Not available","uniqueKey":"status_vision","typeLabel":"enum\u003cstring>"}},"required":["created_at","created_by","extension","external_metadata","filename","id","message","summaries","tags","thumbnail","total_pages","updated_at","upload_session_uuid","workspace"],"uniqueKey":"","typeLabel":"object"},"examples":{"FileUploadedSuccessfully":{"title":"FileUploadedSuccessfully","value":{"id":12345,"filename":"document.pdf","workspace":{"id":42,"name":"My Workspace","workspace_type":"shared"},"summaries":[],"title":"document","extension":"pdf","status":"pending","status_vision":null,"created_at":"2025-03-01T10:30:00Z","updated_at":"2025-03-01T10:30:00Z","total_pages":0,"tags":[],"created_by":{"id":42,"first_name":"Jane","last_name":"Doe","username":"jdoe"},"upload_session_uuid":"550e8400-e29b-41d4-a716-446655440000","external_metadata":null,"message":"File queued for processing","thumbnail":{"status":"MISSING","url":null}}},"FileUploadedWithTags":{"title":"FileUploadedWithTags","value":{"id":12346,"filename":"compliance_doc.pdf","workspace":{"id":42,"name":"My Workspace","workspace_type":"shared"},"summaries":[],"title":"Compliance Document","extension":"pdf","status":"pending","status_vision":null,"created_at":"2025-03-01T10:35:00Z","updated_at":"2025-03-01T10:35:00Z","total_pages":0,"tags":[{"id":1,"name":"Compliance","auto_assigned":false},{"id":2,"name":"Legal","auto_assigned":false}],"created_by":{"id":42,"first_name":"Jane","last_name":"Doe","username":"jdoe"},"upload_session_uuid":"550e8400-e29b-41d4-a716-446655440000","external_metadata":null,"message":"File queued for processing"}},"FileUploadedWithExternalMetadata":{"title":"FileUploadedWithExternalMetadata","description":"Upload response when external_metadata was provided. The record is created synchronously and returned immediately.","value":{"id":12348,"filename":"SRV-456789.pdf","workspace":{"id":42,"name":"My Workspace","workspace_type":"shared"},"summaries":[],"title":"SRV-456789","extension":"pdf","status":"pending","status_vision":null,"created_at":"2025-03-01T10:40:00Z","updated_at":"2025-03-01T10:40:00Z","total_pages":0,"tags":[],"created_by":{"id":42,"first_name":"Jane","last_name":"Doe","username":"jdoe"},"upload_session_uuid":"550e8400-e29b-41d4-a716-446655440000","external_metadata":{"external_id":"SRV-456789","doc_type":"incident","additional_metadata":{"external_url":"https://servicenow.example.com/incident/SRV-456789","external_full_path":"ServiceNow > Incidents > SRV-456789"}},"message":"File queued for processing"}}},"exampleType":"examples"}},"description":"File queued for processing successfully","exampleType":"examples"},"7dcd8c10-ebf4-4ef8-9a9b-a39aff538ce5":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"filename":{"type":"string","readOnly":true,"description":"Filename of the document","isRequired":true,"uniqueKey":"filename","typeLabel":"string"},"workspace":{"oneOf":[{"type":"object","description":"Workspace the document belongs to","required":["id","name","workspace_type"],"properties":{"id":{"type":"integer","description":"Workspace ID","isRequired":true,"uniqueKey":"workspace.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","description":"Workspace name","isRequired":true,"uniqueKey":"workspace.oneOf.0.name","typeLabel":"string"},"workspace_type":{"type":"string","description":"Workspace type (shared or personal)","isRequired":true,"uniqueKey":"workspace.oneOf.0.workspace_type","typeLabel":"string"}},"isRequired":true,"uniqueKey":"workspace.oneOf.0","typeLabel":"object"},{"type":"null","description":"Workspace the document belongs to","isRequired":true,"uniqueKey":"workspace.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"workspace","typeLabel":"object | null"},"summaries":{"type":"array","items":{"type":"object","properties":{"summary":{"type":"string","description":"Summary of the document.","isRequired":true,"uniqueKey":"summaries.items.[INDEX].summary","typeLabel":"string"},"language":{"type":"string","description":"Language of the summary.\n\n* `en` - English\n* `fr` - French\n* `es` - Spanish\n* `it` - Italian\n* `ar` - Arabic\n* `nl` - Dutch\n* `sv` - Swedish\n* `de` - German\n* `ja` - Japanese\n* `zh` - Chinese\n* `ko` - Korean","enum":["en","fr","es","it","ar","nl","sv","de","ja","zh","ko"],"uniqueKey":"summaries.items.[INDEX].language","typeLabel":"enum\u003cstring>"}},"required":["summary"],"uniqueKey":"summaries.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Document summaries (all languages)","isRequired":true,"uniqueKey":"summaries","typeLabel":"object[]"},"extension":{"type":"string","description":"File extension of the document","isRequired":true,"uniqueKey":"extension","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Creation date of the resource","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"total_pages":{"type":"integer","readOnly":true,"description":"Total number of pages","isRequired":true,"uniqueKey":"total_pages","typeLabel":"integer"},"tags":{"type":"array","items":{"type":"object","description":"Serializer for tag items in file list response.","properties":{"id":{"type":"integer","description":"Tag ID","isRequired":true,"uniqueKey":"tags.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","description":"Tag name","isRequired":true,"uniqueKey":"tags.items.[INDEX].name","typeLabel":"string"},"auto_assigned":{"type":"boolean","description":"True if this tag was automatically assigned by the system, False if manually assigned by a user","isRequired":true,"uniqueKey":"tags.items.[INDEX].auto_assigned","typeLabel":"boolean"}},"required":["auto_assigned","id","name"],"uniqueKey":"tags.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"List of tags associated with the document","isRequired":true,"uniqueKey":"tags","typeLabel":"object[]"},"created_by":{"oneOf":[{"type":"object","description":"User who created the file. Null when the file was created by the system.","required":["first_name","id","last_name","username"],"properties":{"id":{"type":"integer","description":"User ID","isRequired":true,"uniqueKey":"created_by.oneOf.0.id","typeLabel":"integer"},"first_name":{"type":"string","description":"First name","isRequired":true,"uniqueKey":"created_by.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Last name","isRequired":true,"uniqueKey":"created_by.oneOf.0.last_name","typeLabel":"string"},"username":{"type":"string","description":"Username","isRequired":true,"uniqueKey":"created_by.oneOf.0.username","typeLabel":"string"}},"isRequired":true,"uniqueKey":"created_by.oneOf.0","typeLabel":"object"},{"type":"null","description":"User who created the file. Null when the file was created by the system.","isRequired":true,"uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_by","typeLabel":"object | null"},"upload_session_uuid":{"oneOf":[{"type":"string","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","readOnly":true,"description":"Upload session UUID associated with this document","isRequired":true,"uniqueKey":"upload_session_uuid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"upload_session_uuid","typeLabel":"string\u003cuuid> | null"},"external_metadata":{"oneOf":[{"type":"object","description":"External document metadata","required":["additional_metadata","doc_type","external_id"],"properties":{"external_id":{"type":"string","description":"External document ID","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.external_id","typeLabel":"string"},"doc_type":{"type":"string","description":"External document type","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.doc_type","typeLabel":"string"},"additional_metadata":{"description":"Additional metadata associated with the document","isRequired":true,"uniqueKey":"external_metadata.oneOf.0.additional_metadata","typeLabel":"any"}},"isRequired":true,"uniqueKey":"external_metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"External document metadata","isRequired":true,"uniqueKey":"external_metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"external_metadata","typeLabel":"object | null"},"message":{"type":"string","readOnly":true,"description":"Status message about the file upload","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"thumbnail":{"type":"object","description":"Thumbnail preview of the document (256x256 WebP).","required":["status","url"],"properties":{"status":{"type":"string","description":"Thumbnail generation status: MISSING (not available), PROCESSING (being generated), READY (available)\n\n* `MISSING` - MISSING\n* `PROCESSING` - PROCESSING\n* `READY` - READY","enum":["MISSING","PROCESSING","READY"],"isRequired":true,"uniqueKey":"thumbnail.status","typeLabel":"enum\u003cstring>"},"url":{"oneOf":[{"type":"string","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Relative URL to the thumbnail image (WebP, 256x256). Null when status is not READY.","isRequired":true,"uniqueKey":"thumbnail.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"thumbnail.url","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"thumbnail","typeLabel":"object"},"title":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"status":{"enum":["pending","pending_conversion","converting","parsing","parsing_failed","embedding","embedding_failed","embedded","parsed","fail","updating"],"type":"string","description":"* `pending` - Pending\n* `pending_conversion` - Pending Conversion\n* `converting` - Converting\n* `parsing` - Parsing\n* `parsing_failed` - Parsing Failed\n* `embedding` - Embedding\n* `embedding_failed` - Embedding Failed\n* `embedded` - Embedded\n* `parsed` - Parsed\n* `fail` - Fail\n* `updating` - Updating","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"status_vision":{"enum":["pending","processing","embedded","fail","-"],"type":"string","description":"* `pending` - Pending\n* `processing` - Processing\n* `embedded` - Embedded\n* `fail` - Fail\n* `-` - Not available","uniqueKey":"status_vision","typeLabel":"enum\u003cstring>"}},"required":["created_at","created_by","extension","external_metadata","filename","id","message","summaries","tags","thumbnail","total_pages","updated_at","upload_session_uuid","workspace"],"uniqueKey":"","typeLabel":"object"},"examples":{"FileUploadedWithTagError":{"title":"FileUploadedWithTagError","description":"Document uploaded successfully but tags failed to assign","value":{"id":12347,"filename":"document.pdf","workspace":{"id":42,"name":"My Workspace","workspace_type":"shared"},"summaries":[],"title":"document","extension":"pdf","status":"pending","status_vision":null,"created_at":"2025-03-01T10:40:00Z","updated_at":"2025-03-01T10:40:00Z","total_pages":0,"tags":[],"created_by":{"id":42,"first_name":"Jane","last_name":"Doe","username":"jdoe"},"upload_session_uuid":"550e8400-e29b-41d4-a716-446655440000","external_metadata":null,"message":"Document uploaded successfully, but tag assignment failed: Invalid or unauthorized tag IDs: 999"}}},"exampleType":"examples"}},"description":"Document uploaded but tag assignment failed (partial success)","exampleType":"examples"},"cb85346d-d021-4099-b000-c14666f7f42d":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"StorageLimitReached":{"title":"StorageLimitReached","value":{"id":null,"code":400,"error":"STORAGE_LIMIT_REACHED","detail":"The custom workspace storage limit for your company is 500 MB and you are currently using 487.3 MB. Delete stale documents or ask your company admin to request an increase of your storage quota.","doc_url":"https://developers.lighton.ai/errors#STORAGE_LIMIT_REACHED"}},"UploadsDisabled":{"title":"UploadsDisabled","value":{"id":null,"code":400,"error":"UPLOADS_DISABLED","detail":"Uploads are disabled for the custom workspace. The storage limit is set to 0 MB. Ask your company admin to request an increase of your storage quota.","doc_url":"https://developers.lighton.ai/errors#UPLOADS_DISABLED"}}},"exampleType":"examples"}},"description":"Domain error — the upload exceeds the workspace storage limit or uploads are disabled. The domain code is carried in `error` and the limit/usage in `detail`.","exampleType":"examples"},"9ebf74ab-6691-4340-9d9f-f8d3740f13bf":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Unauthorized":{"title":"Unauthorized","value":{"id":null,"code":401,"error":"unauthorized","detail":"Authentication credentials were not provided or are invalid.","doc_url":"https://developers.lighton.ai/errors#unauthorized"}}},"exampleType":"examples"}},"description":"Authentication credentials were not provided or are invalid","exampleType":"examples"},"de739988-a4c2-4bd3-8d11-2e9e9585fe85":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Forbidden":{"title":"Forbidden","value":{"id":null,"code":403,"error":"insufficient_permissions","detail":"You do not have permission to perform this action.","doc_url":"https://developers.lighton.ai/errors#insufficient_permissions"}}},"exampleType":"examples"}},"description":"Insufficient permissions","exampleType":"examples"},"fea99e60-b05c-40b5-8fb9-1fd57c4f3856":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"error":{"type":"string","description":"Error code / translation key","isRequired":true,"uniqueKey":"fields.additionalProperties.items.[INDEX].error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable description of the field error","isRequired":true,"uniqueKey":"fields.additionalProperties.items.[INDEX].detail","typeLabel":"string"}},"required":["detail","error"],"uniqueKey":"fields.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"fields.additionalProperties","typeLabel":"object[]"},"description":"Field-level validation errors keyed by field name","uniqueKey":"fields","typeLabel":"object"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"MissingRequiredField":{"title":"MissingRequiredField","value":{"id":null,"code":422,"error":"validation_error","detail":"One or more fields failed validation.","doc_url":"https://developers.lighton.ai/errors#validation_error","fields":{"workspace_id":[{"error":"required","detail":"This field is required."}]}}},"InvalidFileType":{"title":"InvalidFileType","value":{"id":null,"code":422,"error":"validation_error","detail":"One or more fields failed validation.","doc_url":"https://developers.lighton.ai/errors#validation_error","fields":{"file":[{"error":"invalid","detail":"File extension not supported."}]}}},"SyncedWorkspace":{"title":"SyncedWorkspace","value":{"id":null,"code":422,"error":"validation_error","detail":"One or more fields failed validation.","doc_url":"https://developers.lighton.ai/errors#validation_error","fields":{"non_field_errors":[{"error":"invalid","detail":"Cannot manually upload documents to a workspace configured for synced documents."}]}}}},"exampleType":"examples"}},"description":"Validation error — missing/invalid fields or a synced workspace. Per-field errors in `fields`.","exampleType":"examples"},"afa1aa5a-cecf-40ab-9747-ad067b313eef":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Job/resource id when one already exists (useful for async error diagnosis); null otherwise.","isRequired":true,"uniqueKey":"id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"id","typeLabel":"string | null"},"code":{"type":"integer","description":"HTTP status code","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"error":{"type":"string","description":"Error code used by the UI as a translation key","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"string","description":"Human-readable error message for developers","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"doc_url":{"type":"string","description":"Link to the error-code documentation page","isRequired":true,"uniqueKey":"doc_url","typeLabel":"string"}},"required":["code","detail","doc_url","error","id"],"uniqueKey":"","typeLabel":"object"},"examples":{"TooManyRequests":{"title":"TooManyRequests","value":{"id":null,"code":429,"error":"too_many_requests","detail":"Too many requests. Please try again later.","doc_url":"https://developers.lighton.ai/errors#too_many_requests"}}},"exampleType":"examples"}},"description":"Too many requests","exampleType":"examples"},"9ba87685-3c4f-4cfa-beee-4e9fd172be54":{"description":"API is under maintenance. Check `GET /api/v3/system/status` for active periods and retry.","content":{"application/json":{"schema":{"type":"object","description":"Returned by the maintenance middleware when the requested endpoint is blocked.","required":["detail","error","mode"],"properties":{"detail":{"type":"string","example":"System is under maintenance.","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"error":{"type":"string","example":"service_maintenance","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"mode":{"type":"string","enum":["full_shutdown","warning_banner"],"description":"`full_shutdown` blocks all traffic; `warning_banner` also blocks and shows a dismissible toast.","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Operator-supplied maintenance reason, if any.","uniqueKey":"reason","typeLabel":"string"},"started_at":{"type":"string","format":"date-time","uniqueKey":"started_at","typeLabel":"string\u003cdate-time>"},"endpoint_category_names":{"type":"array","items":{"type":"string","uniqueKey":"endpoint_category_names.items.[INDEX]","typeLabel":"string"},"description":"Non-empty only for category-scoped periods. Empty means all endpoints are affected.","uniqueKey":"endpoint_category_names","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"System is under maintenance.","error":"service_maintenance","mode":"full_shutdown","reason":"\u003cstring>","started_at":"2023-11-07T05:31:56Z","endpoint_category_names":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"af570c79-cb4e-4210-aa21-f088c43bff16":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","scopes":[]}}},"servers":{"48c3fa0c-537e-4ab8-b62c-fc02ab11f431":{"url":"https://api.lighton.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","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":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/api-console.yaml"},"subdomain":"lighton-developers","siteName":"LightOn Developers","title":"Upload a file - LightOn Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-16T07:50:02.659Z","originalFileLocation":"api-reference/files/upload-a-file.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 a file to a workspace. Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status. Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected. Accepted file formats: csv, doc, docx, htm, html, jpeg, jpg, json, md, odp, odt, pdf, png, ppt, pptx, txt, xhtml, xls, xlsx, yaml, yml Customization Options: - title: Customize the document title (defaults to filename without extension) - filename: Override the uploaded filename - parser: Specify a custom ingestion pipeline instead of using the default\">\u003cmeta data-mint-head name=\"application-name\" content=\"LightOn Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_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/lighton-developers/2Zh9Mbvo5QQal47m/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload a file - LightOn Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a file to a workspace. Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status. Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected. Accepted file formats: csv, doc, docx, htm, html, jpeg, jpg, json, md, odp, odt, pdf, png, ppt, pptx, txt, xhtml, xls, xlsx, yaml, yml Customization Options: - title: Customize the document title (defaults to filename without extension) - filename: Override the uploaded filename - parser: Specify a custom ingestion pipeline instead of using the default\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LightOn Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.lighton.ai/api-reference/files/upload-a-file\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lighton-developers.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=Upload+a+file\u0026amp;description=Upload+a+file+to+a+workspace.%0A%0AFiles+are+added+to+an+upload+session+and+queued+for+asynchronous+processing.+To+track+progress%2C+retrieve+the+file+details+using+t\u0026amp;theme=f4a17457a3f509b4a9ccfb44\u0026amp;signature=0ba9f675488c9eae9d4324a7621c84c7bf621860f186ac9e8674342115b51bcb\">\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 a file - LightOn Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a file to a workspace. Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status. Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected. Accepted file formats: csv, doc, docx, htm, html, jpeg, jpg, json, md, odp, odt, pdf, png, ppt, pptx, txt, xhtml, xls, xlsx, yaml, yml Customization Options: - title: Customize the document title (defaults to filename without extension) - filename: Override the uploaded filename - parser: Specify a custom ingestion pipeline instead of using the default\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lighton-developers.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=Upload+a+file\u0026amp;description=Upload+a+file+to+a+workspace.%0A%0AFiles+are+added+to+an+upload+session+and+queued+for+asynchronous+processing.+To+track+progress%2C+retrieve+the+file+details+using+t\u0026amp;theme=f4a17457a3f509b4a9ccfb44\u0026amp;signature=0ba9f675488c9eae9d4324a7621c84c7bf621860f186ac9e8674342115b51bcb\">\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/lighton-developers/2Zh9Mbvo5QQal47m/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LightOn Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1f99bb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.lighton.ai/api-reference/files/upload-a-file\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/files/upload-a-file.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.lighton.ai/#organization\",\"name\":\"LightOn Developers\",\"url\":\"https://developers.lighton.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lighton-developers/dojq_qF_vSGGGm4-/logo/light.svg?fit=max\u0026auto=format\u0026n=dojq_qF_vSGGGm4-\u0026q=85\u0026s=345d3b10124f99971a7737a9f06f2886\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.lighton.ai#website\",\"name\":\"LightOn Developers\",\"url\":\"https://developers.lighton.ai\",\"publisher\":{\"@id\":\"https://developers.lighton.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.lighton.ai/api-reference/files/upload-a-file#webpage\",\"url\":\"https://developers.lighton.ai/api-reference/files/upload-a-file\",\"name\":\"Upload a file\",\"description\":\"Upload a file to a workspace. Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status. Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected. Accepted file formats: csv, doc, docx, htm, html, jpeg, jpg, json, md, odp, odt, pdf, png, ppt, pptx, txt, xhtml, xls, xlsx, yaml, yml Customization Options: - title: Customize the document title (defaults to filename without extension) - filename: Override the uploaded filename - parser: Specify a custom ingestion pipeline instead of using the default\",\"dateModified\":\"2026-09-16T07:50:02.659Z\",\"isPartOf\":{\"@id\":\"https://developers.lighton.ai#website\"},\"breadcrumb\":{\"@id\":\"https://developers.lighton.ai/api-reference/files/upload-a-file#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.lighton.ai/api-reference/files/upload-a-file#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Intelligence\",\"item\":\"https://developers.lighton.ai/api-reference/ask/ask-a-question-over-your-documents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Files\",\"item\":\"https://developers.lighton.ai/api-reference/files/list-files-accessible-to-the-authenticated-user\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Upload a file\",\"item\":\"https://developers.lighton.ai/api-reference/files/upload-a-file\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.lighton.ai/api-reference/files/upload-a-file#apireference\",\"headline\":\"Upload a file\",\"name\":\"Upload a file\",\"description\":\"Upload a file to a workspace. Files are added to an upload session and queued for asynchronous processing. To track progress, retrieve the file details using the GET endpoints to check the current status. Idempotent upload: When external_metadata.external_id is provided and a manually-uploaded document with the same external ID already exists in the target workspace, the existing document is returned with 200 OK instead of creating a duplicate. This makes bulk re-runs safe without requiring a pre-check. Datasource-imported documents are not affected. Accepted file formats: csv, doc, docx, htm, html, jpeg, jpg, json, md, odp, odt, pdf, png, ppt, pptx, txt, xhtml, xls, xlsx, yaml, yml Customization Options: - title: Customize the document title (defaults to filename without extension) - filename: Override the uploaded filename - parser: Specify a custom ingestion pipeline instead of using the default\",\"url\":\"https://developers.lighton.ai/api-reference/files/upload-a-file\",\"mainEntityOfPage\":{\"@id\":\"https://developers.lighton.ai/api-reference/files/upload-a-file#webpage\"},\"dateModified\":\"2026-09-16T07:50:02.659Z\",\"publisher\":{\"@id\":\"https://developers.lighton.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.lighton.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LightOn Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LightOn Developers","nav":{"global":{"anchors":[{"anchor":"Playground","icon":"circle-play","href":"https://console.lighton.ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"API Errors","href":"/api-reference/v3-error-codes"}]},{"group":"Intelligence","pages":[{"title":"Ask a question over your documents","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/ask","href":"/api-reference/ask/ask-a-question-over-your-documents"},{"title":"Search document chunks","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/search","href":"/api-reference/search/search-document-chunks"},{"group":"Files","pages":[{"title":"List files accessible to the authenticated user","description":"Retrieve a paginated list of files (documents) accessible to the authenticated user.\nResults are ordered by upload date (newest first) by default.\nWhen using the `search` parameter, results are ordered by relevance.\n\n**Public datasets:** instance admins (holding `MANAGE_PUBLIC_DATASET`) always see\npublic-dataset files. A company that has opted in (`allow_access_to_public_datasets`)\nwith a workspace-scoped API key granting a public workspace also sees its files —\nfilter with `workspace_id` to scope the list to it.","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/files","href":"/api-reference/files/list-files-accessible-to-the-authenticated-user"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files","href":"/api-reference/files/upload-a-file"},{"title":"Delete multiple files in a single request","description":"Permanently delete multiple files in a single request.\n\n**Authorization (applied to every file in the request):**\n- Visibility: file must be accessible to the user → 404 if any are not found\n- Delete permission: user must have the right to delete each file → 403 if any are denied\n- Workspace type: workspace must not be sync-managed → 400 if any are synced\n\n**Public datasets:** instance admins (`MANAGE_PUBLIC_DATASET`) can bulk-delete public-dataset files. A workspace-scoped API key with read-only access to a public dataset can see the file (so it counts toward visibility) but gets 403 on the delete-permission check — public datasets are read-only for opted-in companies.\n\nReturns 204 (No Content) on success.","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files/bulk-delete","href":"/api-reference/files/delete-multiple-files-in-a-single-request"},{"title":"Retrieve a single file by ID","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/files/{id}","href":"/api-reference/files/retrieve-a-single-file-by-id"},{"title":"Update file metadata or replace its file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml patch /api/v3/files/{id}","href":"/api-reference/files/update-file-metadata-or-replace-its-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/files/{id}","href":"/api-reference/files/delete-a-file"},{"title":"Download a document file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/files/{id}/download","href":"/api-reference/files/download-a-document-file"},{"title":"Get document thumbnail","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/files/{id}/thumbnail","href":"/api-reference/files/get-document-thumbnail"}]},{"group":"Facets","pages":[{"title":"List content types","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/content-types","href":"/api-reference/facets/list-content-types"},{"title":"Define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/content-types","href":"/api-reference/facets/define-content-types-and-attributes"},{"title":"Batch define content types and attributes","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/content-types/batch","href":"/api-reference/facets/batch-define-content-types-and-attributes"},{"title":"Resolve search scope","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/content-types/scope","href":"/api-reference/facets/resolve-search-scope"},{"title":"List content type templates","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/content-types/templates","href":"/api-reference/facets/list-content-type-templates"},{"title":"Resolve search scope","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/content-types/scope","href":"/api-reference/facets/resolve-search-scope"},{"title":"List file classifications and attribute values","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/files/{file_id}/facets","href":"/api-reference/facets/list-file-classifications-and-attribute-values"},{"title":"Classify file and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files/{file_id}/facets","href":"/api-reference/facets/classify-file-and-set-attribute-values"},{"title":"Batch classify and set attribute values","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files/{file_id}/facets/batch","href":"/api-reference/facets/batch-classify-and-set-attribute-values"}]},{"group":"Tags","pages":[{"title":"List all tags for the authenticated user's company","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/tags","href":"/api-reference/tags/list-all-tags-for-the-authenticated-users-company"},{"title":"Create a new tag for the company","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/tags","href":"/api-reference/tags/create-a-new-tag-for-the-company"},{"title":"Delete a company tag","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/tags/{id}","href":"/api-reference/tags/delete-a-company-tag"},{"title":"Add tags to a file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/files/{id}/tags","href":"/api-reference/files/add-tags-to-a-file"},{"title":"Remove a tag from a file","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/files/{id}/tags/{tag_id}","href":"/api-reference/files/remove-a-tag-from-a-file"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/workspaces","href":"/api-reference/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/workspaces","href":"/api-reference/workspaces/create-a-workspace"},{"title":"Retrieve a workspace","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/workspaces/{id}","href":"/api-reference/workspaces/retrieve-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml patch /api/v3/workspaces/{id}","href":"/api-reference/workspaces/update-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/workspaces/{id}","href":"/api-reference/workspaces/delete-a-workspace"},{"title":"Browse datasource folders","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/workspaces/datasource/browse","href":"/api-reference/workspaces/browse-datasource-folders"},{"title":"Test datasource credentials","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/workspaces/datasource/test","href":"/api-reference/workspaces/test-datasource-credentials"}]}]},{"group":"Document Processing","pages":[{"group":"Parse","pages":[{"title":"Parse a document to Markdown","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/parse","href":"/api-reference/parse/parse-a-document-to-markdown"},{"title":"Get the status and result of an async parse job","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/parse/{id}","href":"/api-reference/parse/get-the-status-and-result-of-an-async-parse-job"},{"title":"Render a document as PDF","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/preview","href":"/api-reference/parse/render-a-document-as-pdf"}]},{"group":"Extract","pages":[{"title":"Extract structured data from a document","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/extract","href":"/api-reference/extract/extract-structured-data-from-a-document"},{"title":"Get the status and result of an async extract job","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/extract/{job_id}","href":"/api-reference/extract/get-the-status-and-result-of-an-async-extract-job"}]}]},{"group":"Administration","pages":[{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Retrieve API key","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/keys/{id}","href":"/api-reference/api-keys/retrieve-api-key"},{"title":"Update API key","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml patch /api/v3/keys/{id}","href":"/api-reference/api-keys/update-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/keys/{id}","href":"/api-reference/api-keys/revoke-api-key"}]},{"group":"Budget","pages":[{"title":"Get company budget","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/billing/budget","href":"/api-reference/budget/get-company-budget"},{"title":"Create or update company budget","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml put /api/v3/billing/budget","href":"/api-reference/budget/create-or-update-company-budget"},{"title":"Delete company budget","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/billing/budget","href":"/api-reference/budget/delete-company-budget"},{"title":"List budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml get /api/v3/billing/budget/alerts","href":"/api-reference/budget/list-budget-alerts"},{"title":"Create budget alert","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml post /api/v3/billing/budget/alerts","href":"/api-reference/budget/create-budget-alert"},{"title":"Toggle all budget alerts","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml patch /api/v3/billing/budget/alerts","href":"/api-reference/budget/toggle-all-budget-alerts"},{"title":"Update budget alert","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml patch /api/v3/billing/budget/alerts/{id}","href":"/api-reference/budget/update-budget-alert"},{"title":"Delete budget alert","deprecated":null,"version":null,"openapi":"/api-reference/api-console.yaml delete /api/v3/billing/budget/alerts/{id}","href":"/api-reference/budget/delete-budget-alert"}]}]}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Settings","pages":[{"title":"Settings","href":"/untitled-page"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp-server/quickstart"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks"}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases"}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal/terms-of-use"}]},{"tab":"Support","pages":[{"title":"Support","href":"/support"}]}]},"basePath":"","title":"Upload a file - LightOn Developers","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}