Skip to main content
This guide is for developers calling equate from their own systems. You’ll create an agent, publish it, generate an API key, and make your first call.
New to equate? Start with the quickstart instead. It gets invoices matching from the dashboard without writing any code.
The agent API is available on plans that include the Agent Builder. If your workspace doesn’t have it yet, see plans & billing.

1. Build and publish an agent

An agent is a pipeline’s reading and matching, published as a version and called by its slug. See building agents for every setting.
1

Create the agent

In the dashboard, go to Agents and choose New agent. Give it a name (the slug is made from it, so Cruise Invoices becomes cruise-invoices). Connect booking data sources if it should match, or leave them empty to only read. The matching settings start as a pipeline’s do: your sector rules and each supplier’s own rules apply.
2

Test it in the playground

Paste an invoice or upload a file and run it. Adjust the output settings: which extracted fields come back, whether the match comes back, and any fixed fields. The playground never runs actions.
3

Publish

Hit Publish. Only a published version answers API calls; each publish bumps the version number that comes back in responses.

2. Create an API key

In Organisation → Keys & secrets, create a key (workspace admins only). The full secret (ip_live_…) is shown once. Copy it somewhere safe. equate only stores its hash.
Treat the key like a password. Anyone with it can run your agents and consume quota. Revoke and rotate keys from the same screen if one leaks.

3. Run the agent

Send a document one of three ways: inline content, a fileUrl or a base64 fileBase64.

4. Read the response

A successful run returns the recorded runId, the agent slug and version, and the result. document, outcome and actions are always there. data and match follow your output settings:
Branch on outcome. AUTO_MATCHED needs nobody. NEEDS_REVIEW found a likely booking that someone should check. NO_MATCH found none. A run that didn’t try to match answers EXTRACTED, OUT_OF_SCOPE or NOT_HANDLED. All of them are a 200. See outcomes. If the agent has actions, actions lists the ones this outcome set off. They are queued and run after the response, so they never slow the call.

5. Process many at once

For more than one document, use the batch endpoint. It takes up to 100 items per call, each with its own reference, and each is a run of its own with its own outcome:

Next: the full API reference

Authentication, errors, rate limits and the complete request and response schemas.