Coinbase Server Wallet icon

Coinbase Server Wallet

Interact with Coinbase Server Wallet API v2 (EVM & Solana)

Actions61

Policy Engine → Create Policy

AI-generated

Summary

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.

Discussion