Back to website Open portal

Available

API reference

Public Docparser endpoints for asynchronous document submission and persisted job retrieval.

Updated 2026-07-28

The public API base URL is https://app.docparser.dev/api/v1. Requests and responses use JSON over HTTPS.

Endpoints

MethodPathPurpose
POST/documentsValidate a single or multi-image request; persist a job; enqueue extraction; and return 202 Accepted.
GET/documents/:consumerRefIdReturn the first persisted job row matching the authenticated organization and supplied consumer reference.
POST/email-classifyClassify an email’s subject, body, and every attachment into finance document types; nothing is extracted.
GET/email-classify/:consumerRefIdReturn the persisted email classification job.
POST/comparison/compareMatch invoice line items against purchase order or GRN line items asynchronously.
GET/comparison/:consumerRefIdReturn the persisted line-item comparison job.

Every endpoint requires the x-client-id and x-client-secret headers described in Authentication.

Asynchronous lifecycle

Submission returns a jobId and echoes consumerRefId; it does not wait for extraction. A job can move through initiated, extracting, classifying_email_content, extracting_from_attachments, processed, error. Receive the completed extraction at the API key’s registered webhook base URL plus the request’s relative webhookUrl, or poll the retrieval endpoint.

Document types

The submit endpoint accepts these live type IDs for single and multi-image jobs: 0 (Invoice), 1 (Purchase Order), 2 (GRN), 3 (Debit Note), 4 (Credit Card Statement), 5 (Credit Card Statement (multi-account)), 9 (PO number only), 10 (AWB number only), and 11 (Payment Advice). Email attachments are no longer accepted by the submit endpoint; use /email-classify to find out what each attachment is, then submit it with the reported type.

Naming conventions

Request bodies and the persisted row returned by GET use camelCase. Webhook payload identifiers use snake_case, such as consumer_ref_id and document_id. The submit reference shows the boundary explicitly.