Authentication
Every call to the public API is authenticated with an API key sent as a Bearer token:
Authorization: Bearer deskew_live_sk_7Qm2kd9sLp3xVb81nR4tWq6yZc0eHu5aX-Api-Key: <key> is accepted as an alternative header. Keys belong to a project; everything a key does (jobs, usage, logs, webhooks) is scoped to that project.
Requests without a key get 401 missing_api_key; a key that does not match any project gets 401 invalid_api_key.
Test and live keys
Section titled “Test and live keys”| Test key | Live key | |
|---|---|---|
| Prefix | deskew_test_sk_ |
deskew_live_sk_ |
| Billing | Never billed | Counts against the plan’s included pages, then overage |
| Daily cap | 50 pages per key per day (429 test_daily_cap) |
None beyond plan quotas and the spend cap |
| Data | Separate: test jobs, usage, webhooks and logs are only visible in the dashboard’s Test mode | Shown in Live mode |
| Results | Identical shape; usage.mode is "test" |
Test keys use the same engines and the same code path as live keys, so what you see in test is what you get in production. Webhook endpoints are also per mode: an endpoint created while the dashboard is in Test mode only receives test jobs.
Scopes
Section titled “Scopes”Each key carries a list of scopes. The default set for new keys is extract:write, jobs:read and webhooks; you can narrow or widen it when creating a key.
| Scope | Grants |
|---|---|
extract:write |
POST /v1/extract, POST /v1/schemas, and DELETE /v1/jobs/:id if the key lacks jobs:write |
jobs:read |
GET /v1/jobs, GET /v1/jobs/:id, GET /v1/jobs/:id/result |
jobs:write |
DELETE /v1/jobs/:id (cancel) |
webhooks |
Reserved for webhook endpoint management from the API; today endpoints are managed in the dashboard |
usage:read |
Reserved for GET /v1/usage; the endpoint currently accepts any valid key |
* |
Everything |
A key that lacks a required scope gets 403 insufficient_scope.
Rolling a key
Section titled “Rolling a key”Rolling creates a new key with the same name, scopes and IP allowlist, and keeps the old one working for 24 hours so you can deploy the replacement without downtime. After the overlap the old key returns 401 key_expired. Roll from the key’s row menu under API keys.
Revoking is immediate: the key returns 401 key_revoked on its next request.
Keys can also be created with an expiry (1 to 3,650 days). An expired key returns 401 key_expired.
IP allowlists
Section titled “IP allowlists”Restrict a key to a list of IPv4/IPv6 addresses or CIDR ranges (up to 50 entries). Requests from any other address get 403 ip_not_allowed. Deskew reads the client address from X-Forwarded-For when present, so allowlists work behind the usual load balancers. An empty allowlist means no restriction.
Keep keys server-side
Section titled “Keep keys server-side”Keys are secrets. Never ship one in a browser, a mobile app or a public repository. Call Deskew from your backend and pass results on to clients. If a key leaks, revoke it in the dashboard; every request made with a key is listed under Request logs so you can see what it was used for.
Email verification
Section titled “Email verification”Keys are created in the dashboard by organization owners and admins (members get 403 insufficient_role). The dashboard itself requires a verified email address; unverified accounts get 403 email_not_verified. API keys that already exist keep working regardless.