Skip to content
API v1 · 1.0.0-draft.1
Go to console
Contents ↓

API reference / Batches

POST

Create a batch

POST /v1/batches

Create a batch (status open)

Parameters

Idempotency-Keystringheaderoptional
Unique string (UUID recommended), kept 24 hours per API key. Same key + same body returns the stored response with Idempotent-Replayed: true. Same key + different body returns 422 idempotency_conflict. Same key while the first request is still running returns 409 idempotency_in_progress. (draft-ietf-httpapi-idempotency-key-header-08)

Request body

application/json

namestringoptional
document_typeenumoptional
delivery_modeenumoptional
partial (default): verified fields are released at in_review; fields sent to a human come back with status: needs_review and value: null. When the review ends the result gets a new result_version and document.completed is sent. wait_for_review: result is released only when every field is final.
retention_daysintegeroptional
outputsstring[]optional
expected_countintegeroptional
Optional; improves the time estimate.
auto_close_after_secondsintegeroptional
metadataobjectoptional
Up to 20 string pairs (key ≤ 40, value ≤ 500 chars). Do not put personal data here.

Possible errors

400invalid_requestThe request is invalid; see details.
401unauthorizedAuthentication failed. Check your API key.
403forbiddenThis key isn't allowed to do this.
429rate_limitedToo many requests. Retry shortly.
429daily_rejection_limitToo many rejected documents today. Try again tomorrow.
429daily_limit_reachedYour daily processing limit is reached. Try again tomorrow.
429free_failure_limitToo many documents could not be processed today. Try again tomorrow.
429reprocess_limit_reachedThis document was already reprocessed today. Try again tomorrow.
Last updated: 23 Nov 2026