Rotate API Key
POST/partner/wallets/:identifier/api-keys/:keyId/rotate
Atomically rotate a wallet API key: a new key is created with the same configuration (name, permissions, allowed IPs, allowed recipients) as the old one, then the old key is deactivated. The new secret is returned once — store it securely.
Use this instead of the manual create-then-revoke flow when you want zero-downtime rotation with identical settings.
Request
Responses
- 201
- 401
- 403
- 404
Key rotated; new secret returned once.
Invalid or missing partner key.
Wallet is suspended or closed.
Wallet not found, or no active key with that keyId.