One run of the automation, with its items and the stages each went through.
The run's figures are its row of `GET .../ledger/runs`, computed the same way. Its items come in the order the admission let them in, each with its trail: every stage it reached, how many attempts it took there, the latest agent run that worked it, what that cost, and the batch it shared with other items — and with how many runs — when it was handled in one. `run` is a run's `id`, or `earlier` for the run of items admitted before runs were recorded (the list returns that run with no id). A run is known only through its items, so one with no items in this automation's ledger is a 404. The items are protected as the item list is: a reader under a mask gets them with their personal data masked, in item-id order, and one under a withholding policy gets the run's figures with `items` null.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The trigger identifier.
uuidThe run's id, or earlier.
The 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.
The requested content view.
"AUTOMATIC""UNSPECIFIED" | "SAFE" | "MASKED" | "ORIGINAL" | "AUTOMATIC"Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger/runs/string"{
"run": {
"id": "00000000-0000-0000-0000-000000000000",
"startedAt": 0,
"source": "SCHEDULE",
"startedBy": "string",
"admitted": 0,
"running": 0,
"waiting": 0,
"done": 0,
"setAside": 0,
"dead": 0,
"live": false,
"settledAt": 0,
"cost": 0,
"runs": 0,
"byStage": [
{
"stageId": "string",
"status": "UNSPECIFIED",
"count": 0
}
]
},
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"itemKey": "string",
"label": "string",
"status": "READY",
"stageId": "string",
"admittedAt": 0,
"terminalAt": 0,
"cost": 0,
"runs": 0,
"stages": []
}
],
"nextPageToken": "string",
"totalCount": 0,
"metadata": {
"contentVisibility": "SAFE",
"redactedFields": [
"string"
],
"canReadOriginal": false,
"policyVersions": null,
"profile": "string"
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Returns every stuck or excluded work item in a selection to the queue.
The dead-letter queue's select-all. The selection is explicit ids or a filter (stage, status, ignore reason, admission window); it is resolved to a concrete set and that set's size must equal `confirmCount`, otherwise the call is refused with 409 and the real count — so a filter is only ever acted on as the items the operator saw. DEAD and FAILED items always qualify; an item a pass claimed in between is left alone and reported in the affected count. IGNORED items qualify only when the selection asks for them — `ignoreReason`, `status: IGNORED`, or explicit ids — so a re-drive filtered by stage alone still means the stuck items there. `status: IGNORED` on its own is refused with 400 and the count it would have moved: re-driving exclusions costs an agent run each, so the call has to name the reason that was revised or the ids. A named `ignoreReason` is matched whole against the reason as recorded, and is refused with 400 when the stage declares a set of reasons, this is not one of them, and no item on the ledger carries it either. When the selection is explicit ids, `skipped` names every id that was not acted on and why: it is not a work item at all, it belongs to another automation, or it was in a status this verb may not touch — carrying that status.
Fetches a single audit revision.
Returns the immutable snapshot stored at the given `revision`. Used by the trigger history pane to drive the diff view and the "Restore from this revision" affordance. Revision rows are append-only, so the response shape is stable for the lifetime of the trigger.