Batch Detail
Get detailed information for a single extraction batch including item counts, provider, status, and timing. Shows per-item breakdown when the batch is completed.
Retrieve the full batch record including per-item status. Poll this endpoint while status is submitted to track progress. Once completed, each item shows its individual outcome and processing timestamp.
Use this endpoint to monitor a batch after submission. Poll periodically while status is submitted — typically results arrive within 24 hours. Once status changes to completed, failed, or cancelled, polling can stop. Use the sync endpoint to force an immediate provider check instead of waiting for the hourly poll.
The response includes items — an array of per-document results. Each item has a status (pending, processing, completed, or failed), the associated document_id and document_filename, and a processed_at timestamp. The custom_id field shows the provider-assigned identifier used when submitting to Anthropic or Bedrock.
Failed items are automatically retried via realtime extraction, never re-batched, to preserve the 48-hour SLA. Check the errored_count and expired_count fields at the batch level, and individual items[].error_message for per-document failure details. Pair with GET /v1/documents/:id to check the final extraction status of any document in the batch.
items[].status for per-document outcomes./v1/batches/:idResponse
Response fields
Response
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"provider": "anthropic",
"item_count": 142,
"succeeded_count": 142,
"errored_count": 0,
"expired_count": 0,
"submitted_at": "2024-10-01T06:00:00.000Z",
"completed_at": "2024-10-01T14:23:00.000Z",
"error_message": null,
"created_at": "2024-10-01T05:45:00.000Z",
"updated_at": "2024-10-01T14:23:00.000Z",
"links": { "self": "/v1/batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890" },
"items": [
{
"id": "item-uuid-1",
"document_id": "doc-uuid-1",
"document_filename": "invoice_2024_001.pdf",
"custom_id": "msgbatch_abc123:0",
"status": "completed",
"error_message": null,
"created_at": "2024-10-01T05:45:00.000Z",
"processed_at": "2024-10-01T14:10:00.000Z"
}
]
}Errors
Error responses