Resume a batch
Resume pending and failed documents in a batch.
Authorizations
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
Response
Response shape for POST /api/v2/batches/{batch_id}/resume/ (AD-419).
Resumes a cancelled batch by flipping CANCELLED docs back to PENDING and
re-enqueueing process_batch. COMPLETED and FAILED docs are untouched.
Fields:
batch: The updated parent batch (status flipped to PROCESSING).
resumed_doc_count: Number of CANCELLED BatchDocument rows flipped
back to PENDING.
estimated_credit_cost: Best-effort millicredit estimate for the
remaining cancelled docs (informational; actual deduction happens
inside process_batch).
Compact projection of a Batch row for responses that need to echo the parent batch state alongside per-row payloads.
Currently used by BatchReprocessResponse so the SPA can update its
batch header (status pill, default version chip) without a follow-up GET.
Estimated millicredit cost across resumed cancelled docs (page_count * EXTRACT_MILLICREDITS_PER_PAGE). Informational.

