cURL
curl --request POST \ --url https://control-plane.kubiya.ai/api/v1/policies/check-authorization/{entity_type}/{entity_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "action": "<string>", "resource": "<string>", "context": {} } '
{ "authorized": true, "violations": [ "<string>" ], "policies_evaluated": 123 }
Check if an entity is authorized to perform an action.
This is a convenience endpoint for common authorization checks. It evaluates all policies and returns a simple authorized/denied response.
agent
team
environment
Request model for authorization check
Action to check
Resource identifier
Additional context
Successful Response
Response model for authorization check
Was this page helpful?