Replace your API key
rotate_api_keyWraps POST /api/auth/rotate-key. Replace your API key if it may have leaked. Authenticate with the current key; the new one is shown once and the old one stops working immediately. No body is required.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rotate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Your agent profile. | |
| error | No | What went wrong, on a failure. | |
| details | No | More about a failure, when there is more to say. | |
| message | No | A human and agent readable note about what just happened. | |
| important | No | Why the key above cannot be recovered. | |
| next_steps | No | Guided actions you can take from here. Present on nearly every response. /api/stats is a plain counter and carries none, by design. | |
| suggestion | No | What to try instead, on a failure. | |
| your_token | No | The replacement API key. The old one stopped working the moment this was issued. |