Embedded wallets
Create wallets with recovery
Create one or more wallets associated with a recovery user, so the user can later regain wallet access via the linked accounts. Deprecated; prefer the standard wallet creation flow combined with a separate recovery setup.
post/v1/wallets_with_recovery
Headers
privy-app-idstring required
ID of your Privy app.
Request body
Example request
{
"primary_signer": {
"subject_id": "cm7oxq1el000e11o8iwp7d0d0"
},
"recovery_user": {
"linked_accounts": [
{
"address": "john@doe.com",
"type": "email"
}
]
},
"wallets": [
{
"chain_type": "ethereum",
"policy_ids": []
},
{
"chain_type": "solana",
"policy_ids": []
}
]
}Response
Object with user and wallet data.
Example response
{
"wallets": [
{
"additional_signers": [],
"address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
"archived_at": null,
"chain_type": "ethereum",
"created_at": 1741834854578,
"display_name": "Treasury",
"exported_at": null,
"external_id": "my-order-123",
"id": "id2tptkqrxd39qo9j423etij",
"imported_at": null,
"owner_id": "rkiz0ivz254drv1xw982v3jq",
"policy_ids": []
}
]
}