Skip to content
API v1 · 1.0.0-draft.1
Go to console
Contents ↓

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

  1. Get an API key in the console. A sandbox key starting with er_test_ never calls a real engine and never stores the file.
  2. Send your file to Create a document (POST /v1/documents) as multipart/form-data.
  3. When the result is ready, a document.completed event 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.

Error codes · Webhook events

API reference

Documents

POSTCreate a document
/v1/documents
GETList documents
/v1/documents
GETGet a document
/v1/documents/{document_id}
DELETEDelete a document
/v1/documents/{document_id}
GETGet the result
/v1/documents/{document_id}/result
GETDocument history
/v1/documents/{document_id}/history
GETStream status events
/v1/documents/{document_id}/events
POSTReport a wrong value
/v1/documents/{document_id}/feedback
GETExport the result
/v1/documents/{document_id}/exports/{format}
POSTCancel a document
/v1/documents/{document_id}/cancel

Batches

POSTCreate a batch
/v1/batches
GETList batches
/v1/batches
GETGet a batch
/v1/batches/{batch_id}
DELETEDelete a batch
/v1/batches/{batch_id}
POSTAdd files to a batch
/v1/batches/{batch_id}/documents
GETList batch documents
/v1/batches/{batch_id}/documents
POSTClose a batch
/v1/batches/{batch_id}/close
POSTCancel a batch
/v1/batches/{batch_id}/cancel
GETBatch report
/v1/batches/{batch_id}/report
GETExport a batch
/v1/batches/{batch_id}/exports/{format}

Webhooks

GETList endpoints
/v1/webhook-endpoints
POSTCreate an endpoint
/v1/webhook-endpoints
GETGet an endpoint
/v1/webhook-endpoints/{endpoint_id}
PATCHUpdate an endpoint
/v1/webhook-endpoints/{endpoint_id}
DELETEDelete an endpoint
/v1/webhook-endpoints/{endpoint_id}
POSTRotate the secret
/v1/webhook-endpoints/{endpoint_id}/rotate-secret
POSTSend a test event
/v1/webhook-endpoints/{endpoint_id}/test
GETDelivery log
/v1/webhook-deliveries
GETGet a delivery
/v1/webhook-deliveries/{delivery_id}
POSTRetry a delivery
/v1/webhook-deliveries/{delivery_id}/retry

Reference

GETDocument types
/v1/document-types
GETType schema
/v1/document-types/{type}/schema
GETUsage
/v1/usage
GETLimits and balance
/v1/limits
GETDeletion receipt keys
/v1/deletion-receipt-keys
Last updated: 23 Nov 2026