dOCR
API Reference

API Reference

The dOCR REST API — base URL, authentication, errors, and endpoints.

The dOCR REST API lets you extract structured data and manage resources programmatically. Reference pages below are generated from our OpenAPI specification.

Base URL

https://app.docr.dev/api/v1

Authentication

All endpoints require an API key as a Bearer token. See Authentication.

Authorization: Bearer docr_sk_xxxxxxxxxxxxxxxxxxxxxxxx

Errors

dOCR uses conventional HTTP status codes. Error responses share a simple shape:

{ "error": "A human-readable message" }
StatusMeaning
400Malformed request (e.g. missing file or wrong content type).
401Missing or invalid API key (or, for signed renders, an invalid signature).
402Monthly credit allowance exhausted. Upgrade your plan.
403Request IP is not whitelisted.
404Resource not found.
422Input failed validation (unsupported type, too large, too many pages, or invalid options).

Endpoints

OpenAPI spec

The machine-readable spec is available at /openapi.yaml for generating clients and importing into tools like Postman or Insomnia.

On this page