Rotate API key
rotate_api_keyReplace a key's secret, keeping its name, scopes and website restriction. The old secret stops working immediately and the new one is returned ONCE. Only keys no stronger than this one can be rotated. Rotating the key this connection uses cuts the connection off.
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": {
"key_id": "<key_id>"
},
"name": "rotate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | API key id (UUID) from list_api_keys. |