Skip to main content
POST
file_metadata

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string | null

Replaying a request with the same key returns the original job with 200, never a second job. 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 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.

components
(FileComponentInfo · object | MediaComponentInfo · object)[]

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.

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.

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.

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.