Lists recent source events for a saved trigger.
Reads the persisted trigger's integration, config, event type, and filter, then returns the same response shape as the draft-mode preview. Powers per-row Dry-run and Fire-once, where the frontend hands the per-sample payload to the existing `:preview` and `:fire` endpoints.
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
Max samples to return (default 20, max 50).
int32Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/recentEvents"{
"samples": [
{
"upstreamId": "string",
"occurredAtMs": 0,
"label": "string",
"payload": {
"source": "UNSPECIFIED",
"eventType": "string",
"body": {}
},
"wouldFire": false
}
]
}{
"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
}Renders a draft work shape's stage prose the way the runtime will.
Returns one entry per submitted stage: a PROCESS stage's instruction with every declared `{{name}}` expanded and the whole `user_query` its agent receives (the instruction plus the item payload the dispatcher appends), an ASK stage's fully composed question (framing, the numbered item list labelled through `labelPath`, and the reply trailer), and any reference that expands to nothing. Rendered with the automation's own items when `triggerId` names one that has any, and with stand-ins otherwise. Read-only: it composes strings. Nothing is saved, no batch is opened and no run is dispatched. The draft is deliberately not validated, because a shape mid-edit usually is not valid and that is exactly when the preview is worth having. See `docs/design/item-ledger.md §8.2`.
Replays a historical revision onto the live trigger.
Copies the snapshot's mutable fields back onto the trigger, replaces bindings to match, and writes a new `RESTORED` revision pointing at the source revision (audit chain stays linear). Returns the post-restore trigger shape. Immutable fields (`kind`, `integrationId`, `eventType`) must match the snapshot — restoring across a kind change is rejected with 400.