v46

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-211591,0051.4 MB
Intents

Create policy rule delete intent

Create an intent to delete a rule from a policy. The intent must be authorized by the policy owner before it can be executed.

delete/v1/intents/policies/{policy_id}/rules/{rule_id}

Path parameters

policy_idstring required

ID of the policy.

rule_idstring required

ID of the rule.

Headers

privy-app-idstring required

ID of your Privy app.

privy-request-expirystring

Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.

Response

Created rule delete intent.

created_atnumber required

Unix timestamp when the intent was created

created_by_display_namestring required

Display name of the user who created the intent

created_by_idstring

ID of the user who created the intent. If undefined, the intent was created using the app secret

custom_expiryboolean required

Whether this intent has a custom expiry time set by the client. If false, the intent expires after a default duration.

dismissal_reasonstring

Human-readable reason for dismissal, present when status is 'dismissed'

dismissed_atnumber

Unix timestamp when the intent was dismissed, present when status is 'dismissed'

expires_atnumber required

Unix timestamp when the intent expires

intent_idstring required

Unique ID for the intent

rejected_atnumber

Unix timestamp when the intent was rejected, present when status is 'rejected'

resource_idstring required

ID of the resource being modified (wallet_id, policy_id, etc)

status'pending' | 'processing' | 'executed' | 'failed' | 'expired' | 'rejected' | 'dismissed' required

Current status of an intent.

intent_type'RULE' required

Example response

{
  "action_result": {
    "prior_state": {
      "action": "ALLOW",
      "conditions": [
        {
          "field": "to",
          "field_source": "ethereum_transaction",
          "operator": "eq",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ],
      "id": "rule_123",
      "method": "eth_sendTransaction",
      "name": "Allowlist USDC contract on Base"
    }
  },
  "current_resource_data": {
    "action": "ALLOW",
    "conditions": [
      {
        "field": "to",
        "field_source": "ethereum_transaction",
        "operator": "eq",
        "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      }
    ],
    "id": "rule_123",
    "method": "eth_sendTransaction",
    "name": "Allowlist USDC contract on Base"
  },
  "policy": {
    "chain_type": "ethereum",
    "created_at": 1741833088894,
    "id": "tb54eps4z44ed0jepousxi4n",
    "name": "Allowlisted stablecoins",
    "owner_id": null,
    "rules": [
      {
        "action": "ALLOW",
        "conditions": [
          {
            "field": "to",
            "field_source": "ethereum_transaction",
            "operator": "eq",
            "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
          }
        ],
        "id": "bdyfoa65pro1eez6iwtzanol",
        "method": "eth_sendTransaction",
        "name": "Allowlist USDC contract on Base"
      }
    ],
    "version": "1.0"
  }
}