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.
3. Run the agent
Send a document one of three ways: inlinecontent, a fileUrl or a base64 fileBase64.
4. Read the response
A successful run returns the recordedrunId, the agent slug and version, and the
result. document, outcome and actions are always there. data and match follow
your output settings:
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 ownreference, 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.