Skip to main content
POST

Authorizations

Authorization
string
header
required

An identity bearer token for a person or your backend. Capabilities are per member, per workspace. This credential can manage the workspace and can never authorize an action as an agent.

Path Parameters

workspace_slug
string
required

Body

application/json

The policy shape, without an agent binding. Used for previews.

agent_id
string<uuid>

Required on create.

status
enum<string>
default:active
Available options:
active,
disabled
mode
enum<string>
default:blocklist

blocklist permits unless a rule denies. allowlist inverts it: denied unless an allow rule matches, reported as not_allowlisted. Each allowlist policy is an independent gate, so attaching two means both must be satisfied. A deny still overrides an allow.

Available options:
blocklist,
allowlist
per_transaction_cap_cents
integer | null
velocity_window_seconds
integer | null
velocity_cap_cents
integer | null
approval_threshold_cents
integer | null
monthly_cap_cents
integer | null
counterparty_allowlist
string[]
imports
string[]

Policy module names. Their rules compile in ahead of rules.

rules
object[]

Response

The policy, with a stable id assigned to every rule.

data
object

The policy shape, without an agent binding. Used for previews.