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

API başvurusu / Belgeler

POST

Belge gönderin

POST /v1/documents

Tek bir belge yükler.

Parametreler

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

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)
Preferstringbaşlıkisteğe bağlı
wait=N (RFC 7240), N between 1 and 30. Ignored for files over 10 pages and for batches.
Accept-Languagestringbaşlıkisteğe bağlı
tr (default) or en. Affects message, title, detail, hint only; codes never change.
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

document_typeenumisteğe bağlı
Optional hint. If the detected type differs, the detected type wins and a notice is added.
batch_idstringisteğe bağlı
Add to an open batch (same as POST /v1/batches/{id}/documents with one file).
delivery_modeenumisteğe bağlı
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_daysintegeristeğe bağlı
File retention. 0 = delete file as soon as the result is final. Defaults to the data policy.
outputsstring[]isteğe bağlı
Exports to prepare in advance (links appear in the webhook). All formats remain downloadable later.
duplicate_policyenumisteğe bağlı
schema_versionstringisteğe bağlı
Pin a schema version (default: organisation pin, else current).
pipeline_versionstringisteğe bağlı
Pin a pipeline version (default: organisation pin, else current). A pipeline version pins the exact model ID of every engine; customers never choose or pin engines themselves.
metadataobjectisteğe bağlı
Up to 20 string pairs (key ≤ 40, value ≤ 500 chars). Do not put personal data here.
filestringzorunlu
PDF, JPG, PNG, TIFF, UBL-TR XML (e-Fatura / e-Arsiv) or xlsx / legacy xls (bank account statement); max 20 MB and 100 pages, XML max 5 MB. Type is detected from content. An xlsx or xls is never sent to an engine; if no statement reader recognises it or its balance chain fails, every field is needs_review (human_required). XML is read without AI and its XAdES e-seal is verified; XML with a DOCTYPE, entity declarations or external references is rejected with unsafe_xml. No PDF password is accepted; password-protected PDFs are rejected with password_required. ZIP archives are not accepted. HEIC is not accepted in v1; it is rejected with unsupported_type, measured.detected_mime_type set to image/heic, and a hint to upload a JPG or PNG.

Olası hatalar

400invalid_requestİstek hatalı: ayrıntılara bakın.
401unauthorizedKimlik doğrulanamadı. API anahtarınızı kontrol edin.
402insufficient_creditKredi bakiyeniz yetersiz. Kredi yükleyin.
403forbiddenBu anahtarın bu işlem için yetkisi yok.
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.
422idempotency_conflictBu Idempotency-Key başka bir istekte kullanıldı.
422unsupported_outputBu çıktı biçimi bu belge için verilemiyor.
422invalid_requestİstek hatalı: ayrıntılara bakın.
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.
500internal_errorBeklenmeyen bir hata oluştu.
503service_unavailableHizmet geçici olarak kullanılamıyor.
Son güncelleme: 23.11.2026