Skip to main content
GET
/
agents
/
granular-access
List granular-access policies
curl --request GET \
  --url https://api.onecli.sh/v1/agents/granular-access \
  --header 'Authorization: Bearer <token>'
[
  {
    "agentId": "<string>",
    "agentName": "<string>",
    "connectionId": "<string>",
    "provider": "<string>",
    "connectionLabel": "<string>",
    "policy": {}
  }
]

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

Granular-access entries

agentId
string
agentName
string
connectionId
string
provider
string
connectionLabel
string | null
policy
object

Provider-specific session policy (e.g. allowed GitHub repositories or Dropbox folders).