Skip to main content
POST
file_metadata

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.

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.

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.

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.

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