API reference / Batches
POST
Add files to a batch
POST /v1/batches/{batch_id}/documentsAdd files to an open batch (up to 50 files and 200 MB per request)
Parameters
batch_idstringpathrequiredIdempotency-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)Sandbox-Scenarioenumheaderoptionaler_test_ keys. Selects the fixed sample outcome. Ignored (and rejected with 400) on live keys.Request body
multipart/form-data
filesstring[]requiredmetadataobjectoptionaldocument_typeenumoptionaldocument_type for these files. If the detected type differs, the detected type wins (same as POST /v1/documents). Send it for images, which have no text layer to detect the type from.