/v1/authorize is called, Veto evaluates all enabled policies for the agent in priority order and returns the first matching decision.
The policy object
POST /v1/policies
Create a new policy.Requires an API key with
admin scope.Array of policy rules. Minimum 1, maximum 50. See the policy object above for the
PolicyRule schema.Evaluation order relative to other policies for this agent. Higher values are evaluated first. Must be an integer between 0 and 1,000.
201.
GET /v1/policies
List policies in your workspace. Returns a paginated envelope with an array of policy objects.GET /v1/policies/:id
Retrieve a single policy by UUID. Returns the policy object, or404 with POLICY_NOT_FOUND if it does not exist in your workspace.
PATCH /v1/policies/:id
Update an existing policy. All fields are optional.Requires an API key with
admin scope.Replacement rule set. When provided, replaces the entire
rules array. Minimum 1, maximum 50.DELETE /v1/policies/:id
Permanently delete a policy.Requires an API key with
admin scope.204 No Content on success.