Skip to main content
PATCH
/
v1
/
apps
/
{app_id}
/
intents
/
wallets
/
{wallet_id}
Create wallet update intent
curl --request PATCH \
  --url https://api.privy.io/v1/apps/{app_id}/intents/wallets/{wallet_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'privy-app-id: <privy-app-id>' \
  --data '{
  "policy_ids": [
    "<string>"
  ],
  "owner": {
    "public_key": "<string>"
  },
  "owner_id": "<string>",
  "additional_signers": [
    {
      "signer_id": "<string>",
      "override_policy_ids": [
        "<string>"
      ]
    }
  ]
}'
{
  "intent_id": "<string>",
  "created_by_display_name": "<string>",
  "created_by_id": "<string>",
  "created_at": 123,
  "resource_id": "<string>",
  "authorization_details": [
    {
      "members": [
        {
          "type": "user",
          "user_id": "<string>",
          "display_name": "<string>",
          "has_signed": true
        }
      ],
      "threshold": 123,
      "display_name": "<string>"
    }
  ],
  "status": "pending",
  "expires_at": 123,
  "intent_type": "WALLET",
  "request_details": {
    "method": "PATCH",
    "url": "<string>",
    "body": {
      "policy_ids": [
        "<string>"
      ],
      "owner": {
        "public_key": "<string>"
      },
      "owner_id": "<string>",
      "additional_signers": [
        {
          "signer_id": "<string>",
          "override_policy_ids": [
            "<string>"
          ]
        }
      ]
    }
  },
  "current_resource_data": {
    "id": "id2tptkqrxd39qo9j423etij",
    "address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
    "chain_type": "ethereum",
    "policy_ids": [],
    "additional_signers": [],
    "owner_id": "rkiz0ivz254drv1xw982v3jq",
    "created_at": 1741834854578,
    "exported_at": null,
    "imported_at": null
  },
  "action_result": {
    "status_code": 123,
    "executed_at": 123,
    "authorized_by_display_name": "<string>",
    "authorized_by_id": "<string>",
    "response_body": {
      "id": "id2tptkqrxd39qo9j423etij",
      "address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
      "chain_type": "ethereum",
      "policy_ids": [],
      "additional_signers": [],
      "owner_id": "rkiz0ivz254drv1xw982v3jq",
      "created_at": 1741834854578,
      "exported_at": null,
      "imported_at": null
    },
    "prior_state": {
      "id": "id2tptkqrxd39qo9j423etij",
      "address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
      "chain_type": "ethereum",
      "policy_ids": [],
      "additional_signers": [],
      "owner_id": "rkiz0ivz254drv1xw982v3jq",
      "created_at": 1741834854578,
      "exported_at": null,
      "imported_at": null
    }
  }
}

Authorizations

Authorization
string
header
required

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

Headers

privy-app-id
string
required

ID of your Privy app.

Path Parameters

app_id
string
required

ID of the app.

wallet_id
string
required

ID of the wallet.

Body

application/json
policy_ids
string[]

New policy IDs to enforce on the wallet. Currently, only one policy is supported per wallet.

Maximum length: 1
owner

The owner of the resource. If you provide this, do not specify an owner_id as it will be generated automatically. When updating a wallet, you can set the owner to null to remove the owner. The P-256 public key of the owner of the resource, in base64-encoded DER format. If you provide this, do not specify an owner_id as it will be generated automatically.

owner_id
string

The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.

additional_signers
object[]

Additional signers for the wallet.

Response

200 - application/json

Created wallet update intent.

Response for a wallet update intent creation request

intent_id
string
required

Unique ID for the intent

created_by_display_name
string
required

Display name of the user who created the intent

created_at
number
required

Unix timestamp when the intent was created

resource_id
string
required

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

authorization_details
object[]
required

Detailed authorization information including key quorum members, thresholds, and signature status

status
enum<string>
required

Current status of the intent

Available options:
pending,
executed,
failed,
expired,
rejected
expires_at
number
required

Unix timestamp when the intent expires

intent_type
enum<string>
required
Available options:
WALLET
request_details
object
required

The original wallet update request that would be sent to the wallet endpoint

created_by_id
string

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

current_resource_data
object

Current state of the wallet before any changes. If undefined, the resource was deleted and no longer exists

Example:
{
"id": "id2tptkqrxd39qo9j423etij",
"address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
"chain_type": "ethereum",
"policy_ids": [],
"additional_signers": [],
"owner_id": "rkiz0ivz254drv1xw982v3jq",
"created_at": 1741834854578,
"exported_at": null,
"imported_at": null
}
action_result
object

Result of wallet update execution (only present if status is 'executed' or 'failed')