AgentConnect
Sessions

List a webchat conversation’s approval requests

Proxies the owning daemon’s bounded, secret-masked approval requests of one webchat conversation and of the tasks it started, pending ones first. Callers who can edit the agent may read them, and so may the conversation’s owner while the agent lets people in chat approve tool calls (chatActions approve or settings); at any level the owner reads the join confirmations (kind: join) that ask them. The conversation must be one the caller may view. Answers 409 DAEMON_FEATURE_MISSING when the agent’s daemon cannot narrow its requests to one conversation. Nothing is stored by this call.

GET
/v1/orgs/{orgId}/sessions/{sessionId}/permission-requests

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
sessionId*string
长度1 <= length <= 512

响应主体

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/orgs/string/sessions/string/permission-requests"
{  "requests": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",      "sessionId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "requesterId": "string",      "requesterName": "string",      "command": "string",      "status": "pending",      "resolvedAt": "2019-08-24T14:15:22Z",      "resolvedBy": "string",      "resolvedByName": "string",      "options": [        {          "optionId": "string",          "name": "string",          "kind": "allow_once"        }      ],      "parentSessionId": "string",      "kind": "join"    }  ]}