Export wallet
Export a wallet’s private key.
Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
SDK methods
Learn more about exporting wallets using our SDKs here.This endpoint exports a wallet’s private key using Hybrid Public Key Encryption (HPKE). The following HPKE configuration is supported:
- KEM (Key Encapsulation Mechanism): DHKEM_P256_HKDF_SHA256
- KDF (Key Derivation Function): HKDF_SHA256
- AEAD (Authenticated Encryption with Associated Data): CHACHA20_POLY1305
- Mode: BASE
Authorizations
Basic Auth header with your app ID as the username and your app secret as the password.
Headers
ID of your Privy app.
Request authorization signature. If multiple signatures are required, they should be comma separated.
Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.
Path Parameters
ID of the wallet.
Body
Request body for exporting a wallet private key.
Response
The exported private key.
Response body containing the encrypted wallet private key.
The encryption type of the wallet to import. Currently only supports HPKE.
HPKE The encrypted private key.
The base64-encoded encapsulated key that was generated during encryption, for use during decryption.

