FruxonDocs
AgentsExecution Records

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.

GET
/v1/tenants/{tenant}/agents/{agent}/heldRuns
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque 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
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}