Backend Wallets
Export private key (E2E encrypted).
Changed onExport private key with E2E encryption via backend wallet.
Exports the account's private key encrypted using RSA-4096 OAEP SHA-256. The client must provide their ephemeral RSA-4096 public key (base64 SPKI DER format). The response contains the encrypted private key that can be decrypted with the client's private key.
post/v2/accounts/backend/{id}/export
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/accounts/backend/{id}/export
- Auth: HTTP bearer
Path parameters
idstring required
The account ID (starts with acc_).
Request body
Example request
{
"encryptionKey": "MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA..."
}Response
Successful response.
Example response
{
"encryptedPrivateKey": "base64_encrypted_data..."
}Changes
- info
the security scope
accounts:exportwas added to the endpoint's security schemewallet_auth
- info
- info
endpoint added
- info