Document Split
Split rule suggestion and split runs are queued operations (202, poll GET /v1/operations/{operationId}); split PDF download stays synchronous.
Suggest split rules
Requires a parsed file and debits exactly 1 credit before enqueueing. Queued, not synchronous: responds 202 with { operation_id, status } and the suggestion runs asynchronously — poll GET /v1/operations/{operationId} for progress and output (output.rules). A request that re-attaches to an already-completed operation (same idempotency key) returns 200 with the rules inline instead. Retrying a failed/cancelled attempt starts a fresh attempt and re-charges; the ledger records each attempt under its own :attempt-N idempotency key.
Suggest split rules › Request Body
file_idmodel_idreasoning_levelidempotency_keySuggest split rules › Responses
Split rules (idempotent replay of an already-completed run)
operation_idoperation_typestatusPopulated only once status is completed.
errorcreated_atcompleted_atEnqueue a document split run
Requires a parsed file and debits exactly 1 credit before enqueueing. Queued, not synchronous: responds 202 with { operation_id, status } and the split runs asynchronously — poll GET /v1/operations/{operationId} for progress and output. A request that re-attaches to an already-completed operation (same idempotency key) returns 200 with the split session inline instead. Retrying a failed/cancelled attempt starts a fresh attempt and re-charges (the failed attempt's credit was already refunded); the ledger records each attempt under its own :attempt-N idempotency key.
Enqueue a document split run › Request Body
file_idmodel_idreasoning_levelidempotency_keyEnqueue a document split run › Responses
Split session (idempotent replay of an already-completed run)
operation_idoperation_typestatusPopulated only once status is completed.
errorcreated_atcompleted_atDownload split PDF page range
Returns a PDF page range from the source file. This endpoint does not debit credits.
Download split PDF page range › Request Body
file_idstartPageendPagetitleDownload split PDF page range › Responses
PDF bytes

