API reference
Base URL: https://api.deskew.dev
All public endpoints live under /v1 and take an API key as Authorization: Bearer <key> (see Authentication). Request and response bodies are JSON, except POST /v1/extract which also accepts multipart/form-data for file uploads. Timestamps are ISO 8601 in UTC. Ids are prefixed ULIDs (job_…, sch_…, evt_…, req_…) and sort by creation time.
Endpoints
Section titled “Endpoints”| Method and path | Purpose | Scope |
|---|---|---|
POST /v1/extract |
Extract a document; 200 with the result or 202 with a job |
extract:write |
GET /v1/jobs |
List jobs | jobs:read |
GET /v1/jobs/{id} |
Get one job | jobs:read |
GET /v1/jobs/{id}/result |
Download a completed job’s result | jobs:read |
DELETE /v1/jobs/{id} |
Cancel a queued or processing job | jobs:write (or extract:write) |
GET /v1/usage |
Current billing-cycle usage | any |
GET /v1/schemas |
List stored extraction schemas | any |
POST /v1/schemas |
Store a schema version | extract:write |
Objects
Section titled “Objects”Result objectWhat a completed extraction contains: markdown, text, blocks, tables, fields, page_results, usage, warnings.
Job objectStatus, progress, eta, credits, engines and timestamps for any extraction.
Conventions
Section titled “Conventions”- Booleans in form fields accept
true/false,1/0,yes/no,on/off. - Errors always use
{"error": {"type", "code", "message", "doc_url"}}; see Errors. - Headers on every response:
X-Request-Id; on authenticated responses alsoX-RateLimit-LimitandX-RateLimit-Remaining;Retry-Afteron429;Idempotent-Replayed: trueon an idempotent replay. - Pagination on
GET /v1/jobsuseslimitandstarting_after=<id>; list responses are{"object": "list", "data": [...], "has_more": bool}. - Versioning: the path prefix
/v1is the API version. Additive changes (new fields, new optional parameters, new error codes) ship without a version bump and are recorded in the changelog.
OpenAPI
Section titled “OpenAPI”The backend publishes its own OpenAPI 3.1 document. The pages under Generated from OpenAPI in the sidebar are produced from it at build time, filtered to the /v1 paths. They are the mechanical view of the contract; the hand-written pages above add examples and behaviour. The dashboard’s private routes are summarised in Dashboard API (private).