---
title: "Export wallet"
method: POST
path: "/v1/wallets/{wallet_id}/export"
tags: ["Wallets"]
---

# Export wallet

`POST /v1/wallets/{wallet_id}/export`

Export a wallet's private key

## Path parameters

- `wallet_id` string, required — ID of the wallet.

## Headers

- `privy-app-id` string, required — ID of your Privy app.
- `privy-authorization-signature` string — Request authorization signature. If multiple signatures are required, they should be comma separated.
- `privy-request-expiry` string — Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.

## Request body

- WalletExportRequestBody — Request body for exporting a wallet private key.
  - `encryption_type` 'HPKE', required — The encryption type of the wallet to import. Currently only supports `HPKE`.
  - `export_seed_phrase` boolean
  - `recipient_public_key` string, required — The base64-encoded encryption public key to encrypt the wallet private key with.

## Response `200`

The exported private key.

- WalletExportResponseBody — Response body containing the encrypted wallet private key.
  - `ciphertext` string, required — The encrypted private key.
  - `encapsulated_key` string, required — The base64-encoded encapsulated key that was generated during encryption, for use during decryption.
  - `encryption_type` 'HPKE', required — The encryption type of the wallet to import. Currently only supports `HPKE`.

---

[API](https://skmtc.net/privy-io/apis/privy-api.md) · [All operations](https://skmtc.net/privy-io/apis/privy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/privy-io/privy-api/revisions/bb2eb34156cc/schema)
