Skip to main content
GET
/
rules
/
permissions
/
{provider}
Get app permissions (project)
curl --request GET \
  --url https://api.onecli.sh/v1/rules/permissions/{provider} \
  --header 'Authorization: Bearer <token>'
{
  "defaults": {},
  "byAgent": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

provider
string
required

App provider identifier (e.g., gmail, github, jira)

Response

200 - application/json

Layered permission states

Layered app-permission states for a provider.

defaults
object

Tool states from the all-agents layer (tool ID → state).

byAgent
object

Per-agent override layers (agent ID → tool ID → state). Always empty at the organization scope, where rules are agent-less.