Actions61
- End User Accounts Actions
- EVM Accounts Actions
- EVM Smart Accounts Actions
- EVM Swaps Actions
- EVM Token Balances Actions
- Faucets Actions
- Onchain Data Actions
- Onramp Actions
- Payments Alpha Actions
- Policy Engine Actions
- Solana Accounts Actions
- Solana Token Balances Actions
- SQL API Alpha Actions
- X 402 Facilitator Actions
Policy Engine → Create Policy
AI-generatedSummary
Create a policy in the Coinbase Policy Engine based on specified rules.
Inputs
- X-Idempotency-Key — An optional UUID v4 request header for retrying requests safely.
- scope (required) — The scope of the policy, either 'project' or 'account'.
- description — An optional human-readable description of the policy, limited to 50 characters.
- rules (required) — A JSON array defining the rules for the policy, limited to 10 rules.
- requestOptions — Options for customizing the request, including batching, SSL settings, and timeout.
Output shape
a confirmation of policy creation (success/failure response)
The response may vary depending on the request's success or failure.
Examples
Example 1: Create a policy that accepts transactions over a certain value for a specific account.
Set scope to 'account', provide rules for transaction criteria, and an optional idempotency key.