Policies
Get Policy Rule
Changed onGet a rule by policy ID and rule ID.
get/v1/policies/{policy_id}/rules/{rule_id}
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/policies/{policy_id}/rules/{rule_id}
- AuthHTTP basic
Path parameters
policy_idstring required
rule_idstring required
Headers
privy-app-idstring required
ID of your Privy app.
Response
Requested policy rule object.
Example response
{
"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"
}Changes
- warning
added the new
earn_incentive_claimenum value to theresponse property for the response status
- warning
- warning
added the new
data_byte_lengthenum value to the///response property for the response status
- warning