APIAuth

Get permissions

Get the current user's effective permissions.

GET/auth/permissions

Get the current user's effective permissions.

Response Body

application/json

application/json

curl -X GET "https://example.com/auth/permissions"
{  "grants": [    {      "permission": "view_agents",      "scope": "all"    }  ],  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"}
{  "code": "bad_request",  "message": "string",  "validation_errors": [    {      "field": "string",      "message": "string",      "rule": "string"    }  ]}