v46

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

Initialize import

Initialize a wallet import. Complete by submitting the import.

post/v1/wallets/import/init

Headers

privy-app-idstring required

ID of your Privy app.

Request body

OR

Response

The encryption public key to encrypt the wallet entropy with.

encryption_public_keystring required

The base64-encoded encryption public key to encrypt the wallet entropy with.

encryption_type'HPKE' required

The encryption type of the wallet to import. Currently only supports HPKE.

Example response

{
  "encryption_public_key": "BDAZLOIdTaPycEYkgG0MvCzbIKJLli/yWkAV5yCa9yOsZ4JsrLweA5MnP8YIiY4k/RRzC+APhhO+P+Hoz/rt7Go=",
  "encryption_type": "HPKE"
}