curl --request POST \
--url https://equatetravel.ai/api/v1/agents/{slug}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "INVOICE\nSupplier: Oceania Cruises\nRef: OC-44821\nTotal: GBP 4,250.00",
"reference": "order-9921"
}
'{
"data": {
"runId": "6f0f6c0e-7d5e-4a35-9a55-2f1f6c1f0a11",
"agent": "cruise-invoices",
"version": 4,
"result": {
"reference": "order-9921",
"document": {
"type": "invoice",
"isInvoice": true
},
"outcome": "AUTO_MATCHED",
"actions": [
{
"actionId": "0b6a4f6e-2f0b-4c1e-9a0c-6b9d2a7f3c21",
"name": "Post to finance",
"type": "WEBHOOK",
"status": "QUEUED"
}
],
"data": {
"supplier": "Oceania Cruises",
"reference": "OC-44821",
"totalCost": "4250.00"
},
"match": {
"matched": true,
"decision": "auto",
"confidence": 0.97,
"bookingReference": "OC-44821",
"bookingId": "BK-10293",
"reason": "Reference, supplier and total agree",
"fields": []
}
}
}
}Agents
Run an agent
Invoke a published agent against a single document.
POST
/
api
/
v1
/
agents
/
{slug}
/
run
curl --request POST \
--url https://equatetravel.ai/api/v1/agents/{slug}/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "INVOICE\nSupplier: Oceania Cruises\nRef: OC-44821\nTotal: GBP 4,250.00",
"reference": "order-9921"
}
'{
"data": {
"runId": "6f0f6c0e-7d5e-4a35-9a55-2f1f6c1f0a11",
"agent": "cruise-invoices",
"version": 4,
"result": {
"reference": "order-9921",
"document": {
"type": "invoice",
"isInvoice": true
},
"outcome": "AUTO_MATCHED",
"actions": [
{
"actionId": "0b6a4f6e-2f0b-4c1e-9a0c-6b9d2a7f3c21",
"name": "Post to finance",
"type": "WEBHOOK",
"status": "QUEUED"
}
],
"data": {
"supplier": "Oceania Cruises",
"reference": "OC-44821",
"totalCost": "4250.00"
},
"match": {
"matched": true,
"decision": "auto",
"confidence": 0.97,
"bookingReference": "OC-44821",
"bookingId": "BK-10293",
"reason": "Reference, supplier and total agree",
"fields": []
}
}
}
}Authorizations
Path Parameters
Body
application/json
- Option 1
- Option 2
- Option 3
A single agent invocation. Supply the document via exactly one of content, fileBase64 or fileUrl.
Which built-in model preset reads the document: smart favours accuracy, fast favours latency. An agent stores no tier of its own, so omitting this means smart. It only applies while no extraction models have been set up for the platform; once they have, they always run and this is ignored.
Available options:
smart, fast Was this page helpful?