Skip to content

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.

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
  • 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 also X-RateLimit-Limit and X-RateLimit-Remaining; Retry-After on 429; Idempotent-Replayed: true on an idempotent replay.
  • Pagination on GET /v1/jobs uses limit and starting_after=<id>; list responses are {"object": "list", "data": [...], "has_more": bool}.
  • Versioning: the path prefix /v1 is the API version. Additive changes (new fields, new optional parameters, new error codes) ship without a version bump and are recorded in the changelog.

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).