Skip to main content
POST
Create Policy
ポリシーは、エージェントが実行できるトランザクションを制御します。すべてのトランザクションは、MPC 署名の前にエージェントのポリシーに対して評価されます。

リクエストボディ

string
必須
このポリシーを関連付けるエージェント。
string
必須
ポリシータイプ。値:spending_limitaddress_controltoken_controlvelocity_controlschedulehuman_approval
object
必須
ポリシールールオブジェクト。構造は type によって異なります。

承認

X-API-Key
string
header
必須

API key authentication. Keys are prefixed with awx_.

ボディ

application/json
agent_id
string
必須

Agent to attach this policy to.

type
enum<string>
必須

Policy type.

利用可能なオプション:
spending_limit,
address_control,
token_control,
velocity_control,
schedule,
human_approval
rules
object
必須

Policy rules object. Structure depends on the policy type.

レスポンス

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.

利用可能なオプション:
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.