API
Authenticate with Authorization: Bearer sk_test_… (or sk_live_ in production). Tokens are created in the dashboard.
Submit a PDF
POST /v1/documents Content-Type: multipart/form-data file: (PDF) ocr: auto | force | never profile: native | hybrid | external
Response 202:
{ "id": "uuid", "status": "pending" }
402 if the account has no page credits.
Poll status
GET /v1/documents/:id
Statuses: pending, processing, succeeded, failed.
Fetch JSON
GET /v1/documents/:id/result
The document model from pdf_parser.extract() (elements, bbox, text, markdown).