Skip to navigation

Run (or re-run) document extraction

Starts the document validation + extraction workflow for the document and returns 202 immediately. Each run creates a new extraction record; results land on the document (lifecycleStatus) and, for insurance documents, in coverages and the certificate. Use it after an extraction failed, or to process a document staged with activate=false. Works on documents of any status; no request body. A license or background_check document is stored only and never read: extracting one is a 400.

Because this is an operator-initiated run, any producer verification calls it triggers dial immediately instead of waiting for business hours.

LLM cost controls (both configurable per deployment):

  • Per-document re-extraction cap — default 10 runs per 24 hours. Every request counts toward the cap, including ones that are then refused.
  • Per-organization token budget over the same window.

Sandbox: fixture COIs are recognised by content hash and extracted without an LLM call; other files fail validation.

Requires scope documents:write.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"
documentIdstringRequiredformat: "uuid"

Response

Extraction queued
dataobject
messagestring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error