Rotate an API key
rotate_api_keyRotate an API key: the old secret remains valid for 24 hours while a new one is issued, letting you deploy without gaps. Save the returned secret immediately.
Instructions
Issue a replacement secret. The old key keeps working for 24 hours so a deploy can roll over without a gap. The new secret is returned once; hand it to the user immediately.
Requires scope api_keys:write.
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": {
"id": "<id>"
},
"name": "rotate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record id, e.g. "6a96a3ead6e886d42462dd3e". |