Skip to main content

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​

Key rotated; new secret returned once.