API reference
API documentation
The Entrfy Read API reads Turkish statements, invoices and tax certificates, checks every field with rules and returns the result as JSON. You send a file; a webhook tells you when the result is ready.
Quickstart
- Get an API key in the console. A sandbox key starting with
er_test_never calls a real engine and never stores the file. - Send your file to Create a document (
POST /v1/documents) asmultipart/form-data. - When the result is ready, a
document.completedevent reaches your webhook URL. Fetch the result with Get the result (GET /v1/documents/{document_id}/result).
Authentication
Send your secret key in the Authorization header of every request: Bearer er_live_... in live mode, Bearer er_test_... in the sandbox. Keys are stored only as a hash. Never put a key in a URL.
Core rules
Core promise
A wrong value is never delivered silently. Every field carries a status. Fields that are not verified (needs_review, illegible, not_present) are returned with value: null; the API never returns a guess as a value.
Amounts
Amounts are decimal strings with two decimals ("1234.56"), never JSON numbers, so clients do not convert them to floats and round them.
Common response headers
Common response headers (present on every response, omitted from individual operations for brevity): Request-Id, RateLimit, RateLimit-Policy, Content-Language, X-Content-Type-Options: nosniff. File downloads also carry Content-Disposition: attachment. Deprecated features add Deprecation, Sunset and a Link: <...>; rel="deprecation" header.
Errors
Errors use RFC 9457 application/problem+json with two extensions: code (stable, ASCII, English, lower snake case; never translated) and request_id.
Sandbox
er_test_ keys never call a real engine and never store the uploaded file. They return fixed sample results; the Sandbox-Scenario header selects the outcome.
API reference
Documents
/v1/documents/v1/documents/v1/documents/{document_id}/v1/documents/{document_id}/v1/documents/{document_id}/result/v1/documents/{document_id}/history/v1/documents/{document_id}/events/v1/documents/{document_id}/feedback/v1/documents/{document_id}/exports/{format}/v1/documents/{document_id}/cancelBatches
/v1/batches/v1/batches/v1/batches/{batch_id}/v1/batches/{batch_id}/v1/batches/{batch_id}/documents/v1/batches/{batch_id}/documents/v1/batches/{batch_id}/close/v1/batches/{batch_id}/cancel/v1/batches/{batch_id}/report/v1/batches/{batch_id}/exports/{format}Webhooks
/v1/webhook-endpoints/v1/webhook-endpoints/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/v1/webhook-endpoints/{endpoint_id}/rotate-secret/v1/webhook-endpoints/{endpoint_id}/test/v1/webhook-deliveries/v1/webhook-deliveries/{delivery_id}/v1/webhook-deliveries/{delivery_id}/retryReference
/v1/document-types/v1/document-types/{type}/schema/v1/usage/v1/limits/v1/deletion-receipt-keys