Skip to main content
GET
/
agents
/
{agentId}
/
connections
List agent's app-connection assignments
curl --request GET \
  --url https://api.onecli.sh/v1/agents/{agentId}/connections \
  --header 'Authorization: Bearer <token>'
[
  {
    "appConnectionId": "<string>",
    "sessionPolicy": {}
  }
]

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

agentId
string
required

Response

App-connection assignments

appConnectionId
string
sessionPolicy
object | null

Provider-specific granular-access policy, or null for unrestricted access.