mcp-server
v1.0.8MCP server for Hostkey .com (InvAPI): servers, power, order, DNS, S3, billing
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_servers
List Hostkey account servers with filters. Before the first call, automatically refreshes inventory (eq/update_servers). Returns server IDs and brief data; use get_server for the full card.
| Parameter | Type | Description |
|---|---|---|
group | string | Groups, comma-separated: VPS,Gpu,1CPU,2CPU,AMD,Instances,Storage,Nodes,Micro,Mini,Dell |
ip | string | Find server by IP address |
location | string | Location codes, comma-separated: NL,US,FI,DE,IS,TR,UK,ES,IT,PL,CH |
mac | string | Find server by MAC address |
status | string | Status: rent (active) or power_off (suspended) |
get_server
Full server details by ID (eq/show): configuration, network, status, location.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID in InvAPI |
get_power_status
Current server power status (on/off).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
get_server_sensors
Hardware sensor readings (temperatures, voltages, fans). Bare-metal only.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
get_server_tags
All server tags (tags/list). Tags store arbitrary key-value pairs.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
search_servers_by_tag
Search servers by tag name or value (tags/search_user). Returns server IDs.
| Parameter | Type | Description |
|---|---|---|
value * | string | Tag search pattern |
list_presets
Current list of available instant servers (VM/BM/GPU/vGPU) with prices for a location. No token required. Use to pick a preset before ordering.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
search_presets
Search free servers matching a preset name (e.g. vm.pico). Requires auth.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
name * | string | Preset name, e.g. vm.pico |
scope | string | free (default) — available only |
get_preset_pricing
Prices for available presets in given currencies (presets/info). No token required.
| Parameter | Type | Description |
|---|---|---|
currencies | string | Currency codes, comma-separated, e.g. EUR,USD. Default EUR |
list_preset_groups
Preset groups for catalog categories (presets/groups). No token required.
get_preset
Details for one preset or all presets (presets/show). May require auth depending on permissions.
| Parameter | Type | Description |
|---|---|---|
id | integer | Preset ID; omit for full list |
list_stock_servers
Available stock servers (physical servers of standard configs; deploy within a business day). No token required.
| Parameter | Type | Description |
|---|---|---|
group * | string | Server group; GPU servers are not included in other groups |
location * | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
get_stock_server
Details for a specific stock server (stocks/show).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Stock server ID from list_stock_servers |
list_os
Operating systems available for a preset/server (os/list). Without instance_id returns OS for all presets. No token required.
| Parameter | Type | Description |
|---|---|---|
instance_id | integer | Preset ID from list_presets |
list_software
Software (marketplace apps) available for auto-install (software/list). No token required.
| Parameter | Type | Description |
|---|---|---|
instance_id | integer | Preset ID from list_presets |
location | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
list_traffic_plans
Available traffic plans for a preset in a location (traffic_plans/list). No token required.
| Parameter | Type | Description |
|---|---|---|
instance_id * | integer | Preset ID from list_presets |
location * | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
get_account_info
Current API token and account info (auth/info): available calls, account type and role, linked server IDs. Useful to verify the connection.
logout
End the current API session (auth/logout): session token is removed from InvAPI. On the next call the client will sign in again with the API key.
list_api_keys
List all account API keys (api_keys/list).
list_server_api_keys
List API keys issued for a specific server (api_keys/list_for_server).
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | Server ID |
get_api_key
Details for a specific API key (api_keys/view).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Key ID from list_api_keys |
get_api_key_history
API key usage history for a period (api_keys/history).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Key ID |
period_from | string | Period start, YYYY-MM-DD |
period_to | string | Period end, YYYY-MM-DD |
create_api_key
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.
| Parameter | Type | Description |
|---|---|---|
active * | boolean | true — key is active |
confirm * | boolean | Must be true to run the operation. |
login_notify_method * | string | Login notifications for this key; use none for per-server keys |
name * | string | Key name |
ip | string | IP allowlist, e.g. 10.0.0.2, 10.4.6.3/24 |
login_notify_address | string | Email or webhook URL for notifications |
server_id | integer | Server ID; omit for an account-wide key |
update_api_key
Update API key settings (api_keys/edit): name, IP allowlist, notifications, active flag.
| Parameter | Type | Description |
|---|---|---|
active * | boolean | true — key is active |
confirm * | boolean | Must be true to run the operation. |
id * | integer | Key ID |
login_notify_method * | string | Login notification method |
name * | string | Key name |
ip | string | IP allowlist |
login_notify_address | string |
delete_api_key
Delete an API key (api_keys/delete). DESTRUCTIVE: apps using the key will lose access.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Key ID |
get_network_status
Server network interface status (net/get_status): port, switch, VLAN, speed, MAC, link status. Optional port limits the query to one interface (useful when another NIC has no upstream_id).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
port | string | Optional physical/logical interface or switch port (e.g. eth0). Omit to query all; if InvAPI fails on an unmapped NIC, retry with a mapped port from get_server. |
get_port_graphs
Port utilization graphs for a period (net/show_cacti): day/month/year.
| Parameter | Type | Description |
|---|---|---|
graph * | integer | 1 — day, 2 — month, 3 — year |
id * | integer | Server ID |
port * | string | Physical switch port |
get_ip_info
Network interface information by IP address (ip/get_ip).
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address |
get_ptr_record
Current PTR record (reverse DNS) for an IP address (ip/get_ptr).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
ip * | string | IP address |
port_on
Enable a server network port (net/port_on).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
port * | string | Physical switch port from get_network_status |
port_off
Disable a server network port (net/port_off). DESTRUCTIVE: the server will lose network connectivity on this interface.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
port * | string | Physical switch port from get_network_status |
block_ip
Block an IP address on the server at the Hostkey network level (net/block_ip). Useful for abuse requests.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
description * | string | Block reason |
id * | integer | Server ID |
ip * | string | IP address |
four_hours | boolean | true — block is automatically lifted after 4 hours |
unblock_ip
Unblock an IP address on the server (net/unblock_ip).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
ip * | string | IP address |
update_ptr_record
Update the PTR record for an IP address (ip/update_ptr). Multiple records are passed separated by %0A.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
ip * | string | IP address |
ptr * | string | New PTR value |
set_main_ip
Set the primary IP address of the server (ip/set_main) when there are multiple addresses.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
ip * | string | IP address |
main * | string | IP address that will become primary |
list_dns_zones
List all DNS zones on the account on Hostkey PowerDNS servers (pdns/list_zones).
get_dns_zone
DNS zone contents: all records (A, AAAA, CNAME, MX, TXT, etc.) from the authoritative server (pdns/view_zone).
| Parameter | Type | Description |
|---|---|---|
zone * | string | Zone name, e.g. example.com |
list_dns_domains
List all user domains from the domains table (pdns/list_domains).
list_dns_subdomains
List subdomains by server ID (pdns/list_subdomains).
| Parameter | Type | Description |
|---|---|---|
server_id * | integer | Server ID |
add_dns_domain
Create a DNS zone and add a domain to the domains table (pdns/add_domain). Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
name * | string | Domain name, e.g. example.com |
delete_dns_domain
Delete a domain by ID: DNS zone, the domain itself, and all its subdomains (pdns/delete_domain). DESTRUCTIVE. Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
domain_id * | integer | Domain ID from list_dns_domains |
server_id * | integer | Server ID |
add_dns_subdomain
Add a subdomain to the subdomains table (pdns/add_subdomain). Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
domain_id * | integer | Domain ID from list_dns_domains |
name * | string | Subdomain name |
server_id * | integer | Server ID |
edit_dns_subdomain
Update a subdomain (pdns/edit_subdomain). Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Subdomain ID |
server_id | integer | Server ID |
delete_dns_subdomain
Delete a subdomain from the subdomains table (pdns/delete_subdomain). DESTRUCTIVE. Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Subdomain ID |
server_id * | integer | Server ID |
add_dns_zone
Create a DNS zone on the authoritative PowerDNS server (pdns/add_zone). Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
name * | string | Zone name, e.g. example.com |
dns | object | SOA parameters for the zone; Hostkey defaults apply if omitted |
dnssec | boolean | Enable DNSSEC (defaults to false) |
kind | string | Zone type, defaults to Master |
masters | array | List of master servers (for Slave) |
nameservers | array | NS servers for the zone, defaults to ns1.hostkey.com/ns2.hostkey.com |
rrsets | boolean | Use RRset instead of records (defaults to true) |
delete_dns_zone
Delete a DNS zone by name along with all records and metadata (pdns/delete_zone). DESTRUCTIVE. Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
zone * | string | Zone name |
add_dns_record
Add or update a DNS record in a zone (pdns/add_dns). Requires pdns/edit permission. For SRV records, fill in proto/priority/weight/port/target. Fields mname/rname are marked required for SOA checks in the docs — fill them in on error.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
content * | string | Record value, e.g. 10.56.121.5 |
type * | string | Record type: A, AAAA, CNAME, MX, TXT, SRV… |
zone * | string | Zone name |
increase_soa_serial | boolean | Auto-increment SOA serial (defaults to true) |
mname | string | Primary NS in the SOA record |
name | string | Record name, e.g. www |
old_name | string | Previous record name — for renaming |
port | integer | Port for SRV |
priority | integer | Priority for SRV/MX |
proto | string | Protocol for SRV, e.g. tcp |
rname | string | Admin email in the SOA record |
target | string | Target domain for SRV |
ttl | integer | TTL in seconds, defaults to 3600 |
weight | integer | Weight for SRV |
delete_dns_record
Delete a DNS record from a zone (pdns/delete_dns). DESTRUCTIVE. Requires pdns/edit permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
name * | string | Record name |
type * | string | Record type |
zone * | string | Zone name |
get_snapshots
List virtual machine snapshots (vm/get_snapshot): name, snapshot_id, date.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Virtual machine ID |
get_vm_engine
Virtualization engine information (vm/get_engine).
get_vm_stats
Virtual machine statistics (vm/load_stats).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Virtual machine ID |
create_snapshot
Create a virtual machine snapshot (vm/create_snapshot). Async operation. Track with check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Virtual machine ID |
name * | string | Snapshot name |
remove_snapshot
Delete a snapshot (vm/remove_snapshot). DESTRUCTIVE: the snapshot is permanently deleted. Deletion is only possible on a powered-off VM.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Virtual machine ID |
name * | string | Snapshot name |
restore_snapshot
Restore a VM from a snapshot (vm/restore_snapshot). DESTRUCTIVE: the current VM disk state will be overwritten with the snapshot state.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Virtual machine ID |
name * | string | Snapshot name |
get_vnc_console
Access the server VNC console (eq/console): returns console.vv config in Base64 for virt-viewer.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
start_novnc
Start a NoVNC (HTML5) server console session (eq/novnc): returns a link to open in the browser.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
white_ip | string | IP allowed to connect from |
list_post_install_tasks
Available post-install Ansible tasks (jenkins/get_tasks) with applicability tags: gpu, bm, vm, vgpu, default. Without a token — general list; with a token — tasks available to the specific user.
run_post_install_task
Run a Jenkins/Ansible task on a server (jenkins/call): task ID or name from list_post_install_tasks + extra params. E.g. installing GPU drivers after OS reinstall.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
task * | Task ID or name from list_post_install_tasks | |
params | object | Additional task parameters |
add_static_nat
Create a static DNAT to the server IPMI (nat/add_static_nat): public IP for classic IPMI access. Distinct from Secure IPMI Proxy in the panel — Proxy Active alone may not satisfy this call. Async; track with check_task. On server_ipmi_acl_required pass ip_acl.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
ip_acl | string | Client IP(s) allowed to reach IPMI via NAT (InvAPI ip_acl). Required by some accounts when panel Proxy ACL is not enough. |
secured | Secured NAT flag if supported by InvAPI | |
ttl | integer | NAT lifetime in seconds, if supported |
remove_static_nat
Remove static DNAT to the server IPMI (nat/remove_static_nat).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
clear_static_nat
Remove stale static NAT forwarding rules by internal IP (nat/clear_static_nat).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
ip * | string | Internal IP address |
drop_nat
Delete a NAT record from the database (nat/drop_nat). DESTRUCTIVE, internal/ops action.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id | integer | NAT record ID |
ip | string | Record IP address |
add_ipmi_user
Create a temporary IPMI user for web access to IPMI (eq/add_ipmi_user).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
remove_ipmi_user
Remove a temporary IPMI user (eq/remove_ipmi_user).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
reset_ipmi
Reboot the server IPMI module (eq/unit_reset). Use when IPMI is unresponsive.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_power_on
Remote Hands request: power on the server manually (jira/request_pon). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_power_off
Remote Hands request: power off the server manually (jira/request_poff). DESTRUCTIVE for running services. Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_reboot
Remote Hands request: reboot the server manually (jira/request_reboot). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_pxe_boot
Remote Hands request: boot the server via PXE (jira/request_PXEboot). Needed when reinstalling OS on servers without a remote management module. Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_kvm
Remote Hands request: attach IP KVM to the server (jira/request_kvm). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_rh_check
Remote Hands request: check the server and boot it into the OS (jira/request_check). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_sales_assistance
Ticket to the sales department (jira/request_assistance): cancellation or transfer of a service and similar requests. Describe details in message.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
message * | string | Request details: what to cancel/transfer and why |
id | integer | Server ID, if the request concerns a server |
subject | string | Request subject |
create_reinstall_task
PXE reinstall step 1: create an OS reinstall master key (eq/reinstall). Returns reinstall_key used by check_task to track install stages. DESTRUCTIVE: part of the process that wipes server disks.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
create_pxe_config
PXE reinstall step 2: create a PXE config for OS install (eq/create_pxe). DESTRUCTIVE.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
hostname * | string | Hostname |
id * | integer | Server ID |
os_id * | integer | OS ID from list_os |
root_pass * | string | Root password (min. 8 chars, uppercase letter, digit) |
post_install_callback | string | Callback URL after install |
post_install_script | string | Post-install script |
reinstall_key | string | Master key from create_reinstall_task |
ssh_key | string | Public SSH key |
set_boot_device
Set server boot order (eq/boot_dev): pxe — network boot (reinstall step 3), disk — boot from disk (step 6), cd — mounted ISO.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
media * | string | Boot device |
clear_pxe_config
PXE reinstall step 7: remove the PXE config (eq/clear_pxe). REQUIRED after completion — otherwise an unexpected reinstall may occur on the next reboot.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
hostname * | string | Server hostname |
id * | integer | Server ID |
list_iso_images
List available ISO images (iso/list_iso). InvAPI requires a server id (for client keys); images are matched to the server configuration.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID in InvAPI (required) |
get_uploaded_isos
List ISO images uploaded by the client (iso/uploaded).
upload_iso
Upload a new ISO image by URL (iso/upload). Available to clients.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
url * | string | Direct URL of the ISO image |
name | string | Image name in the library |
add_iso_image
Add a new ISO image or update an existing one by name (iso/add). Requires special 'add' permission.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
name * | string | Image name |
url | string | Image URL, if required |
mount_iso
Mount an ISO image on a server (iso/mount_iso). Async operation. Callback key returned — track with check_task. InvAPI expects `iso` (name or id). Pass iso, or name / iso_id aliases.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
iso | string | number | ISO name or id (InvAPI field `iso`) |
iso_id | integer | Alias: image ID from list_iso_images → iso |
name | string | Alias: image name / iso_name → iso |
unmount_iso
Unmount an ISO image from a server (iso/unmount_iso). Async operation. Callback key returned — track with check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
delete_iso_image
Delete an ISO image by ID (iso/delete). DESTRUCTIVE. Per docs, available only to Hostkey staff — clients will likely get a permission error.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | ISO image ID |
s3_list_plans
List available S3 storage plans (s3/list_plans).
| Parameter | Type | Description |
|---|---|---|
location | string | Location (filter), if supported |
s3_get_locations
List available locations for S3 (s3/get_available_locations).
s3_get_buckets
List S3 account buckets and usage (s3/get_buckets_rmq). Pass s3uid or account_id from s3_get_users. May return a task key — then track with check_task.
| Parameter | Type | Description |
|---|---|---|
account_id | integer | Numeric id from s3_get_users.id (alias; resolved to s3uid) |
s3uid | string | number | S3 account UID from s3_get_users.s3uid |
s3_get_buckets_via_queue
Same as s3_get_buckets: list buckets via s3/get_buckets_rmq. Prefer s3_get_buckets.
| Parameter | Type | Description |
|---|---|---|
account_id | integer | Numeric id from s3_get_users.id (alias; resolved to s3uid) |
s3uid | string | number | S3 account UID from s3_get_users.s3uid |
s3_get_files
List files in a bucket with pagination and search (s3/get_files).
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket name |
account_id | integer | Deprecated alias for s3uid / get_users.id |
limit | integer | Page size (mapped to InvAPI max_keys, max 100) |
page | integer | Ignored; use search / limit. InvAPI paginates with continuation_token. |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
search | string | Search string by file name |
s3_get_users
List S3 users with service, traffic, and storage usage info (s3/get_users). Full filtering is available to administrators. Use returned s3uid/id with s3_get_buckets.
| Parameter | Type | Description |
|---|---|---|
location | string | Filter by location (for administrators) |
s3_show_key
Get a decrypted S3 access key (s3/show_key). SECRET: do not log or share with third parties.
| Parameter | Type | Description |
|---|---|---|
key_type * | string | Key type |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_create_account
Create an S3 account: bind a plan and initial bucket (s3/create_account). Requires authentication.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
bucket | string | Initial bucket name |
location | string | Location from s3_get_locations |
plan_id | Plan ID from s3_list_plans |
s3_create_bucket
Create a new bucket in an existing S3 account (s3/create_bucket).
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket name |
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_create_order
Create a paid S3 storage order linked to billing (s3/create_order). MONEY: creates a real order/invoice.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
location | string | Location |
plan_id | Plan ID |
s3_delete_file
Delete a file from a bucket (s3/delete_file). DESTRUCTIVE: the file is permanently deleted.
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket name |
confirm * | boolean | Must be true to run the operation. |
file * | string | File key (name) |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_delete_bucket
Delete a bucket from an S3 account (s3/delete_bucket). DESTRUCTIVE: all files in the bucket will be deleted.
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket name |
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_delete_account
Fully delete a user's S3 account (s3/delete_account). DESTRUCTIVE: all buckets and data will be deleted. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_delete_payment_account
Initiate S3 account deletion via service cancellation in billing (s3/delete_payment_account). DESTRUCTIVE: an end date will be set on the active service. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_cancel_account_deletion
Cancel S3 service deletion initiated via billing and restore the account to active status (s3/cancel_payment_account_deletion).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
s3_update_traffic_info
Update S3 account traffic information (s3/update_traffic_info). Available to administrators only.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
account_id | integer | Deprecated alias for s3uid / get_users.id |
s3uid | string | number | S3 account UID; omit only if the token is bound to a single S3 account |
list_rhr_requests
List Remote Hands requests with filtering by location and status (rhr/list).
| Parameter | Type | Description |
|---|---|---|
location | string | Filter by location, e.g. NL |
status | string | Filter by request status |
create_rhr_request
Create a Remote Hands request (rhr/add): on-site datacenter shift work that cannot be done remotely. Describe the work in as much detail as possible in comment. Use only if the remote server management module is unavailable/not working.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Detailed description of the required work |
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
request_type | string | Work type, if set by a directory |
add_rhr_comment
Add a client-visible message to the request history (rhr/chat).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Request ID from list_rhr_requests |
message * | string | Message text |
discard_rhr_request
Cancel/close a Remote Hands request (rhr/discard). DESTRUCTIVE: the request will be cancelled.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Request ID |
get_billing_client
Client data from billing (whmcs/get_client): contacts, currency, account status.
get_invoices
Full list of account invoices (whmcs/get_invoices).
get_invoice
Data for a specific invoice for payment (whmcs/get_invoice).
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | Invoice number |
get_server_invoices
Invoices related to a specific server (whmcs/get_related_invoices).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
get_server_billing_data
Billing information for a server rental (whmcs/get_billing_data).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
get_transactions
List of transactions for the client account (whmcs/transactions).
| Parameter | Type | Description |
|---|---|---|
invoice_id | integer | Filter by invoice |
transaction_id | integer | Specific transaction |
get_credit_history
Credit balance movement: credit additions and deductions (whmcs/getcredits).
| Parameter | Type | Description |
|---|---|---|
id * | integer | Server ID |
get_payment_gateway
Payment methods for a specific invoice (whmcs/getpaymentgw).
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | Invoice number |
download_invoice
Download an invoice as PDF (whmcs/download_invoice). InvAPI returns binary PDF; MCP returns JSON with encoding=base64 and data — decode to a .pdf file.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | Invoice number |
get_cancellation_requests
List of active service cancellation requests (whmcs/get_cancellation_requests).
| Parameter | Type | Description |
|---|---|---|
id | integer | Server ID (filter) |
get_contacts
List of additional account contacts (whmcs/get_contacts).
update_billing_client
Update client data in billing (whmcs/update_client): name, company, address, email, phone, etc.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
billing_address1 | string | |
billing_address2 | string | |
billing_city | string | |
billing_companyname | string | |
billing_country | string | |
billing_email | string | |
billing_firstname | string | |
billing_lastname | string | |
billing_phonenumber | string | |
billing_postcode | string | |
billing_state | string |
reset_billing_password
Reset the billing account password (whmcs/reset_password): a reset link is sent to the given email. Email must match the account email.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
email * | string | Account email |
add_contact
Add an additional contact to the account (whmcs/add_contact). WARNING: the contact is created with a random email — change it in Invapi.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
update_contact
Update an additional contact (whmcs/update_contact): email, password, phone. Providing a phone enables SMS 2FA.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
contact_id * | integer | Contact ID |
email * | string | Contact email |
password2 | string | New contact password |
phonenumber | string | Phone (enables SMS 2FA) |
delete_contact
Delete an additional account contact (whmcs/delete_contact). DESTRUCTIVE.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
contact_id * | integer | Contact ID |
generate_due_invoice
Create the next invoice for a server (whmcs/generate_due_invoice).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
create_addfunds_invoice
Create an invoice to top up the credit balance (whmcs/create_addfunds). MONEY: creates a real invoice for the given amount.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Top-up amount in account currency |
confirm * | boolean | Must be true to run the operation. |
apply_credit
Pay an invoice in full or in part from the credit balance (whmcs/apply_credit). MONEY: deducts funds from the account.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount in account currency |
confirm * | boolean | Must be true to run the operation. |
invoice_id * | integer | Invoice number |
mass_pay
Create a group invoice to pay multiple invoices at once (whmcs/mass_pay). MONEY.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
invoices * | array | Array of invoice numbers |
request_cancellation
Request service cancellation (whmcs/request_cancellation). DESTRUCTIVE: cancellation_type=1 — immediate cancel with partial refund (if possible), 0 — cancel at end of billing period. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.
| Parameter | Type | Description |
|---|---|---|
cancellation_type * | number | 1 — immediate (partial refund if possible), 0 — at end of billing period |
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
terminate_reason_custom | string | Cancellation reason |
delete_cancellation_request
Withdraw a service cancellation request (whmcs/delete_cancellation_request).
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run the operation. |
id * | integer | Server ID |
check_task
Check async job status by callback key (eq_callback/check). Many InvAPI operations (power on/off, order, reinstall, snapshots) return {"result":"OK","callback":"<key>"}. Pass that key here: result="Not ready" — still running; result="OK" — finished (key then expires). Server deploy can take 10–30 minutes. If the client sent progressToken, emits notifications/progress.
| Parameter | Type | Description |
|---|---|---|
key * | string | Callback key from an async operation response |
power_on
Power on a server (eq/on). Async: response includes a callback key for check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Required confirmation. Without confirm=true the call is rejected. |
id * | integer | Server ID |
power_off
Power off a server (eq/off). DESTRUCTIVE: interrupts all services on the server. Requires confirm=true. Async: response includes a callback key for check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Required confirmation. Without confirm=true the call is rejected. |
id * | integer | Server ID |
reboot_server
Reboot a server (eq/reboot). Interrupts services during reboot. Requires confirm=true. Async: response includes a callback key for check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Required confirmation. Without confirm=true the call is rejected. |
id * | integer | Server ID |
order_server
Order an instant or stock server (eq/order_instance). IMPORTANT: ordering charges the credit balance or creates an invoice. Defaults to dry_run=true — only checks preset/OS availability and returns a summary without placing an order. For a real order pass dry_run=false and confirm=true after explicit user consent on the cost. Deploy takes 10–30 minutes; status via check_task.
| Parameter | Type | Description |
|---|---|---|
deploy_period * | string | Billing period |
location_name * | string | Location: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH |
os_id * | integer | OS ID from list_os |
preset * | string | Preset ID or name from list_presets (e.g. 108 or vm.pico) |
root_pass * | string | Root password: min. 8 chars, uppercase, digit, special char (not @ or #) |
traffic_plan * | integer | Traffic plan ID from list_traffic_plans |
confirm | boolean | Required (=true) for a real order |
deploy_notify | boolean | Email notification when deploy finishes (recommended true) |
dry_run | boolean | Default true: validate parameters without placing an order or charging |
hostname | string | Hostname; default is generated from location and ID |
own_os | integer | 1 — do not install OS (manual install) |
post_install_callback | string | Callback URL after deploy |
post_install_script | string | Script run after deploy |
promocode | string | Discount promocode |
soft_id | integer | Software ID from list_software (optional) |
ssh_key | string | Public SSH key for root |
reinstall_server
Reinstall OS on an existing server (simplified path via eq/order_instance with id). DESTRUCTIVE: all disk data will be erased. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1 in the server environment, confirm=true, and re-entering the server's current hostname. Async: status via check_task.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Required (=true) to start reinstall |
hostname * | string | Current server hostname — confirms the correct server is selected |
id * | integer | Server ID |
os_id * | integer | New OS ID from list_os (0 + own_os=1 — no OS install) |
root_pass * | string | New root password |
deploy_notify | boolean | |
own_os | integer | 1 — do not install OS |
post_install_script | string | |
soft_id | integer | Software ID from list_software |
ssh_key | string | Public SSH key for root |
call_api_raw
Universal direct InvAPI call by resource and action, for resources without typed tools (e.g.: iso — ISO image library, s3 — S3 Object Storage, rhr — Remote Hands new version; see action list in the docs: https://hostkey.com/documentation/apidocs/). ALWAYS requires confirm=true; destructive/paid actions additionally require HOSTKEY_ALLOW_DESTRUCTIVE=1. Prefer typed tools when they exist for the needed operation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Resource action, e.g.: list |
confirm * | boolean | Required confirmation. Without confirm=true the call is rejected. |
resource * | string | InvAPI resource without .php, e.g.: iso, s3, rhr, eq, net, whmcs |
auth | boolean | Inject session token (defaults to true) |
params | object | Call parameters as an object; nested objects become params[...] |