Skip to main content
POST
Create Policy
Policies control what transactions an agent is allowed to execute. Every transaction is evaluated against the agent’s policies before MPC signing.

Request Body

string
required
Agent to attach this policy to.
string
required
Policy type. Values: spending_limit, address_control, token_control, velocity_control, schedule, human_approval.
object
required
Policy rules object. Structure depends on type.

Example

Authorizations

X-API-Key
string
header
required

API key authentication. Keys are prefixed with awx_.

Body

application/json
agent_id
string
required

Agent to attach this policy to.

type
enum<string>
required

Policy type.

Available options:
spending_limit,
address_control,
token_control,
velocity_control,
schedule,
human_approval
rules
object
required

Policy rules object. Structure depends on the policy type.

Response

Policy created successfully.

A policy that controls what transactions an agent is allowed to execute.

id
string

Unique policy identifier (e.g., pol_abc123).

agent_id
string

Agent this policy is attached to.

type
enum<string>

Policy type.

Available options:
spending_limit,
address_control,
token_control,
velocity_control,
schedule,
human_approval
rules
object

Policy rules object. Structure depends on the policy type.

created_at
string<date-time>

ISO 8601 creation timestamp.

updated_at
string<date-time>

ISO 8601 last-update timestamp.