curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/policies/check-authorization/{entity_type}/{entity_id} \
--header 'Authorization: Bearer <token>' \
--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.
curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/policies/check-authorization/{entity_type}/{entity_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"resource": "<string>",
"context": {}
}
'{
"authorized": true,
"violations": [
"<string>"
],
"policies_evaluated": 123
}Enter your Kubiya API token (format: Bearer
agent, team, environment Was this page helpful?