Skip to main content
The Documents API is the core of RecordEngine’s integration layer. Use it to upload documents from external systems, retrieve structured extraction results, and update document statuses — all without touching the UI. All requests require a Bearer token in the Authorization header. See Authentication.

Upload a Document

Uploads a file to RecordEngine and queues it for AI processing. The document appears in the UI immediately with New status, then transitions to Processing and Needs Review automatically.

Request

Send as multipart/form-data:

Example

Response


List Documents

Returns a paginated list of documents. Supports filtering by status, contact, folder, and date range.

Query Parameters

Example

Response


Get a Single Document

Returns the full document record including all extracted fields, line items, confidence score, and CRM references.

Example

Response


Update Document Status

Changes the status of a document. Use this to move documents through the workflow programmatically — for example, automatically approving high-confidence documents from an external script.

Request Body

Valid status values: New, Processing, Needs Review, Missing Info, Ready, Approved, Export, Exception, Archived

Example

Response

Setting a document to Export status via the API triggers the outbound Document Webhook — the same as clicking Webhook Export in the UI. Make sure your webhook receiver is ready before doing this at scale.

Common Patterns

Poll for completed documents

Check for documents that have finished processing and are ready for review:

Auto-approve high confidence documents

The Rules Engine can do this automatically without any code — set a rule: confidence_score >= 90 → Set Status = Approved. See Rules Engine.

Error Reference