v2

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-01-12412664.0 KB
Policies

Create Policy

Create a new access control policy.

post/policies/{policy_id}

Request body

namestring required
agent_idstring required
effect'allow' | 'deny'
actionsstring[] required
resourcesstring[] required
updated_atstring date-time

Response

Policy created

idstring uuid
agent_idstring
effect'allow' | 'deny'
actionsstring[]
resourcesstring[]
conditionsobject

Optional conditions for policy evaluation

created_atstring date-time

Example response

{
  "agent_id": "agent-ebd9cd4a-1234",
  "effect": "allow",
  "actions": [
    "read",
    "write"
  ],
  "resources": [
    "openai-api",
    "secrets:prod/*"
  ]
}