Rename API Key
rename_api_keyChange an existing API key’s name within a project, enforcing a 6–64 character unique name; use it only for renaming, not for disabling or deleting keys.
Instructions
Rename an API key of a project, enabled or disabled (name 6–64 characters, unique in the project). Nothing else about a key can be changed here; disabling or deleting keys is only possible in the developer portal. Requires "API keys: Read & 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": {
"projectId": "<projectId>",
"keyId": "<keyId>",
"name": "<name>"
},
"name": "rename_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | API key name, 6–64 characters, no line breaks or tabs; unique in the project. | |
| keyId | Yes | API key id, from list_api_keys or create_api_key (the "id" field, not the key itself). | |
| projectId | Yes | Project id (UUID), from list_projects or create_project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | API key id: the keyId of the other tools, not the key itself. | |
| name | Yes | API key name. | |
| token | No | The full key: on the local server only, when the call asked to reveal it. | |
| active | No | False for a disabled key (single key only). | |
| masked | Yes | The last characters of the key. | |
| expired | Yes | Whether the expiry has passed. | |
| expiresAt | Yes | Expiry, ISO date-time. | |
| tokenSavedTo | No | Absolute path the full key was written to: on the local server only. |