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
/api/v1/.
Authentication
Every request needs a workspace API key in theAuthorization header:
Conventions
- JSON only. Send
Content-Type: application/json; responses are JSON. - Success envelope. Successful responses wrap the payload in a top-level
dataobject. - Error envelope. Failures return
{ "error": { "code", "message", "details?" } }. See Errors. - Workspace-scoped. A key resolves to exactly one workspace; agents are addressed by
their
slugwithin that workspace. - Correlation. Pass a
referenceon 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
200whenever the document could be read. Readresult.outcomefor 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
Theresult 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).