API başvurusu / Belgeler
POST
Belge gönderin
POST /v1/documentsTek bir belge yükler.
Parametreler
Açıklamalar sözleşmeden, İngilizce.
Idempotency-Keystringbaşlıkisteğe bağlı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ı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ıbatch_idstringisteğe bağlı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ıoutputsstring[]isteğe bağlıduplicate_policyenumisteğe bağlıschema_versionstringisteğe bağlıpipeline_versionstringisteğe bağlımetadataobjectisteğe bağlıfilestringzorunluneeds_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.