Authentication
API-key authentication, account scope, and access errors.
On this page
| Property | Contract |
|---|---|
| Scheme | API key over HTTPS. |
| Header | X-API-Key. |
| Scope | One account and its jobs. |
| Required on | Extraction POST and result GET. |
| Storage | Hashed key at rest. |
X-API-Key: YOUR_SERVER_API_KEY
Accept: application/json
Access scope
The authenticated account owns each reserved job. GET with another account's valid key returns 404 not_found; a request_id is not an access token.
Monthly quota, active-job limits, and rolling-minute limits apply to the account across all integrations and API versions. Each transaction has an independent Idempotency-Key. Admission limits affect new jobs, not retrieval of existing unexpired results.
Authentication failures
Missing, malformed, invalid, and revoked keys return HTTP 401, before reservation:
{
"request_id": "00000000-0000-4000-8000-000000000001",
"error": {
"code": "invalid_api_key",
"message": "Invalid or revoked API key.",
"action": "check_api_key"
}
}
A revoked key cannot submit or retrieve jobs. Authentication failure consumes no reading unit. The public API does not expose key-management endpoints.
Dashboard credentials
The usage dashboard uses a separate revocable access code and an eight-hour session. Dashboard credentials have no OCR API scope; API keys have no dashboard session scope.