Issues a new key and invalidates the previous one immediately. Any running integration using the old key stops working at once — that is the point when a key is compromised. The action is written to the audit log. Requires the admin role.
Request
Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Responses
🟢200
application/json
The new key
Bodyapplication/json
🟠403
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.snakk.ai/api/reseller/api-key/rotate' \
--header'X-API-Key: <api-key>'