Skip to main content
The public equate API lets you call a published agent from your own systems, and push invoices into your workspace’s pipelines. An agent reads a document, says what it is, matches it to a booking under your business rules, answers in the same request and then sets off your actions. It is a small, focused surface: run an agent over a single document or a batch of up to 100, or push a document in for pipeline processing.
The dashboard is backed by a larger set of internal, session-authenticated endpoints (jobs, sources, suppliers, pipelines, …). Those are not part of the public API and are documented as workflows under Guides, not here.

Base URL

If your workspace uses a custom domain, swap it in. All public endpoints live under /api/v1/.

Authentication

Every request needs a workspace API key in the Authorization header:
See Authentication for creating, scoping and rotating keys.

Conventions

  • JSON only. Send Content-Type: application/json; responses are JSON.
  • Success envelope. Successful responses wrap the payload in a top-level data object.
  • Error envelope. Failures return { "error": { "code", "message", "details?" } }. See Errors.
  • Workspace-scoped. A key resolves to exactly one workspace; agents are addressed by their slug within that workspace.
  • Correlation. Pass a reference on any request (or batch item) and it’s echoed back unchanged in the result.
  • A run that finds no booking is still a success. An agent call answers 200 whenever the document could be read. Read result.outcome for how it ended. See outcomes.

Endpoints

Run an agent

POST /api/v1/agents/{slug}/run. One document in, the result out.

Run a batch

POST /api/v1/agents/{slug}/batch. Up to 100 documents, each processed on its own.

Push an invoice

POST /api/v1/invoices. Sends a document into your pipelines and returns the job id.

Get an invoice's documents

GET /api/v1/invoices/{id}/documents. Every document of an invoice, with fresh links. Add /{documentId} for one document.
Not sure whether to call an agent or push into a pipeline? See agent mode vs workflow mode.

Supplying the document

Both agent endpoints accept the document three ways. Provide exactly one per item: Optional on every request: reference (your id) and fileName. A PDF with a text layer is read from its text, with the supplier also identified from its logos. A scanned PDF is sent to the model as the file. A password-protected PDF is refused with a 400.
modelTier (smart or fast) chooses between equate’s built-in model presets. An agent stores no tier of its own, so leaving it out means smart. It only applies while no extraction models have been set up for the platform. Once they have, they always run and modelTier is ignored.

What comes back

The result of every run carries: See building agents for what each outcome means and which actions it sets off.
fileUrl must resolve to the file itself, without sign-in. Cloud-storage share links usually open an interactive viewer instead. equate converts well-known ones (SharePoint/OneDrive, Google Drive, Dropbox) to their direct-download form automatically, but links restricted to specific people or an organisation still require sign-in and will be rejected with a 403 explanation. When in doubt, send fileBase64: encode the raw file bytes as standard base64 (a data: URI prefix is tolerated; URL-encoding is not).