Regenerate API key
regenerate_api_keyRequires the admin scope or higher. Replaces an API key's secret: a new key, with a new id and the same name, scope and (for a tracing key) monitor. The old key stops working immediately wherever it is held, including when it is the calling key. No expiry stays no expiry; an expiring key gets a fresh 90 days, capped at the calling key's expiry. Keys the old key created keep working (no cascade). Refused (403, with max_scope) for a key scoped above the caller's. The plaintext key appears only in this result.
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": {
"api_key_id": "<api_key_id>"
},
"name": "regenerate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key_id | Yes | UUID of the key to regenerate, from list_api_keys. |