Skip to main content
POST
Preview a draft policy

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
agent_id
string<uuid>
required
action_type
string
required
Example:

"payment.create"

resource
string | null
cost_cents
integer
Example:

75000

metadata
object
session_budget_cents
integer
default:100000

The synthetic session budget to evaluate against.

policy
object

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

Response

The decision the draft would produce.

data
object
required