Skip to main content
POST
Reprocess a document with a new (or no) schema
Re-runs extraction, optionally with a different published schema version (or none). Completing this run is a new page charge. Ingest-born documents go through the batch worker so spend stays black_hole. Retry of a failed document is a different route on the chat-pk surface and does not start a billed full reprocess.

Authorizations

Authorization
string
header
required

Organisation API key from Settings → API / /api/keys/. The secret is shown once. Send Authorization: Bearer sk-abacus-…. One active key per organisation. Ingest (/api/v2/ingest/*) refuses API keys — that surface is Auth0-only with ingest:read / ingest:write scopes.

Path Parameters

att_id
integer
required

Body

application/json

Body for POST /attachments/<att_id>/reprocess/.

struct_version_id: * an int → pin that StructVersion and run schema-guided extraction * null / omitted → remove any schema and run OCR-only re-extraction

struct_version_id
integer | null

Response

Processing status snapshot for the progress-polling endpoint.

Serializes ChatAttachment directly (not Chat) because the progress endpoint queries the attachment by chat pk.

status
string
required
progress
integer
required
stage
string
required
page_count
integer

Number of pages in the original document

Required range: 0 <= x <= 2147483647