İçeriğe geçin
API v1 · 1.0.0-draft.1
Konsola gidin
İçindekiler ↓

API başvurusu / Toplu işler

POST

Toplu işe dosya ekleyin

POST /v1/batches/{batch_id}/documents

Açık bir toplu işe dosya ekler (istek başına en çok 50 dosya ve 200 MB).

Parametreler

Açıklamalar sözleşmeden, İngilizce.

batch_idstringyolzorunlu
Idempotency-Keystringbaşlıkisteğe bağlı
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)
Sandbox-Scenarioenumbaşlıkisteğe bağlı
Only with er_test_ keys. Selects the fixed sample outcome. Ignored (and rejected with 400) on live keys.

İstek gövdesi

multipart/form-data

filesstring[]zorunlu
metadataobjectisteğe bağlı
Up to 20 string pairs (key ≤ 40, value ≤ 500 chars). Do not put personal data here.
document_typeenumisteğe bağlı
Optional hint applied to every file in this request; overrides the batch's document_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.

Olası hatalar

400invalid_requestİstek hatalı: ayrıntılara bakın.
402insufficient_creditKredi bakiyeniz yetersiz. Kredi yükleyin.
403forbiddenBu anahtarın bu işlem için yetkisi yok.
404not_foundKayıt bulunamadı.
409invalid_stateBu işlem, kaydın şu anki durumunda yapılamaz.
409idempotency_in_progressAynı istek şu anda işleniyor; biraz sonra yeniden deneyin.
409result_not_readySonuç henüz hazır değil.
413file_too_largeDosya çok büyük. Belgeyi bölerek yükleyin.
429rate_limitedÇok fazla istek. Birazdan yeniden deneyin.
429daily_rejection_limitBugün çok sayıda belge geri çevrildi. Yarın yeniden deneyin.
429daily_limit_reachedBugünkü işlem sınırınız doldu. Yarın yeniden deneyin.
429free_failure_limitBugün çok sayıda belge işlenemedi. Yarın yeniden deneyin.
429reprocess_limit_reachedBu belge bugün zaten yeniden okundu. Yarın yeniden deneyin.
Son güncelleme: 23.11.2026