Overview
Policies provide fine-grained access control rules that are evaluated during authorization. Each policy has an effect (allow or deny), a priority, and optional filters for agent, principal, scopes, and time-of-day restrictions.
Access the policies client via client.policies.
Create
Create a new authorization policy:
CreatePolicyParams
List
List all policies for your developer account:
ListPoliciesResponse
Get
Retrieve a single policy by its ID:
Update
Update an existing policy. Only fields you provide will be modified:
UpdatePolicyParams
Delete
Delete a policy by its ID:
Policy Type
The Policy frozen dataclass has the following fields:
Example: Common Policy Patterns
Deny After Hours
Allow Specific Scopes for an Agent
Deny a Specific User
Last modified on February 28, 2026