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.
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 |