Lists the automation's batch runs — one agent run over a group of items each.
At a stage that processes in batches, the sweep gathers items into groups and hands each closing group to one run. Each entry is one such run: the group it took, how many members, where it stands, and — once it reported back — what it cost and how long it took. Newest first.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The trigger identifier.
uuidThe tenant identifier
Query Parameters
The maximum number of items to return per page
int32int32Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.
Only this stage's runs.
Only runs still in flight.
falseResponse Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger/batchRuns"{
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"stageId": "string",
"groupValue": "string",
"memberCount": 0,
"status": "OPEN",
"taskQueueId": 0,
"executionRecordId": "00000000-0000-0000-0000-000000000000",
"cost": 0,
"durationMs": 0,
"detail": "string",
"createdAt": 0,
"resolvedAt": 0
}
],
"nextPageToken": "string",
"totalCount": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Sends the person a new link to a batch question's form.
For a question that went out as a form, when the person lost the link or the page says it expired. A new link goes out with the question as first sent, from the same agent the question came from. The old link stops working, and anything saved on the form is kept. Takes no body. The response's `outcome` says what happened. SENT: the new link went out. FAILED: the new link was made but the message didn't go out (`detail` has what the channel said), and the old link no longer works. TOO_SOON: the question changed less than 5 minutes ago, so nothing was sent; `retryAfter` is when it can be. NOT_OPEN: the question is answered, closed or expired, or never went out as a link, so there is no link to send. Returns 404 when the automation has no batch with this id.
Calls off a batch run that is still in flight.
The run's items go back to READY at their stage with the attempt refunded, and gather again with the next pass; the run stops before its next tool call at the latest, and whatever it reports afterwards is applied to nothing. Cancelling a run is not excluding its items — pause the automation, or exclude them, for that. Returns 409 when the run has already ended.