Rotate wallet secret.
Changed onRotate wallet secret (authentication key).
Replaces the current wallet secret (ECDSA P-256 public key) used for X-Wallet-Auth JWT signing. The old secret will be marked as "rotated" and immediately becomes unusable (no grace period).
Uses provided-key authentication: the request must include a walletAuthToken JWT signed by the private key corresponding to the NEW publicKey being registered. This proves possession of the new private key without transmitting it.
Requires an AAL2 session (MFA step-up). Users must enroll MFA and complete step-up authentication before calling this endpoint.
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/accounts/backend/rotate-secrets
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"newPublicKey": "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE...",
"walletAuthToken": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...",
"newKeyId": "ws_1234567890"
}Response
Successful response.
Changes
- info
the endpoint scheme security
skwas added to the API - info
added the non-success response with the status
- info
- breaking
added the new required request property
- breaking
added the new required request property
- warning
removed the request property
- info
the endpoint scheme security
user_projectwas added to the API - info
the endpoint scheme security
wallet_authwas removed from the API
- breaking