API reference / Batches
POST
Create a batch
POST /v1/batchesCreate a batch (status open)
Parameters
Idempotency-KeystringheaderoptionalIdempotent-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
namestringoptionaldocument_typeenumoptionaldelivery_modeenumoptionalpartial (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_daysintegeroptionaloutputsstring[]optionalexpected_countintegeroptionalauto_close_after_secondsintegeroptionalmetadataobjectoptional