Skip to navigation

Get a document by ID

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idintegerRequired>=1

Query parameters

prompt_idsstringOptional

Optional comma-separated extractor prompt IDs. If omitted, no prompt extraction values are returned.

Response

Document
created_atdatetime
has_active_workflowboolean
True if there is a workflow currently running for this document
idinteger
is_validboolean
namestring
organization_idstring
statusenum

Lifecycle status for a document.

  • uploading: an upload URL has been issued for the document, but the file has not yet been uploaded to that URL.
  • processing: the file has been uploaded and the system is ingesting it, extracting metadata, and preparing it for use.
  • ready: processing is complete and the document can be used in workflows, selectors, and extraction jobs.
Allowed values:
document_classstring or nullOptional
Classification result for this document, if present.
document_subclassstring or nullOptional

Subclass result for this document (nested under document_class). Null when no subclass was assigned.

extraction_resultslist of objects or nullOptional
Extraction values for requested prompt IDs.
file_sizeinteger or nullOptional
folder_idinteger or nullOptional
Folder containing the document. Null or omitted means the document is at root.
page_countinteger or nullOptional
source_documentinteger or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error