FruxonDocs
AgentsApprovals

Lists approval requests across the agents of the caller's Applications, newest first

Read-only companion to the agent-scoped `GET .../agents/{agent}/pendingApprovals`. Each item carries its `agentId`, so inbox rows can route their respond/cancel actions to the agent-scoped endpoints (which enforce per-agent Admin access). Naming an Application — or an `agentId` in an Application — the caller cannot open is a 403. The `networkId` filter mirrors the one the escalation queue and access-request list already take, so the Inbox can scope all three of its folders server-side instead of post-filtering a tenant-wide page (which silently under-fills the page it is filtering).

GET
/v1/tenants/{tenant}/pendingApprovals
AuthorizationBearer <token>

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

In: header

Path Parameters

tenant*string

The tenant identifier

Query Parameters

status?string

Filter by lifecycle state. Defaults to Fruxon.Model.HumanApprovalRequests.HumanApprovalStatus.Pending.

Value in"UNSPECIFIED" | "PENDING" | "RESPONDED" | "CANCELLED" | "EXPIRED"
networkId?string

Optional Application filter. Asserted against the caller's access.

Formatuuid
agentId?string

Optional filter to a single agent. Asserted against its owning Application.

PageSize?integer

The maximum number of items to return per page

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

Opaque cursor token from an external system (e.g. RAG API). When set, M:Fruxon.Common.Collections.PageToken.AsString returns this value directly instead of encoding Fruxon.Common.Collections.PageToken.Skip.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/pendingApprovals"
{
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "agentId": "string",
      "agentRevision": 0,
      "flow": "string",
      "sessionId": "string",
      "taskQueueId": 0,
      "executionRecordId": "00000000-0000-0000-0000-000000000000",
      "gateType": "TOOL_FLOW_STEP",
      "stepIdentifier": "string",
      "toolCallId": "string",
      "toolKey": "string",
      "outboundMessage": "string",
      "proposedParameters": {},
      "authorizedApprovers": [
        "string"
      ],
      "deliveryRoute": {
        "id": "00000000-0000-0000-0000-000000000000",
        "connectorId": "00000000-0000-0000-0000-000000000000",
        "provider": "string",
        "integrationConfigId": null,
        "environmentSlug": "string",
        "parameters": null
      },
      "deliveryMessageId": "string",
      "correlationToken": "string",
      "status": "PENDING",
      "expiresAt": 0,
      "respondedAt": 0,
      "respondedBy": "string",
      "decision": "APPROVE",
      "responseText": "string",
      "createdAt": 0,
      "modifiedAt": 0
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
{
  "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
}