rotate_api_key
Give an API key a new secret under the same name.
What it does
Give an API key a new secret under the same name. The old secret stops working immediately, for every client that used it; other keys are untouched. Pass key_id from list_api_keys; without it, the key this session uses, or the oldest. Returns the new secret once; show it to the user. A session using an API key can rotate only that key. Only call when the user asks, or when a key has clearly leaked.
Parameters
| Name | Type | Notes |
|---|---|---|
| key_id | string | The key to rotate, from list_api_keys |
* required
More account tools
See all 147 tools and the connection string on the MCP server page.