Rotate API Key
rotate_api_keyRegenerate an API key, invalidating the old one immediately. Returns the new key value, visible only at this moment.
Instructions
Rotate (regenerate) an existing API key. The old key is immediately invalidated and a new key value is returned. This is the only time the full key is visible.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keyId": "<keyId>"
},
"name": "rotate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | Yes | The API key ID to rotate (e.g. 'key_001') |