Create Policy
Politiques
Créer une politique
Créez une nouvelle politique et associez-la à un agent.
POST
Create Policy
Les politiques contrôlent les transactions qu’un agent est autorisé à exécuter. Chaque transaction est évaluée par rapport aux politiques de l’agent avant la signature MPC.
Corps de la requête
Agent auquel associer cette politique.
Type de politique. Valeurs :
spending_limit, address_control, token_control, velocity_control, schedule, human_approval.Objet des règles de la politique. La structure dépend de
type.Exemple
Autorisations
API key authentication. Keys are prefixed with awx_.
Corps
application/json
Réponse
Policy created successfully.
A policy that controls what transactions an agent is allowed to execute.
Unique policy identifier (e.g., pol_abc123).
Agent this policy is attached to.
Policy type.
Options disponibles:
spending_limit, address_control, token_control, velocity_control, schedule, human_approval Policy rules object. Structure depends on the policy type.
ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.