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, every permission flag including walletApiEnabled, allowed IPs, allowed recipients) as the old one, then the old key is deactivated. The new secret is returned once — store it securely.
The old key stops working immediately. For a migration window, create a new key with POST /partner/wallets/{identifier}/api-keys, move consumers over, then revoke the old one.
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.