Data handling and security
Authentication isolation, encryption, retention and response caching.
On this page
The extraction path uses Cloudflare Workers, Images and Workers AI. Uploaded photographs and generated crops are processed during the request and are not persisted by the application. Processing is not restricted to Mexico.
Credential scopes
| Credential | Scope |
|---|---|
X-API-Key | Extraction and retrieval of results owned by the authenticated API account. Stored as a hash. |
| Dashboard access code | Read-only usage access through a separate session. No extraction permission. |
| Webhook signing secret | HMAC verification of completion events. No extraction or retrieval permission. |
request_id | Request identifier; not an access credential. |
Result access is account-scoped. Redirects and arbitrary callback/status URLs are outside the authenticated API origin. The HTTP clients disable redirect following.
Storage and retention
Results use AES-256-GCM encryption before database storage. Authenticated additional data binds ciphertext to the owning API account and request.
| Data | Behavior |
|---|---|
| Photographs and crops | No application persistence. |
| Extracted result | Encrypted; available until expires_at, 23 hours after reservation. |
| Expired ciphertext | Cleared from the active table by the next successful hourly cleanup. |
| Job metadata | Retained for usage accounting and idempotency. |
| Operational metrics | Durations, outcomes and usage; active-table records older than seven days are removed by scheduled cleanup. |
Expiry is an access deadline. Recovery history and backups may retain earlier encrypted versions; scheduled cleanup is not immediate physical erasure. Copies retained by the integrating application have independent access and retention policies.
Logging and caching
| Surface | Current behavior |
|---|---|
| API responses | Cache-Control: no-store. |
| Public API errors | No raw provider diagnostics. |
| Application metrics | No image content, extracted text, API keys or client/job identifiers. |
| Integration diagnostics | request_id, HTTP status, error code and duration are sufficient for request correlation. |
The service does not configure retention or redaction in external proxies, tracing systems or application logs. Request bodies and full OCR responses contain personal data; credentials and identity fields remain outside the public telemetry contract.
Trust boundary
HTTP success indicates completed extraction. Format checks and checksums are local computations; they do not perform official INE lookups or establish authenticity, liveness or identity ownership. Successful readings currently return needs_review: true.
data and model observations are untrusted document-derived input. Nullable fields and check outcomes remain distinct from application-level acceptance decisions.