v50

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-1759238438.1 KB
Documents

Process a document

Triggers the AI processing pipeline (extraction and summarization) for the document's current or specified version.

post/v1beta/documents/{document_id}/process

Path parameters

document_idstring required

Document ID.

Example:doc_01h2xcejqtf2nbrexx3vqjhp41

Document ID.

Request body

asyncboolean

If true, returns immediately without waiting for processing to complete.

version_idstring nullable

Optional version ID. If omitted, processes the current version.

Example request

{
  "version_id": "ver_01h2abcd1234efgh5678jkmnpt"
}

Response

Success

document_idstring

Document ID being processed.

status'PROCESSING_OUTCOME_UNSPECIFIED' | 'PROCESSING_OUTCOME_STARTED' | 'PROCESSING_OUTCOME_ALREADY_PROCESSING' | 'PROCESSING_OUTCOME_ALREADY_COMPLETED' | 'PROCESSING_OUTCOME_FAILED'

ProcessingOutcome describes the result of a processing trigger request.

version_idstring

Version ID being processed.