Skip to content
RRAECHLY
AccountWrites data

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

NameTypeNotes
key_idstringThe key to rotate, from list_api_keys

* required

More account tools

See all 147 tools and the connection string on the MCP server page.

Run rotate_api_key yourself.

Connect the MCP server to Claude, Claude Code or Cursor and the whole toolset shows up in the conversation.