create_api_key
Generate a new API key for a Hostkey account or a specific server, setting its name, activity, and login notifications. The key value appears once, so save it immediately.
Instructions
Create a new API key for the account or a specific server (api_keys/add). The key value is shown once in the response — save it.
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": {
"name": "<name>",
"login_notify_method": "<login_notify_method>",
"active": "<active>",
"confirm": "<confirm>"
},
"name": "create_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IP allowlist, e.g. 10.0.0.2, 10.4.6.3/24 | |
| name | Yes | Key name | |
| active | Yes | true — key is active | |
| confirm | Yes | Must be true to run the operation. | |
| server_id | No | Server ID; omit for an account-wide key | |
| login_notify_method | Yes | Login notifications for this key; use none for per-server keys | |
| login_notify_address | No | Email or webhook URL for notifications |