Upload and Run
Upload a document packet and start a run in a single call
202 response returns the new run_id. Poll GET /v3/runs/{run_id}/ until status is terminal — the results arrive inline on that same read. For production integrations, prefer webhooks over polling.
Send the files as multipart form data under the files field (repeat it for a multi-file packet); files above the per-file size cap are rejected at slot mint (before any bytes reach S3). Packet creation is all-or-nothing.
Idempotency-Key. Retrying with the same key replays the original packet and run — no duplicate upload, no second extraction billed. See Idempotency.402 PAYMENT_REQUIRED.
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Headers
Optional caller-supplied key (Stripe convention). Retrying the request with the same key replays the original packet AND run — no duplicate upload, no second extraction.
Path Parameters
Body
1..10 files forming one document packet.
Response
Successful Response
202 response for both run triggers (upload/run/ and
document-packets/{id}/run/).
Unique identifier of the new run (hyphenated UUID).
"069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
The document packet the run executes on (hyphenated UUID).
"069dcc2c-e14c-7606-8000-2ee4fb17b4e1"
The workflow being run (hyphenated UUID).
"0686bb97-8c30-70f0-8000-97669e000eb8"
Status at acceptance time — normally queued.
queued, in_progress, processed, error, cancelled "queued"
