Endpoint
Authorization
Requires an API key withADMIN scope.
Request Body
The rule type that determines how this policy is evaluated. One of:
MAX_DEBIT_PER_SESSION, MAX_DEBIT_PER_HOUR, REQUIRE_HUMAN_APPROVAL_ABOVE, FORBIDDEN_ACCOUNT_PAIR, ALLOWED_TOKENS, ALLOWED_CHAINS. Each type requires a different subset of the fields below — see the table in Policy Rules.An optional string prefix used to scope this rule to a specific agent or group of agents. Only API keys whose identifier starts with this prefix will be subject to the rule. If omitted, the rule applies to all agents.
Required by
MAX_DEBIT_PER_SESSION, MAX_DEBIT_PER_HOUR, and REQUIRE_HUMAN_APPROVAL_ABOVE. Provide as a decimal string (for example, "5000.00").Request Example
The following example creates aMAX_DEBIT_PER_SESSION rule that limits any agent with the agent_payments_ key prefix to session debits no greater than 5000.00.
Response
The resolved parameters object constructed from the fields you supplied (for example,
amount, tokens, chains).