Lists an agent's held runs, oldest first.
Each row names the limit that refused the run, where it came from (a trigger or a channel message), when it was held and when the hold lapses, and whether a release was already asked for. Runs that share a release key are the same piece of work, such as one pull request or one conversation; releasing with newestPerKey runs only the newest of them. Use a row's taskId to release or discard that run alone.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The unique identifier of the agent.
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.
Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/heldRuns"{
"items": [
{
"taskId": 0,
"agentId": "string",
"reason": "BUDGET_EXCEEDED",
"detail": "string",
"source": "TRIGGER",
"triggerId": "00000000-0000-0000-0000-000000000000",
"triggerFireAttemptId": "00000000-0000-0000-0000-000000000000",
"environmentSlug": "string",
"heldAt": 0,
"expiresAt": 0,
"releaseRequestedAt": 0,
"releaseKey": "string"
}
],
"nextPageToken": "string",
"totalCount": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Gets the whole spawn tree this execution belongs to, in one request.
Returns every run descending from this execution's root — the run itself, whatever spawned it, and every sub-task or consult anywhere beneath — in pre-order with a depth on each node, plus rollups (run count, failures, combined cost, wall-clock span) computed across the tree. This is the whole-session view that `/children` can only serve one level at a time. Because the tree is resolved from the shared root rather than walked link by link, it is neither depth-capped nor truncated, and it does not lose the branches that belong to another agent — a consult child runs under the *consulted* agent, so a level-by-level walk from here cannot see it. Each node carries its own `agentId` for navigation. A run with no lineage returns a single-node tree, not an error.
Discards an agent's held runs
Name every held run with all, or some with taskIds from the held-runs list. A discarded run cannot be released again. The answer carries how many runs were discarded.