Skip to navigation

Rotate

Rotates an API key, generating a new secret and invalidating the old one.

Authentication

AuthorizationBearer

Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.

Path parameters

idstringRequired
The ID of the API key to rotate.

Response

API key rotated
idstring
The API key ID.
namestring
The name of the API key.
api_keystring
The API key secret. Only returned once, when the key is created or rotated.

Errors

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error