v4
OpenAPI 3.0.12026-08-0149261422.6 KBService Accounts
Rotate a service account API key
DESTRUCTIVE: atomically revokes the existing key and issues a replacement that inherits its name, returning the new one-time key value (shown only once). The previous key stops authenticating the instant this call succeeds, so any client still using it will immediately start failing with 401. Update every consumer with the new value before rotating, or set gracePeriodMinutes to keep the old key valid for a short overlap window.
post/api/v0/service-accounts/{serviceAccountId}/api-keys/{keyId}/rotate
Path parameters
serviceAccountIdstring required
Service account ID
keyIdstring required
API key ID
Request body
Response
Response for status 200