Skip to main content
POST
Create Policy
정책은 에이전트가 실행할 수 있는 트랜잭션을 제어합니다. 모든 트랜잭션은 MPC 서명 전에 에이전트의 정책에 대해 평가됩니다.

요청 본문

string
필수
이 정책을 연결할 에이전트입니다.
string
필수
정책 유형. 값: spending_limit, address_control, token_control, velocity_control, schedule, human_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.