{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}
{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}
file_metadata
Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about.
Cost class: fast.
path is the file’s full path relative to the workspace root, exactly
as it was uploaded and as folder-metadata, GET .../files and search
results (source_path) print it — for example
evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a
folder, a file id, or a path that starts with the workspace id is not
found. file_not_found is final for that value: do not retry it or guess
variants — list the folder with folder-metadata (name_contains= a
part of the name) and use the path it prints.
The response gives the file’s category, a summary of its first
section or tab, page or tab counts, and its components: each section,
tab, image or recording with its own summary, categories, page range or
table shape, and key_terms — keywords whose role the source states
(who a name is, what a date marks). A recording reports its duration.
readable means qa-file can answer from the component’s text;
queryable means it is a table query-tables can compute over. Pass a
component’s name as component to scope either tool to it.
component narrows this response to one section or tab by name; a name
that matches nothing is refused with invalid_request listing the valid
names. A file that is not ingested yet answers 200 with its
ingestion_status and no components; a failed one carries
ingestion_error.
{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}
{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}
Authorizations
X-API-Key
string
header
required
Headers
Idempotency-Key
string | null
Use the same key to recover an earlier request. A replay returned as a Job carries Idempotent-Replayed: true and replayed: true without a new charge; Job credits keeps the original cost. Re-serving a settled inline tool answer reports zero credits for that call and also carries Idempotent-Replayed: true; a fresh re-execution after a transient failure carries no header. The key is kept with the job for replay and never cleared, so it must not contain personal data.
Maximum string length: 200
Path Parameters
workspace_id
string<uuid>
required
Workspace identifier.
Body
application/json
Request body for file-metadata. path names one uploaded file.
path
string
required
The uploaded file's full path relative to the workspace root, exactly as it was uploaded and as listings and search results print it — e.g. evidence/doc-7f83/contract.pdf. Not a bare file name (a file's file_name), a folder, a file id, or a path that starts with the workspace id.
Required string length: 1 - 1024
component
string | null
Describe only this section or tab, named exactly as an unscoped call lists it.
Response
Successful Response
Response body for file-metadata — what one uploaded file is, without opening it.
summary is the summary of the file's first section or tab, never a
concatenation across components (each component carries its own). A file
that is not ingested yet answers 200 with its ingestion_status and no
components; a failed one also carries ingestion_error.
file_id
string<uuid>
required
The uploaded file's id, as the files endpoints address it.
ingestion_status
enum<string>
required
Where the file is in ingestion; a file that is not ingested has no components yet.
Available options:
discovered,
queued,
ingesting,
ingested,
stale,
expired,
failed,
not_required
path
string
required
The uploaded file's path relative to the workspace root, as requested.
size_bytes
integer
required
Byte size of the uploaded source object.
category
string | null
The file's primary category path, when classified.
The file's sections, tabs, image or recording, in reading order.
One part of an uploaded file that can be asked about by name: a document
section, a spreadsheet tab, an image, or the raw upload itself.
FileComponentInfo
MediaComponentInfo
Show child attributes
credits
integer | null
Credits billed for this call; zero for a free answer or replay, null when a billing receipt is unavailable.
Required range: x >= 0
figures
FileFigureInfo · object[]
PDFs: pictures inside the pages (seals, charts, photos, stamps), in page order; with component, only those on that component's pages. Empty for other files and for PDFs ingested before figures were recorded.
Show child attributes
ingestion_error
string | null
Why ingestion failed, when the ledger recorded a reason.
job_id
string<uuid> | null
The external operation job; absent for commands inside a search job.
kind
string | null
Ingestion lane (document / table / media), when known.
page_count
integer | null
Pages in a paged document; absent for other files.
read_coverage
FileReadCoverage · object | null
Recorded page reads and OCR usage for the published generation; absent when provenance is unavailable.
Show child attributes
summary
string
default:""
Summary of the file's first section or tab; each component has its own.
tab_count
integer | null
Tabs in a workbook; absent for other files.
waiver
enum<string> | null
Why this call is free: repeat_of_job reuses an earlier answer; no_job answers without creating a job.
Available options:
repeat_of_job,
no_job
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NDI Platform API","description":"Document intelligence platform API — parse, split, classify, extract, and ground information from any document.","colors":{"primary":"#111111","light":"#737373","dark":"#E5E5E5"},"favicon":"https://mintcdn.com/nace-ai/RoMHjaneGKdnwusm/favicon.png?fit=max\u0026auto=format\u0026n=RoMHjaneGKdnwusm\u0026q=85\u0026s=9b5d6ee38930c58bd4cc7e964e66a5b0","api":{"openapi":"openapi.json","playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl"],"autogenerate":true}},"appearance":{"default":"system"},"background":{"decoration":"gradient"},"footer":{"socials":{}},"seo":{"metatags":{"robots":"noindex"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nace-ai","hasAudioNarration":false,"actualSubdomain":"nace-ai","customDomains":["docs.ndi.nace.ai"],"gitSource":{"type":"github","owner":"yeranaceai","repo":"ndi-service-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10f60a9ffae5051c4197fa"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b14b4f195b29a8b67136491","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":106},{"language":"default","tag":"Documentation","count":44},{"language":"default","tag":"SDKs","count":36},{"language":"default","tag":"Core methods","count":28},{"language":"default","tag":"Guides","count":26},{"language":"default","tag":"Workspaces and files","count":25},{"language":"default","tag":"Catalog","count":22},{"language":"default","tag":"Tools and search","count":21},{"language":"default","tag":"Jobs and usage","count":16},{"language":"default","tag":"Concepts","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/tools/file_metadata","slug":"/api-reference/tools/file_metadata","pageMetadata":{"title":"file_metadata","description":"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about.\n\n**Cost class: fast.**\n\n``path`` is the file's full path relative to the workspace root, exactly\nas it was uploaded and as ``folder-metadata``, ``GET .../files`` and search\nresults (``source_path``) print it — for example\n``evidence/doc-7f83/contract.pdf``. A bare file name (``contract.pdf``), a\nfolder, a file id, or a path that starts with the workspace id is not\nfound. ``file_not_found`` is final for that value: do not retry it or guess\nvariants — list the folder with ``folder-metadata`` (``name_contains=`` a\npart of the name) and use the path it prints.\n\nThe response gives the file's ``category``, a ``summary`` of its first\nsection or tab, page or tab counts, and its ``components``: each section,\ntab, image or recording with its own summary, categories, page range or\ntable shape, and ``key_terms`` — keywords whose role the source states\n(who a name is, what a date marks). A recording reports its duration.\n``readable`` means ``qa-file`` can answer from the component's text;\n``queryable`` means it is a table ``query-tables`` can compute over. Pass a\ncomponent's ``name`` as ``component`` to scope either tool to it.\n\n``component`` narrows this response to one section or tab by name; a name\nthat matches nothing is refused with ``invalid_request`` listing the valid\nnames. A file that is not ingested yet answers 200 with its\n``ingestion_status`` and no components; a failed one carries\n``ingestion_error``.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/file-metadata","href":"/api-reference/tools/file_metadata","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 p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about.\"\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Cost class: fast.\"\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"path\"\n }), \" is the file’s full path relative to the workspace root, exactly\\nas it was uploaded and as \", _jsx(_components.code, {\n children: \"folder-metadata\"\n }), \", \", _jsx(_components.code, {\n children: \"GET .../files\"\n }), \" and search\\nresults (\", _jsx(_components.code, {\n children: \"source_path\"\n }), \") print it — for example\\n\", _jsx(_components.code, {\n children: \"evidence/doc-7f83/contract.pdf\"\n }), \". A bare file name (\", _jsx(_components.code, {\n children: \"contract.pdf\"\n }), \"), a\\nfolder, a file id, or a path that starts with the workspace id is not\\nfound. \", _jsx(_components.code, {\n children: \"file_not_found\"\n }), \" is final for that value: do not retry it or guess\\nvariants — list the folder with \", _jsx(_components.code, {\n children: \"folder-metadata\"\n }), \" (\", _jsx(_components.code, {\n children: \"name_contains=\"\n }), \" a\\npart of the name) and use the path it prints.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The response gives the file’s \", _jsx(_components.code, {\n children: \"category\"\n }), \", a \", _jsx(_components.code, {\n children: \"summary\"\n }), \" of its first\\nsection or tab, page or tab counts, and its \", _jsx(_components.code, {\n children: \"components\"\n }), \": each section,\\ntab, image or recording with its own summary, categories, page range or\\ntable shape, and \", _jsx(_components.code, {\n children: \"key_terms\"\n }), \" — keywords whose role the source states\\n(who a name is, what a date marks). A recording reports its duration.\\n\", _jsx(_components.code, {\n children: \"readable\"\n }), \" means \", _jsx(_components.code, {\n children: \"qa-file\"\n }), \" can answer from the component’s text;\\n\", _jsx(_components.code, {\n children: \"queryable\"\n }), \" means it is a table \", _jsx(_components.code, {\n children: \"query-tables\"\n }), \" can compute over. Pass a\\ncomponent’s \", _jsx(_components.code, {\n children: \"name\"\n }), \" as \", _jsx(_components.code, {\n children: \"component\"\n }), \" to scope either tool to it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"component\"\n }), \" narrows this response to one section or tab by name; a name\\nthat matches nothing is refused with \", _jsx(_components.code, {\n children: \"invalid_request\"\n }), \" listing the valid\\nnames. A file that is not ingested yet answers 200 with its\\n\", _jsx(_components.code, {\n children: \"ingestion_status\"\n }), \" and no components; a failed one carries\\n\", _jsx(_components.code, {\n children: \"ingestion_error\"\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":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"file_metadata","description":"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about.\n\n**Cost class: fast.**\n\n``path`` is the file's full path relative to the workspace root, exactly\nas it was uploaded and as ``folder-metadata``, ``GET .../files`` and search\nresults (``source_path``) print it — for example\n``evidence/doc-7f83/contract.pdf``. A bare file name (``contract.pdf``), a\nfolder, a file id, or a path that starts with the workspace id is not\nfound. ``file_not_found`` is final for that value: do not retry it or guess\nvariants — list the folder with ``folder-metadata`` (``name_contains=`` a\npart of the name) and use the path it prints.\n\nThe response gives the file's ``category``, a ``summary`` of its first\nsection or tab, page or tab counts, and its ``components``: each section,\ntab, image or recording with its own summary, categories, page range or\ntable shape, and ``key_terms`` — keywords whose role the source states\n(who a name is, what a date marks). A recording reports its duration.\n``readable`` means ``qa-file`` can answer from the component's text;\n``queryable`` means it is a table ``query-tables`` can compute over. Pass a\ncomponent's ``name`` as ``component`` to scope either tool to it.\n\n``component`` narrows this response to one section or tab by name; a name\nthat matches nothing is refused with ``invalid_request`` listing the valid\nnames. A file that is not ingested yet answers 200 with its\n``ingestion_status`` and no components; a failed one carries\n``ingestion_error``.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/file-metadata","href":"/api-reference/tools/file_metadata","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about.\n\n**Cost class: fast.**\n\n``path`` is the file's full path relative to the workspace root, exactly\nas it was uploaded and as ``folder-metadata``, ``GET .../files`` and search\nresults (``source_path``) print it — for example\n``evidence/doc-7f83/contract.pdf``. A bare file name (``contract.pdf``), a\nfolder, a file id, or a path that starts with the workspace id is not\nfound. ``file_not_found`` is final for that value: do not retry it or guess\nvariants — list the folder with ``folder-metadata`` (``name_contains=`` a\npart of the name) and use the path it prints.\n\nThe response gives the file's ``category``, a ``summary`` of its first\nsection or tab, page or tab counts, and its ``components``: each section,\ntab, image or recording with its own summary, categories, page range or\ntable shape, and ``key_terms`` — keywords whose role the source states\n(who a name is, what a date marks). A recording reports its duration.\n``readable`` means ``qa-file`` can answer from the component's text;\n``queryable`` means it is a table ``query-tables`` can compute over. Pass a\ncomponent's ``name`` as ``component`` to scope either tool to it.\n\n``component`` narrows this response to one section or tab by name; a name\nthat matches nothing is refused with ``invalid_request`` listing the valid\nnames. A file that is not ingested yet answers 200 with its\n``ingestion_status`` and no components; a failed one carries\n``ingestion_error``.","operationId":"file_metadata_v1_workspaces__workspace_id__tools_file_metadata_post","parameters":["8ea9fc0a-dc5b-4514-a361-42ecd6a437da","044e922f-b7c6-4a3b-a919-fba54219aa02"],"requestBody":"9a33ea25-e11a-4353-8b4d-b51ee7b291d6","responses":{"200":"c5d4901c-492e-4ceb-9e77-d7e54e63f8b3","504":"8ed48024-314f-4ef8-9438-b7e8e8b93fef","default":"f72db905-4e42-4ed4-882a-1ad2b267316e"},"security":["e2071b42-ec3b-4eac-9921-09f83c1f51fc"],"summary":"file_metadata","tags":["tools"],"method":"post","type":"path","servers":["6c99b8bf-ff01-4286-94d9-dfdad7f24155"],"path":"/v1/workspaces/{workspace_id}/tools/file-metadata","baseUrlOptions":["https://ndi-api.nace.ai"],"title":"file_metadata","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8ea9fc0a-dc5b-4514-a361-42ecd6a437da":{"description":"Workspace identifier.","in":"path","name":"workspace_id","required":true,"schema":{"description":"Workspace identifier.","format":"uuid","title":"Workspace Id","type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}},"044e922f-b7c6-4a3b-a919-fba54219aa02":{"description":"Use the same key to recover an earlier request. A replay returned as a Job carries Idempotent-Replayed: true and replayed: true without a new charge; Job credits keeps the original cost. Re-serving a settled inline tool answer reports zero credits for that call and also carries Idempotent-Replayed: true; a fresh re-execution after a transient failure carries no header. The key is kept with the job for replay and never cleared, so it must not contain personal data.","in":"header","name":"Idempotency-Key","required":false,"schema":{"oneOf":[{"type":"string","title":"Idempotency-Key","description":"Use the same key to recover an earlier request. A replay returned as a Job carries Idempotent-Replayed: true and replayed: true without a new charge; Job credits keeps the original cost. Re-serving a settled inline tool answer reports zero credits for that call and also carries Idempotent-Replayed: true; a fresh re-execution after a transient failure carries no header. The key is kept with the job for replay and never cleared, so it must not contain personal data.","maxLength":200,"uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Idempotency-Key","description":"Use the same key to recover an earlier request. A replay returned as a Job carries Idempotent-Replayed: true and replayed: true without a new charge; Job credits keeps the original cost. Re-serving a settled inline tool answer reports zero credits for that call and also carries Idempotent-Replayed: true; a fresh re-execution after a transient failure carries no header. The key is kept with the job for replay and never cleared, so it must not contain personal data.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}}},"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Request body for ``file-metadata``. ``path`` names one uploaded file.","properties":{"path":{"description":"The uploaded file's full path relative to the workspace root, exactly as it was uploaded and as listings and search results print it — e.g. `evidence/doc-7f83/contract.pdf`. Not a bare file name (a file's `file_name`), a folder, a file id, or a path that starts with the workspace id.","maxLength":1024,"minLength":1,"title":"Path","type":"string","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"component":{"oneOf":[{"type":"string","title":"Component","description":"Describe only this section or tab, named exactly as an unscoped call lists it.","uniqueKey":"component.oneOf.0","typeLabel":"string"},{"type":"null","title":"Component","description":"Describe only this section or tab, named exactly as an unscoped call lists it.","uniqueKey":"component.oneOf.1","typeLabel":"null"}],"uniqueKey":"component","typeLabel":"string | null"}},"required":["path"],"title":"FileMetadataRequest","type":"object","uniqueKey":"","typeLabel":"FileMetadataRequest · object"},"examples":{"Example":{"title":"Example","value":{"path":"\u003cstring>","component":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"c5d4901c-492e-4ceb-9e77-d7e54e63f8b3":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Response body for ``file-metadata`` — what one uploaded file is, without opening it.\n\n``summary`` is the summary of the file's first section or tab, never a\nconcatenation across components (each component carries its own). A file\nthat is not ingested yet answers 200 with its ``ingestion_status`` and no\ncomponents; a failed one also carries ``ingestion_error``.","properties":{"file_id":{"description":"The uploaded file's id, as the files endpoints address it.","format":"uuid","title":"File Id","type":"string","isRequired":true,"uniqueKey":"file_id","typeLabel":"string\u003cuuid>"},"ingestion_status":{"description":"Where the file is in ingestion; a file that is not `ingested` has no components yet.","enum":["discovered","queued","ingesting","ingested","stale","expired","failed","not_required"],"title":"IngestionStatus","type":"string","isRequired":true,"uniqueKey":"ingestion_status","typeLabel":"enum\u003cstring>"},"path":{"description":"The uploaded file's path relative to the workspace root, as requested.","title":"Path","type":"string","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"size_bytes":{"description":"Byte size of the uploaded source object.","title":"Size Bytes","type":"integer","isRequired":true,"uniqueKey":"size_bytes","typeLabel":"integer"},"category":{"oneOf":[{"type":"string","title":"Category","description":"The file's primary category path, when classified.","uniqueKey":"category.oneOf.0","typeLabel":"string"},{"type":"null","title":"Category","description":"The file's primary category path, when classified.","uniqueKey":"category.oneOf.1","typeLabel":"null"}],"uniqueKey":"category","typeLabel":"string | null"},"components":{"description":"The file's sections, tabs, image or recording, in reading order.","items":{"oneOf":[{"type":"object","title":"FileComponentInfo","description":"One part of an uploaded file that can be asked about by name: a document\nsection, a spreadsheet tab, an image, or the raw upload itself.","required":["kind","name","readable","queryable"],"properties":{"kind":{"description":"What the component is: a document `section`, a spreadsheet `tab`, an `image`, or the `raw` file.","enum":["section","tab","image","raw"],"title":"Kind","type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"description":"The component's name — pass it as `component` to scope a question; empty when the whole file is the unit.","title":"Name","type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.name","typeLabel":"string"},"queryable":{"description":"True when the component is a table that query-tables can compute over.","title":"Queryable","type":"boolean","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.queryable","typeLabel":"boolean"},"readable":{"description":"True when the component has text a question about the file can be answered from.","title":"Readable","type":"boolean","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.readable","typeLabel":"boolean"},"categories":{"description":"Category/subcategory paths assigned to this section or tab at ingestion.","items":{"type":"string","uniqueKey":"components.items.[INDEX].oneOf.0.categories.items.[INDEX]","typeLabel":"string"},"title":"Categories","type":"array","uniqueKey":"components.items.[INDEX].oneOf.0.categories","typeLabel":"string[]"},"column_count":{"oneOf":[{"type":"integer","title":"Column Count","description":"Columns in the component's table, when it has one.","uniqueKey":"components.items.[INDEX].oneOf.0.column_count.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Column Count","description":"Columns in the component's table, when it has one.","uniqueKey":"components.items.[INDEX].oneOf.0.column_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.column_count","typeLabel":"integer | null"},"error":{"oneOf":[{"type":"string","title":"Error","description":"Why ingestion could not read this component; it stays listed but has no content. `not_queryable:\u003ccode>` instead means the tab is still readable as text but is not a table query-tables can read; the code names the reason and never quotes cells. `ledger_structure_not_recognized:\u003ccode>` means structured ledger extraction failed but the tab is still queryable as a raw grid (columns A, B, ...; every populated row is data). `table_structure_not_recognized:\u003ccode>` means the tab has no header row ingestion could name, so it is queryable as the same raw grid.","uniqueKey":"components.items.[INDEX].oneOf.0.error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"Why ingestion could not read this component; it stays listed but has no content. `not_queryable:\u003ccode>` instead means the tab is still readable as text but is not a table query-tables can read; the code names the reason and never quotes cells. `ledger_structure_not_recognized:\u003ccode>` means structured ledger extraction failed but the tab is still queryable as a raw grid (columns A, B, ...; every populated row is data). `table_structure_not_recognized:\u003ccode>` means the tab has no header row ingestion could name, so it is queryable as the same raw grid.","uniqueKey":"components.items.[INDEX].oneOf.0.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.error","typeLabel":"string | null"},"key_terms":{"description":"Up to FILE_METADATA_MAX_KEY_TERMS of the component's extracted keywords whose role the source states (who a name is, what a date or number marks), in extraction order. Empty for files ingested before keyword roles were extracted.","items":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"components.items.[INDEX].oneOf.0.key_terms.items.[INDEX].additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"components.items.[INDEX].oneOf.0.key_terms.items.[INDEX].additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.key_terms.items.[INDEX].additionalProperties","typeLabel":"string | null"},"type":"object","uniqueKey":"components.items.[INDEX].oneOf.0.key_terms.items.[INDEX]","typeLabel":"object"},"maxItems":6,"title":"Key Terms","type":"array","uniqueKey":"components.items.[INDEX].oneOf.0.key_terms","typeLabel":"Key Terms · object[]"},"page_end":{"oneOf":[{"type":"integer","title":"Page End","description":"Last source page covered, 1-based (sections).","uniqueKey":"components.items.[INDEX].oneOf.0.page_end.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Page End","description":"Last source page covered, 1-based (sections).","uniqueKey":"components.items.[INDEX].oneOf.0.page_end.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.page_end","typeLabel":"integer | null"},"page_start":{"oneOf":[{"type":"integer","title":"Page Start","description":"First source page covered, 1-based (sections).","uniqueKey":"components.items.[INDEX].oneOf.0.page_start.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Page Start","description":"First source page covered, 1-based (sections).","uniqueKey":"components.items.[INDEX].oneOf.0.page_start.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.page_start","typeLabel":"integer | null"},"row_count":{"oneOf":[{"type":"integer","title":"Row Count","description":"Tabs: rows in the queryable table, null when the tab is not queryable; sections: rows in their rows tables; else the source extent.","uniqueKey":"components.items.[INDEX].oneOf.0.row_count.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Row Count","description":"Tabs: rows in the queryable table, null when the tab is not queryable; sections: rows in their rows tables; else the source extent.","uniqueKey":"components.items.[INDEX].oneOf.0.row_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.row_count","typeLabel":"integer | null"},"source_grid":{"oneOf":[{"type":"object","title":"SourceGridTable","description":"Separate source-cell SQL table for this tab, retaining printed rows and balances beside normalized records.","required":["table_name","row_count","column_count"],"properties":{"column_count":{"description":"Source cell columns, named by worksheet letters.","minimum":0,"title":"Column Count","type":"integer","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.0.column_count","typeLabel":"integer"},"row_count":{"description":"Populated source rows retained, including titles, headers and balances.","minimum":0,"title":"Row Count","type":"integer","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.0.row_count","typeLabel":"integer"},"table_name":{"description":"SQL name of the source-cell table; file-metadata resolves any catalog collision suffix.","title":"Table Name","type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.0.table_name","typeLabel":"string"},"source_row_column":{"default":"__ndi_source_row__","description":"SQL column holding the original 1-based worksheet row number.","title":"Source Row Column","type":"string","uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.0.source_row_column","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.0","typeLabel":"SourceGridTable · object"},{"type":"null","description":"Separate source-cell SQL table for this tab, retaining printed rows and balances beside normalized records.","uniqueKey":"components.items.[INDEX].oneOf.0.source_grid.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].oneOf.0.source_grid","typeLabel":"SourceGridTable · object | null"},"summary":{"default":"","description":"What the component contains, as summarized at ingestion.","title":"Summary","type":"string","uniqueKey":"components.items.[INDEX].oneOf.0.summary","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"components.items.[INDEX].oneOf.0","typeLabel":"FileComponentInfo · object"},{"type":"object","title":"MediaComponentInfo","description":"A recording: timeline facts, no paths — ask about it with qa-file.","required":["modality","duration_ms","speaker_count"],"properties":{"duration_ms":{"description":"Length of the recording in milliseconds.","title":"Duration Ms","type":"integer","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.1.duration_ms","typeLabel":"integer"},"modality":{"description":"Whether the recording is `audio` or `video`.","enum":["audio","video"],"title":"Modality","type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.1.modality","typeLabel":"enum\u003cstring>"},"speaker_count":{"description":"Distinct speakers detected in the recording.","title":"Speaker Count","type":"integer","isRequired":true,"uniqueKey":"components.items.[INDEX].oneOf.1.speaker_count","typeLabel":"integer"},"kind":{"const":"media","default":"media","title":"Kind","type":"string","uniqueKey":"components.items.[INDEX].oneOf.1.kind","typeLabel":"string"},"summary":{"default":"","description":"What the recording covers, as summarized at ingestion.","title":"Summary","type":"string","uniqueKey":"components.items.[INDEX].oneOf.1.summary","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"components.items.[INDEX].oneOf.1","typeLabel":"MediaComponentInfo · object"}],"uniqueKey":"components.items.[INDEX]","typeLabel":"FileComponentInfo · object | MediaComponentInfo · object"},"title":"Components","type":"array","uniqueKey":"components","typeLabel":"(FileComponentInfo · object | MediaComponentInfo · object)[]"},"credits":{"oneOf":[{"type":"integer","title":"Credits","description":"Credits billed for this call; zero for a free answer or replay, null when a billing receipt is unavailable.","minimum":0,"uniqueKey":"credits.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Credits","description":"Credits billed for this call; zero for a free answer or replay, null when a billing receipt is unavailable.","uniqueKey":"credits.oneOf.1","typeLabel":"null"}],"uniqueKey":"credits","typeLabel":"integer | null"},"figures":{"description":"PDFs: pictures inside the pages (seals, charts, photos, stamps), in page order; with `component`, only those on that component's pages. Empty for other files and for PDFs ingested before figures were recorded.","items":{"additionalProperties":false,"description":"One picture inside a PDF page — a seal, chart, photo, map or stamp that OCR found as a region.\n\nIts description is also inline in read-file (``[figure pN-K: …]`` at its spot on the page)\nand in hybrid-search, so a figure can be found by what it shows.","properties":{"name":{"description":"`figure p\u003cpage>-\u003cn>`. Pass it as qa-file's `component` to ask the vision engine about this figure alone.","title":"Name","type":"string","isRequired":true,"uniqueKey":"figures.items.[INDEX].name","typeLabel":"string"},"page":{"description":"1-based page the figure is on.","title":"Page","type":"integer","isRequired":true,"uniqueKey":"figures.items.[INDEX].page","typeLabel":"integer"},"description":{"oneOf":[{"type":"string","title":"Description","description":"What the figure shows, written by a vision model at ingestion; null when not described.","uniqueKey":"figures.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","description":"What the figure shows, written by a vision model at ingestion; null when not described.","uniqueKey":"figures.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"figures.items.[INDEX].description","typeLabel":"string | null"},"text":{"default":"","description":"Text printed inside the figure, as OCR read it.","title":"Text","type":"string","uniqueKey":"figures.items.[INDEX].text","typeLabel":"string"}},"required":["name","page"],"title":"FileFigureInfo","type":"object","uniqueKey":"figures.items.[INDEX]","typeLabel":"FileFigureInfo · object"},"title":"Figures","type":"array","uniqueKey":"figures","typeLabel":"FileFigureInfo · object[]"},"ingestion_error":{"oneOf":[{"type":"string","title":"Ingestion Error","description":"Why ingestion failed, when the ledger recorded a reason.","uniqueKey":"ingestion_error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Ingestion Error","description":"Why ingestion failed, when the ledger recorded a reason.","uniqueKey":"ingestion_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"ingestion_error","typeLabel":"string | null"},"job_id":{"oneOf":[{"type":"string","title":"Job Id","description":"The external operation job; absent for commands inside a search job.","format":"uuid","uniqueKey":"job_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Job Id","description":"The external operation job; absent for commands inside a search job.","uniqueKey":"job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"job_id","typeLabel":"string\u003cuuid> | null"},"kind":{"oneOf":[{"type":"string","title":"Kind","description":"Ingestion lane (document / table / media), when known.","uniqueKey":"kind.oneOf.0","typeLabel":"string"},{"type":"null","title":"Kind","description":"Ingestion lane (document / table / media), when known.","uniqueKey":"kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"kind","typeLabel":"string | null"},"page_count":{"oneOf":[{"type":"integer","title":"Page Count","description":"Pages in a paged document; absent for other files.","uniqueKey":"page_count.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Page Count","description":"Pages in a paged document; absent for other files.","uniqueKey":"page_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"page_count","typeLabel":"integer | null"},"read_coverage":{"oneOf":[{"type":"object","title":"FileReadCoverage","description":"Recorded page reads and OCR usage for the published generation; absent when provenance is unavailable.","required":["pages_read","pages_failed","ocr_used"],"properties":{"ocr_used":{"description":"Whether OCR produced this generation's parsed content.","title":"Ocr Used","type":"boolean","isRequired":true,"uniqueKey":"read_coverage.oneOf.0.ocr_used","typeLabel":"boolean"},"pages_failed":{"description":"Pages whose read failed; whole-parse failures appear as ingestion errors.","minimum":0,"title":"Pages Failed","type":"integer","isRequired":true,"uniqueKey":"read_coverage.oneOf.0.pages_failed","typeLabel":"integer"},"pages_read":{"description":"Pages successfully read for this generation.","minimum":0,"title":"Pages Read","type":"integer","isRequired":true,"uniqueKey":"read_coverage.oneOf.0.pages_read","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"read_coverage.oneOf.0","typeLabel":"FileReadCoverage · object"},{"type":"null","description":"Recorded page reads and OCR usage for the published generation; absent when provenance is unavailable.","uniqueKey":"read_coverage.oneOf.1","typeLabel":"null"}],"uniqueKey":"read_coverage","typeLabel":"FileReadCoverage · object | null"},"summary":{"default":"","description":"Summary of the file's first section or tab; each component has its own.","title":"Summary","type":"string","uniqueKey":"summary","typeLabel":"string"},"tab_count":{"oneOf":[{"type":"integer","title":"Tab Count","description":"Tabs in a workbook; absent for other files.","uniqueKey":"tab_count.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Tab Count","description":"Tabs in a workbook; absent for other files.","uniqueKey":"tab_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"tab_count","typeLabel":"integer | null"},"waiver":{"oneOf":[{"type":"string","title":"Waiver","description":"Why this call is free: repeat_of_job reuses an earlier answer; no_job answers without creating a job.","enum":["repeat_of_job","no_job"],"uniqueKey":"waiver.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Waiver","description":"Why this call is free: repeat_of_job reuses an earlier answer; no_job answers without creating a job.","uniqueKey":"waiver.oneOf.1","typeLabel":"null"}],"uniqueKey":"waiver","typeLabel":"enum\u003cstring> | null"}},"required":["path","file_id","ingestion_status","size_bytes"],"title":"FileMetadataToolResponse","type":"object","uniqueKey":"","typeLabel":"FileMetadataToolResponse · object"},"examples":{"Example":{"title":"Example","value":{"file_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","ingestion_status":"discovered","path":"\u003cstring>","size_bytes":123,"category":"\u003cstring>","components":[{"kind":"section","name":"\u003cstring>","queryable":true,"readable":true,"categories":["\u003cstring>"],"column_count":123,"error":"\u003cstring>","key_terms":[{}],"page_end":123,"page_start":123,"row_count":123,"source_grid":{"column_count":1,"row_count":1,"table_name":"\u003cstring>","source_row_column":"__ndi_source_row__"},"summary":""}],"credits":1,"figures":[{"name":"\u003cstring>","page":123,"description":"\u003cstring>","text":""}],"ingestion_error":"\u003cstring>","job_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","kind":"\u003cstring>","page_count":123,"read_coverage":{"ocr_used":true,"pages_failed":1,"pages_read":1},"summary":"","tab_count":123,"waiver":"repeat_of_job"}}},"exampleType":"generated"}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"description":"Present with value true only when this request replays an existing job without billing again.","schema":{"type":"boolean"}}},"exampleType":"generated"},"8ed48024-314f-4ef8-9438-b7e8e8b93fef":{"content":{"application/json":{"schema":{"description":"Every non-2xx body on ``/v1``.","example":{"error":{"code":"invalid_request","detail":null,"message":"Request body has extra fields that this operation does not accept.","request_id":"req-01j9k2n3p4q5r6s7t8v9","retryable":false}},"properties":{"error":{"description":"The error object, per spec 12 §1.8.","properties":{"code":{"description":"Every error the ``/v1`` surface can return.\n\nClients must treat this as an **open** enum: a new member is an additive\nchange (spec 12 §9), and a client that crashes on an unknown code makes\nevery future error a breaking change.","enum":["storage_connection_not_found","storage_connection_in_use","storage_limit_exceeded","storage_conflict","ingestion_superseded","storage_auth_required","storage_unavailable","scan_required","scan_rejected","scan_unavailable","invalid_request","unsupported_file_type","file_too_large","invalid_schema","invalid_sql","invalid_path_prefix","command_not_permitted","batch_too_large","domain_validation_failed","default_label_required","wait_required_for_zero_retention","ledger_decision_invalid","tenant_required","partner_required","workspace_not_found","file_not_found","job_not_found","upload_not_found","node_not_found","schema_not_found","domain_not_found","session_not_found","access_label_not_found","ledger_understanding_not_found","ledger_table_not_found","tenant_not_found","path_conflict","schema_version_conflict","access_label_name_taken","workspace_name_taken","access_label_in_use","upload_expired","file_not_ingested","workspace_deleting","workspace_not_deletable","ingestion_in_progress","job_not_cancellable","confirmation_required","domain_not_published","domain_in_use","reserved_domain_slug","kg_not_built","kg_build_in_progress","ledger_understanding_in_progress","ledger_understanding_version_outdated","session_busy","tenant_limit_reached","range_not_satisfiable","result_expired","access_denied","tenant_disabled","access_backstop_violation","access_mode_not_implemented","rate_limited","concurrency_limit_reached","quota_exceeded","corrupt_file","zero_byte_file","encrypted_file","csv_dialect_ambiguous","csv_parse_failed","parse_failed","ocr_failed","conversion_failed","sheetless_workbook","unplayable_media","unclassified_pages","job_cancelled","job_timeout","queue_timeout","funding_expired","model_call_limit_exceeded","upstream_unavailable","internal_error","unauthorized","not_implemented"],"title":"ErrorCode","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human- and model-readable; says what to do differently.","title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether retrying the identical request could succeed.","title":"Retryable","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"detail":{"oneOf":[{"type":"object","title":"Detail","description":"Structured payload, when the code carries one.","additionalProperties":true,"uniqueKey":"error.detail.oneOf.0","typeLabel":"Detail · object"},{"type":"null","title":"Detail","description":"Structured payload, when the code carries one.","uniqueKey":"error.detail.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.detail","typeLabel":"Detail · object | null"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Per-request correlation id; matches the ``X-Request-Id`` header. Null only when the error was minted outside any HTTP request, e.g. by a worker.","uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Per-request correlation id; matches the ``X-Request-Id`` header. Null only when the error was minted outside any HTTP request, e.g. by a worker.","uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.request_id","typeLabel":"string | null"}},"required":["code","message","retryable"],"title":"Error","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"Error · object"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","detail":null,"message":"Request body has extra fields that this operation does not accept.","request_id":"req-01j9k2n3p4q5r6s7t8v9","retryable":false}}}},"exampleType":"generated"}},"description":"Gateway Timeout","exampleType":"generated"},"f72db905-4e42-4ed4-882a-1ad2b267316e":{"content":{"application/json":{"example":{"error":{"code":"invalid_request","detail":null,"message":"Request body has extra fields that this operation does not accept.","request_id":"req-01j9k2n3p4q5r6s7t8v9","retryable":false}},"schema":{"description":"Every non-2xx body on ``/v1``.","example":{"error":{"code":"invalid_request","detail":null,"message":"Request body has extra fields that this operation does not accept.","request_id":"req-01j9k2n3p4q5r6s7t8v9","retryable":false}},"properties":{"error":{"description":"The error object, per spec 12 §1.8.","properties":{"code":{"description":"Every error the ``/v1`` surface can return.\n\nClients must treat this as an **open** enum: a new member is an additive\nchange (spec 12 §9), and a client that crashes on an unknown code makes\nevery future error a breaking change.","enum":["storage_connection_not_found","storage_connection_in_use","storage_limit_exceeded","storage_conflict","ingestion_superseded","storage_auth_required","storage_unavailable","scan_required","scan_rejected","scan_unavailable","invalid_request","unsupported_file_type","file_too_large","invalid_schema","invalid_sql","invalid_path_prefix","command_not_permitted","batch_too_large","domain_validation_failed","default_label_required","wait_required_for_zero_retention","ledger_decision_invalid","tenant_required","partner_required","workspace_not_found","file_not_found","job_not_found","upload_not_found","node_not_found","schema_not_found","domain_not_found","session_not_found","access_label_not_found","ledger_understanding_not_found","ledger_table_not_found","tenant_not_found","path_conflict","schema_version_conflict","access_label_name_taken","workspace_name_taken","access_label_in_use","upload_expired","file_not_ingested","workspace_deleting","workspace_not_deletable","ingestion_in_progress","job_not_cancellable","confirmation_required","domain_not_published","domain_in_use","reserved_domain_slug","kg_not_built","kg_build_in_progress","ledger_understanding_in_progress","ledger_understanding_version_outdated","session_busy","tenant_limit_reached","range_not_satisfiable","result_expired","access_denied","tenant_disabled","access_backstop_violation","access_mode_not_implemented","rate_limited","concurrency_limit_reached","quota_exceeded","corrupt_file","zero_byte_file","encrypted_file","csv_dialect_ambiguous","csv_parse_failed","parse_failed","ocr_failed","conversion_failed","sheetless_workbook","unplayable_media","unclassified_pages","job_cancelled","job_timeout","queue_timeout","funding_expired","model_call_limit_exceeded","upstream_unavailable","internal_error","unauthorized","not_implemented"],"title":"ErrorCode","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"description":"Human- and model-readable; says what to do differently.","title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"description":"Whether retrying the identical request could succeed.","title":"Retryable","type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"detail":{"oneOf":[{"type":"object","title":"Detail","description":"Structured payload, when the code carries one.","additionalProperties":true,"uniqueKey":"error.detail.oneOf.0","typeLabel":"Detail · object"},{"type":"null","title":"Detail","description":"Structured payload, when the code carries one.","uniqueKey":"error.detail.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.detail","typeLabel":"Detail · object | null"},"request_id":{"oneOf":[{"type":"string","title":"Request Id","description":"Per-request correlation id; matches the ``X-Request-Id`` header. Null only when the error was minted outside any HTTP request, e.g. by a worker.","uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","title":"Request Id","description":"Per-request correlation id; matches the ``X-Request-Id`` header. Null only when the error was minted outside any HTTP request, e.g. by a worker.","uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.request_id","typeLabel":"string | null"}},"required":["code","message","retryable"],"title":"Error","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"Error · object"}},"required":["error"],"title":"ErrorEnvelope","type":"object","uniqueKey":"","typeLabel":"ErrorEnvelope · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","detail":null,"message":"Request body has extra fields that this operation does not accept.","request_id":"req-01j9k2n3p4q5r6s7t8v9","retryable":false}}}},"exampleType":"examples"}},"description":"Typed error envelope used by every 4xx and 5xx. ``error.code`` distinguishes the failure; HTTP status is a consequence of the code.","exampleType":"examples"}},"security":{"e2071b42-ec3b-4eac-9921-09f83c1f51fc":{"APIKeyHeader":{"in":"header","name":"X-API-Key","type":"apiKey","scopes":[],"schemeName":"APIKeyHeader"}}},"servers":{"6c99b8bf-ff01-4286-94d9-dfdad7f24155":{"url":"https://ndi-api.nace.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"in":"header","name":"X-API-Key","type":"apiKey","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"X-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"X-API-Key"}],"title":"APIKeyHeader"}]},"originalFileLocation":"openapi.json"},"subdomain":"nace-ai","siteName":"NDI Platform API","title":"file_metadata - NDI Platform API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-06T01:06:02.258Z","originalFileLocation":"api-reference/tools/file_metadata.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=\"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about. Cost class: fast. path is the file\u0026#x27;s full path relative to the workspace root, exactly as it was uploaded and as folder-metadata, GET .../files and search results (source_path) print it — for example evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a folder, a file id, or a path that starts with the workspace id is not found. file_not_found is final for that value: do not retry it or guess variants — list the folder with folder-metadata (name_contains= a part of the name) and use the path it prints. The response gives the file\u0026#x27;s category, a summary of its first section or tab, page or tab counts, and its components: each section, tab, image or recording with its own summary, categories, page range or table shape, and key_terms — keywords whose role the source states (who a name is, what a date marks). A recording reports its duration. readable means qa-file can answer from the component\u0026#x27;s text; queryable means it is a table query-tables can compute over. Pass a component\u0026#x27;s name as component to scope either tool to it. component narrows this response to one section or tab by name; a name that matches nothing is refused with invalid_request listing the valid names. A file that is not ingested yet answers 200 with its ingestion_status and no components; a failed one carries ingestion_error.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NDI Platform API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_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/nace-ai/ON_ODtu5ozmA-6iq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"file_metadata - NDI Platform API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about. Cost class: fast. path is the file\u0026#x27;s full path relative to the workspace root, exactly as it was uploaded and as folder-metadata, GET .../files and search results (source_path) print it — for example evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a folder, a file id, or a path that starts with the workspace id is not found. file_not_found is final for that value: do not retry it or guess variants — list the folder with folder-metadata (name_contains= a part of the name) and use the path it prints. The response gives the file\u0026#x27;s category, a summary of its first section or tab, page or tab counts, and its components: each section, tab, image or recording with its own summary, categories, page range or table shape, and key_terms — keywords whose role the source states (who a name is, what a date marks). A recording reports its duration. readable means qa-file can answer from the component\u0026#x27;s text; queryable means it is a table query-tables can compute over. Pass a component\u0026#x27;s name as component to scope either tool to it. component narrows this response to one section or tab by name; a name that matches nothing is refused with invalid_request listing the valid names. A file that is not ingested yet answers 200 with its ingestion_status and no components; a failed one carries ingestion_error.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NDI Platform API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nace-ai.mintlify.site/_mintlify/api/og/v2?division=Tools+and+search\u0026amp;title=file_metadata\u0026amp;description=Describe+one+uploaded+file+without+opening+it%3A+what+it+is%2C+its+category%2C+and+the+parts+you+can+ask+about.%0A%0A**Cost+class%3A+fast.**%0A%0A%60%60path%60%60+is+the+file%27s+full+pa\u0026amp;theme=8e0aab37bff8a500df6616b2\u0026amp;signature=55ca9db5b9f08fc6c0e8091c63e39b7b171150fb982bf7bfe98190cd728d71aa\">\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=\"file_metadata - NDI Platform API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about. Cost class: fast. path is the file\u0026#x27;s full path relative to the workspace root, exactly as it was uploaded and as folder-metadata, GET .../files and search results (source_path) print it — for example evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a folder, a file id, or a path that starts with the workspace id is not found. file_not_found is final for that value: do not retry it or guess variants — list the folder with folder-metadata (name_contains= a part of the name) and use the path it prints. The response gives the file\u0026#x27;s category, a summary of its first section or tab, page or tab counts, and its components: each section, tab, image or recording with its own summary, categories, page range or table shape, and key_terms — keywords whose role the source states (who a name is, what a date marks). A recording reports its duration. readable means qa-file can answer from the component\u0026#x27;s text; queryable means it is a table query-tables can compute over. Pass a component\u0026#x27;s name as component to scope either tool to it. component narrows this response to one section or tab by name; a name that matches nothing is refused with invalid_request listing the valid names. A file that is not ingested yet answers 200 with its ingestion_status and no components; a failed one carries ingestion_error.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nace-ai.mintlify.site/_mintlify/api/og/v2?division=Tools+and+search\u0026amp;title=file_metadata\u0026amp;description=Describe+one+uploaded+file+without+opening+it%3A+what+it+is%2C+its+category%2C+and+the+parts+you+can+ask+about.%0A%0A**Cost+class%3A+fast.**%0A%0A%60%60path%60%60+is+the+file%27s+full+pa\u0026amp;theme=8e0aab37bff8a500df6616b2\u0026amp;signature=55ca9db5b9f08fc6c0e8091c63e39b7b171150fb982bf7bfe98190cd728d71aa\">\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/nace-ai/ON_ODtu5ozmA-6iq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NDI Platform API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111111\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tools/file_metadata.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ndi.nace.ai/#organization\",\"name\":\"NDI Platform API\",\"url\":\"https://docs.ndi.nace.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ndi.nace.ai#website\",\"name\":\"NDI Platform API\",\"url\":\"https://docs.ndi.nace.ai\",\"publisher\":{\"@id\":\"https://docs.ndi.nace.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata#webpage\",\"url\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata\",\"name\":\"file_metadata\",\"description\":\"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about. Cost class: fast. path is the file's full path relative to the workspace root, exactly as it was uploaded and as folder-metadata, GET .../files and search results (source_path) print it — for example evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a folder, a file id, or a path that starts with the workspace id is not found. file_not_found is final for that value: do not retry it or guess variants — list the folder with folder-metadata (name_contains= a part of the name) and use the path it prints. The response gives the file's category, a summary of its first section or tab, page or tab counts, and its components: each section, tab, image or recording with its own summary, categories, page range or table shape, and key_terms — keywords whose role the source states (who a name is, what a date marks). A recording reports its duration. readable means qa-file can answer from the component's text; queryable means it is a table query-tables can compute over. Pass a component's name as component to scope either tool to it. component narrows this response to one section or tab by name; a name that matches nothing is refused with invalid_request listing the valid names. A file that is not ingested yet answers 200 with its ingestion_status and no components; a failed one carries ingestion_error.\",\"dateModified\":\"2026-12-06T01:06:02.258Z\",\"isPartOf\":{\"@id\":\"https://docs.ndi.nace.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tools and search\",\"item\":\"https://docs.ndi.nace.ai/api-reference/file-tools\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"file_metadata\",\"item\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata#apireference\",\"headline\":\"file_metadata\",\"name\":\"file_metadata\",\"description\":\"Describe one uploaded file without opening it: what it is, its category, and the parts you can ask about. Cost class: fast. path is the file's full path relative to the workspace root, exactly as it was uploaded and as folder-metadata, GET .../files and search results (source_path) print it — for example evidence/doc-7f83/contract.pdf. A bare file name (contract.pdf), a folder, a file id, or a path that starts with the workspace id is not found. file_not_found is final for that value: do not retry it or guess variants — list the folder with folder-metadata (name_contains= a part of the name) and use the path it prints. The response gives the file's category, a summary of its first section or tab, page or tab counts, and its components: each section, tab, image or recording with its own summary, categories, page range or table shape, and key_terms — keywords whose role the source states (who a name is, what a date marks). A recording reports its duration. readable means qa-file can answer from the component's text; queryable means it is a table query-tables can compute over. Pass a component's name as component to scope either tool to it. component narrows this response to one section or tab by name; a name that matches nothing is refused with invalid_request listing the valid names. A file that is not ingested yet answers 200 with its ingestion_status and no components; a failed one carries ingestion_error.\",\"url\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ndi.nace.ai/api-reference/tools/file_metadata#webpage\"},\"dateModified\":\"2026-12-06T01:06:02.258Z\",\"publisher\":{\"@id\":\"https://docs.ndi.nace.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ndi.nace.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NDI Platform API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NDI Platform API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/tools/file_metadata.md","siteName":"NDI Platform API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Conventions","pages":[{"title":"API conventions","href":"/api-reference/overview"}]},{"group":"Granular operations","pages":[{"title":"Uploads","href":"/api-reference/uploads"},{"title":"Document operations","href":"/api-reference/document-operations"},{"title":"create_upload","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/uploads","href":"/api-reference/document-operations/create_upload"},{"title":"parse","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/parse","href":"/api-reference/document-operations/parse"},{"title":"split","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/split","href":"/api-reference/document-operations/split"},{"title":"classify","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/classify","href":"/api-reference/document-operations/classify"},{"title":"extract","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/extract","href":"/api-reference/document-operations/extract"},{"title":"validate_extract_schema","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/extract/schema-validation","href":"/api-reference/document-operations/validate_extract_schema"},{"title":"ground","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ground","href":"/api-reference/document-operations/ground"}]},{"group":"Decisions","pages":[{"title":"Drex (Decision Model)","href":"/api-reference/systemone"},{"title":"evaluate_systemone","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/systemone","href":"/api-reference/systemone/evaluate_systemone"}]},{"group":"Catalog","pages":[{"title":"Domains","href":"/api-reference/domains"},{"title":"Access labels","href":"/api-reference/access-labels"},{"title":"Extraction schemas","href":"/api-reference/extraction-schemas"},{"title":"list_domains","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/domains","href":"/api-reference/domains/list_domains"},{"title":"generate_domain","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/domains/generate","href":"/api-reference/domains/generate_domain"},{"title":"suggest_domain_description","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/domains/suggest-description","href":"/api-reference/domains/suggest_domain_description"},{"title":"create_domain","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/domains","href":"/api-reference/domains/create_domain"},{"title":"get_domain","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/domains/{domain_id}","href":"/api-reference/domains/get_domain"},{"title":"update_domain","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/domains/{domain_id}","href":"/api-reference/domains/update_domain"},{"title":"publish_domain","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/domains/{domain_id}/publish","href":"/api-reference/domains/publish_domain"},{"title":"list_access_labels","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/access-labels","href":"/api-reference/access-labels/list_access_labels"},{"title":"create_access_label","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/access-labels","href":"/api-reference/access-labels/create_access_label"},{"title":"get_access_label","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/access-labels/{access_label_id}","href":"/api-reference/access-labels/get_access_label"},{"title":"update_access_label","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/access-labels/{access_label_id}","href":"/api-reference/access-labels/update_access_label"},{"title":"delete_access_label","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/access-labels/{access_label_id}","href":"/api-reference/access-labels/delete_access_label"},{"title":"list_extraction_schemas","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/extraction-schemas","href":"/api-reference/extraction-schemas/list_extraction_schemas"},{"title":"create_extraction_schema","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/extraction-schemas","href":"/api-reference/extraction-schemas/create_extraction_schema"},{"title":"get_extraction_schema","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/extraction-schemas/{schema_id}","href":"/api-reference/extraction-schemas/get_extraction_schema"},{"title":"delete_extraction_schema","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/extraction-schemas/{schema_id}","href":"/api-reference/extraction-schemas/delete_extraction_schema"},{"title":"list_extraction_schema_versions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/extraction-schemas/{schema_id}/versions","href":"/api-reference/extraction-schemas/list_extraction_schema_versions"},{"title":"create_extraction_schema_version","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/extraction-schemas/{schema_id}/versions","href":"/api-reference/extraction-schemas/create_extraction_schema_version"},{"title":"get_extraction_schema_version","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/extraction-schemas/{schema_id}/versions/{version}","href":"/api-reference/extraction-schemas/get_extraction_schema_version"}]},{"group":"Workspaces and files","pages":[{"title":"Workspaces","href":"/api-reference/workspaces"},{"title":"Files","href":"/api-reference/files"},{"title":"create_workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces","href":"/api-reference/workspaces/create_workspace"},{"title":"list_workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces","href":"/api-reference/workspaces/list_workspaces"},{"title":"get_workspace","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}","href":"/api-reference/workspaces/get_workspace"},{"title":"update_workspace","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/workspaces/{workspace_id}","href":"/api-reference/workspaces/update_workspace"},{"title":"get_workspace_stats","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/stats","href":"/api-reference/workspaces/get_workspace_stats"},{"title":"delete_workspace","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/workspaces/{workspace_id}","href":"/api-reference/workspaces/delete_workspace"},{"title":"create_upload_grant","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/upload-grants","href":"/api-reference/files/create_upload_grant"},{"title":"upload_file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/files","href":"/api-reference/files/upload_file"},{"title":"list_files","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files","href":"/api-reference/files/list_files"},{"title":"get_file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files/{file_id}","href":"/api-reference/files/get_file"},{"title":"get_file_metadata","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files/{file_id}/metadata","href":"/api-reference/files/get_file_metadata"},{"title":"get_file_output","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files/{file_id}/outputs/{output_id}","href":"/api-reference/files/get_file_output"},{"title":"list_output_members","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files/{file_id}/outputs/{output_id}/members","href":"/api-reference/files/list_output_members"},{"title":"get_file_versions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/files/{file_id}/versions","href":"/api-reference/files/get_file_versions"},{"title":"replace_file","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/workspaces/{workspace_id}/files/{file_id}","href":"/api-reference/files/replace_file"},{"title":"delete_file","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/workspaces/{workspace_id}/files/{file_id}","href":"/api-reference/files/delete_file"},{"title":"create_upload_session","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/upload-sessions","href":"/api-reference/files/create_upload_session"},{"title":"upload_session_part","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/workspaces/{workspace_id}/upload-sessions/{session_id}/parts/{part_number}","href":"/api-reference/files/upload_session_part"},{"title":"get_upload_session","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/upload-sessions/{session_id}","href":"/api-reference/files/get_upload_session"},{"title":"complete_upload_session","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/upload-sessions/{session_id}/complete","href":"/api-reference/files/complete_upload_session"},{"title":"abort_upload_session","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/workspaces/{workspace_id}/upload-sessions/{session_id}","href":"/api-reference/files/abort_upload_session"},{"title":"get_artifact_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/artifacts/content","href":"/api-reference/artifacts/get_artifact_content"},{"title":"get_artifact_rows","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/workspaces/{workspace_id}/artifacts/rows","href":"/api-reference/artifacts/get_artifact_rows"}]},{"group":"Ingestion and graph","pages":[{"title":"Ingestion","href":"/api-reference/ingestion"},{"title":"Knowledge graph build","href":"/api-reference/knowledge-graph"},{"title":"ingest","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/ingestions","href":"/api-reference/ingestion/ingest"},{"title":"reconcile","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/reconciliations","href":"/api-reference/ingestion/reconcile"},{"title":"build_knowledge_graph","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/knowledge-graph/builds","href":"/api-reference/knowledge-graph/build_knowledge_graph"}]},{"group":"Tools and search","pages":[{"title":"File tools","href":"/api-reference/file-tools"},{"title":"Fact and deep search (deprecated)","href":"/api-reference/intelligent-search"},{"title":"Filtered search (deprecated)","href":"/api-reference/filtered-search"},{"title":"Journal-entry testing","href":"/api-reference/je-testing"},{"title":"Ledger understanding","href":"/api-reference/ledger-understanding"},{"title":"Automatic search","href":"/api-reference/automatic-search"},{"title":"QA","href":"/api-reference/qa"},{"title":"folder_metadata","description":"List one folder of the workspace: file counts, categories, subfolders, and the files' exact paths.\n\n**Cost class: fast.**\n\nExplore in steps instead of listing everything at once:\n\n1. Call with the defaults on ``/`` (the workspace root): the folder's own\n files plus one summary per subfolder (file count, top categories,\n failed-ingestion count).\n2. Descend with ``directory=\u003cfolder>``, or narrow with ``name_contains=``\n (find a file by part of its name), ``category=``, ``ingestion_status=``\n (e.g. ``failed``) or ``kind=``. Counts and listing narrow together, and\n a narrow covers the whole subtree unless ``recursive=false`` is sent.\n3. Pass a ``file_entries[].path`` to ``file-metadata`` to see what is inside\n that file, then ask with ``qa-file`` or ``query-tables``.\n\nEvery path is relative to the workspace root and never includes the\nworkspace id. ``name_contains`` finds files by what they are called — files\nwhose ingestion failed included; the search tools find them by what they\ncontain.\n\nA ``directory`` that names a file is refused with ``invalid_request``\npointing at ``file-metadata``. An unfiltered call that matches nothing\nanswers with a ``hint`` naming the nearest existing folder and what it\nholds, so a mistyped folder is not a dead end.\n\n``file_entries`` comes one ``page_size`` page at a time, sorted by path;\n``files_truncated`` reports a cut — resume with ``start_after=\u003clast path>``\nor narrow. Counts and listing only include files the caller's access\nlabels allow; ``coverage`` says how many were withheld.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/folder-metadata","href":"/api-reference/tools/folder_metadata"},{"title":"file_metadata","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/file-metadata","href":"/api-reference/tools/file_metadata"},{"title":"catalog","description":"The metadata catalog ingestion extracted from every document: its tables, or one SELECT's rows.\n\n**Cost class: fast.** Answers inline: no job, no credits. Without ``sql``: one table per document\ntype the workspace holds (invoices, contracts, statements...) with its typed columns, plus\n``catalog_document`` over every record. With ``sql``: one read-only SELECT over those tables, its rows\ncapped and ``truncated`` set when cut. A refused or failing statement answers ``invalid_request`` with\nthe reason; so does a workspace whose catalog is too large to query whole.\n\nA record is one document section, spreadsheet tab, recording or JSON section, never one printed line:\nthe entries a listing, register or ledger prints (each credit note in a credit-note report) are not\nrecords of their own. The listing is one record; read it with ``read-file``, or query a tab's rows\nwith ``run-sql``. Every record carries ``source_path``, the path the other file tools take.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/catalog","href":"/api-reference/tools/catalog"},{"title":"locate","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/locate","href":"/api-reference/tools/locate"},{"title":"read_file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/read-file","href":"/api-reference/tools/read_file"},{"title":"run_sql","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/run-sql","href":"/api-reference/tools/run_sql"},{"title":"qa_file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/qa-file","href":"/api-reference/tools/qa_file"},{"title":"query_tables","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/tools/query-tables","href":"/api-reference/tools/query_tables"},{"title":"deep_search","deprecated":true,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/deep-search","href":"/api-reference/intelligent-search/deep_search"},{"title":"fact_search","deprecated":true,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/fact-search","href":"/api-reference/intelligent-search/fact_search"},{"title":"filtered_search","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/filtered-search","href":"/api-reference/filtered-search/filtered_search"},{"title":"je_testing","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/je-testing","href":"/api-reference/je-testing/je_testing"},{"title":"automatic_search","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/automatic-search","href":"/api-reference/intelligent-search/automatic_search"},{"title":"qa","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/workspaces/{workspace_id}/qa","href":"/api-reference/intelligent-search/qa"}]},{"group":"Jobs and usage","pages":[{"title":"Jobs","href":"/api-reference/jobs"},{"title":"Usage","href":"/api-reference/usage"},{"title":"list_jobs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs","href":"/api-reference/operations/list_jobs"},{"title":"get_job","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}","href":"/api-reference/operations/get_job"},{"title":"update_job","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/jobs/{job_id}","href":"/api-reference/operations/update_job"},{"title":"delete_job","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/jobs/{job_id}","href":"/api-reference/operations/delete_job"},{"title":"get_job_request","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/request","href":"/api-reference/operations/get_job_request"},{"title":"cancel_job","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/jobs/{job_id}/cancel","href":"/api-reference/operations/cancel_job"},{"title":"stream_job_events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/events","href":"/api-reference/operations/stream_job_events"},{"title":"get_ground_crop_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/ground-crops/{artifact_ref}","href":"/api-reference/operations/get_ground_crop_content"},{"title":"get_ground_transcript_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/ground-transcript/{artifact_ref}","href":"/api-reference/operations/get_ground_transcript_content"},{"title":"get_parse_transcript_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/parse-transcript/{artifact_ref}","href":"/api-reference/operations/get_parse_transcript_content"},{"title":"get_converted_pdf_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/converted-pdf/{artifact_ref}","href":"/api-reference/operations/get_converted_pdf_content"},{"title":"get_spreadsheet_cell_map_content","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/jobs/{job_id}/spreadsheet-cell-maps/{artifact_ref}","href":"/api-reference/operations/get_spreadsheet_cell_map_content"},{"title":"get_usage","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage","href":"/api-reference/operations/get_usage"},{"title":"get_usage_overview","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/usage/overview","href":"/api-reference/operations/get_usage_overview"}]},{"group":"Partners","pages":[{"title":"Tenants","href":"/api-reference/tenants"},{"title":"list_tenants","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenants","href":"/api-reference/tenants/list_tenants"},{"title":"put_tenant","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenants/{external_ref}","href":"/api-reference/tenants/put_tenant"},{"title":"get_tenant","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenants/{external_ref}","href":"/api-reference/tenants/get_tenant"},{"title":"delete_tenant","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/tenants/{external_ref}","href":"/api-reference/tenants/delete_tenant"}]}]},{"tab":"SDKs","versions":[{"version":"Python","groups":[{"group":"Get started","pages":[{"title":"Python SDK","href":"/sdks/python"}]},{"group":"Core methods","pages":[{"title":"Upload","href":"/sdks/python/upload"},{"title":"Parse","href":"/sdks/python/parse"},{"title":"Extract","href":"/sdks/python/extract"},{"title":"Split","href":"/sdks/python/split"},{"title":"Classify","href":"/sdks/python/classify"},{"title":"Ground","href":"/sdks/python/ground"},{"title":"Workspaces","href":"/sdks/python/workspaces"},{"title":"Storage connections","href":"/sdks/python/storage-connections"},{"title":"Deep search (deprecated)","href":"/sdks/python/search"},{"title":"Journal-entry testing","href":"/sdks/python/je-testing"},{"title":"Ledger understanding","href":"/sdks/python/ledger-understanding"},{"title":"Automatic search","href":"/sdks/python/automatic-search"},{"title":"QA","href":"/sdks/python/qa"},{"title":"Drex (Decision Model)","href":"/sdks/python/systemone"}]},{"group":"Async and utilities","pages":[{"title":"Async client","href":"/sdks/python/async"},{"title":"Job management","href":"/sdks/python/job-management"},{"title":"Error handling","href":"/sdks/python/error-handling"}]}]},{"version":"TypeScript","pages":[{"title":"TypeScript","href":"/sdks/typescript"}]}]}]},"basePath":"","title":"file_metadata - NDI Platform API","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}