GET
/
v1
/
policies
/
{policy_id}
/
rules
/
{rule_id}
Get Policy Rule
curl --request GET \
  --url https://api.privy.io/v1/policies/{policy_id}/rules/{rule_id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "id": "rule_123",
  "name": "Allowlist USDC contract on Base",
  "method": "eth_sendTransaction",
  "conditions": [
    {
      "field_source": "ethereum_transaction",
      "field": "to",
      "operator": "eq",
      "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    }
  ],
  "action": "ALLOW"
}

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Path Parameters

policy_id
string
required
Required string length: 24
rule_id
string
required
Required string length: 24

Response

200 - application/json

Requested policy rule object.

A rule that defines the conditions and action to take if the conditions are true. The rules that apply to each method the policy covers.