Rotate
Rotates an API key, generating a new secret and invalidating the old one. The new key keeps the previous key's name and scope.
Requires an API key with workspace access, or an access token. The caller can rotate a key only when that key's scope is within the caller's scope.
Authentication
AuthorizationBearer
Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.
Path parameters
id
The ID of the API key to rotate.
Response
API key rotated
id
The API key ID.
name
The name of the API key.
api_key
The API key secret. Returned only when the key is rotated. The rotated key keeps its previous scope.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error