mcp-server

v1.0.8
io.github.hostkey-cloud/mcp-server Checked 3 days ago Published 1 month ago

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

ParameterTypeDescription
groupstringGroups, comma-separated: VPS,Gpu,1CPU,2CPU,AMD,Instances,Storage,Nodes,Micro,Mini,Dell
ipstringFind server by IP address
locationstringLocation codes, comma-separated: NL,US,FI,DE,IS,TR,UK,ES,IT,PL,CH
macstringFind server by MAC address
statusstringStatus: rent (active) or power_off (suspended)

get_server

Full server details by ID (eq/show): configuration, network, status, location.

ParameterTypeDescription
id *integerServer ID in InvAPI

get_power_status

Current server power status (on/off).

ParameterTypeDescription
id *integerServer ID

get_server_sensors

Hardware sensor readings (temperatures, voltages, fans). Bare-metal only.

ParameterTypeDescription
id *integerServer ID

get_server_tags

All server tags (tags/list). Tags store arbitrary key-value pairs.

ParameterTypeDescription
id *integerServer ID

search_servers_by_tag

Search servers by tag name or value (tags/search_user). Returns server IDs.

ParameterTypeDescription
value *stringTag 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.

ParameterTypeDescription
location *stringLocation: 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.

ParameterTypeDescription
location *stringLocation: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH
name *stringPreset name, e.g. vm.pico
scopestringfree (default) — available only

get_preset_pricing

Prices for available presets in given currencies (presets/info). No token required.

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

ParameterTypeDescription
idintegerPreset ID; omit for full list

list_stock_servers

Available stock servers (physical servers of standard configs; deploy within a business day). No token required.

ParameterTypeDescription
group *stringServer group; GPU servers are not included in other groups
location *stringLocation: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH

get_stock_server

Details for a specific stock server (stocks/show).

ParameterTypeDescription
id *integerStock 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.

ParameterTypeDescription
instance_idintegerPreset ID from list_presets

list_software

Software (marketplace apps) available for auto-install (software/list). No token required.

ParameterTypeDescription
instance_idintegerPreset ID from list_presets
locationstringLocation: 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.

ParameterTypeDescription
instance_id *integerPreset ID from list_presets
location *stringLocation: 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).

ParameterTypeDescription
server_id *integerServer ID

get_api_key

Details for a specific API key (api_keys/view).

ParameterTypeDescription
id *integerKey ID from list_api_keys

get_api_key_history

API key usage history for a period (api_keys/history).

ParameterTypeDescription
id *integerKey ID
period_fromstringPeriod start, YYYY-MM-DD
period_tostringPeriod 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.

ParameterTypeDescription
active *booleantrue — key is active
confirm *booleanMust be true to run the operation.
login_notify_method *stringLogin notifications for this key; use none for per-server keys
name *stringKey name
ipstringIP allowlist, e.g. 10.0.0.2, 10.4.6.3/24
login_notify_addressstringEmail or webhook URL for notifications
server_idintegerServer ID; omit for an account-wide key

update_api_key

Update API key settings (api_keys/edit): name, IP allowlist, notifications, active flag.

ParameterTypeDescription
active *booleantrue — key is active
confirm *booleanMust be true to run the operation.
id *integerKey ID
login_notify_method *stringLogin notification method
name *stringKey name
ipstringIP allowlist
login_notify_addressstring

delete_api_key

Delete an API key (api_keys/delete). DESTRUCTIVE: apps using the key will lose access.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerKey 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).

ParameterTypeDescription
id *integerServer ID
portstringOptional 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.

ParameterTypeDescription
graph *integer1 — day, 2 — month, 3 — year
id *integerServer ID
port *stringPhysical switch port

get_ip_info

Network interface information by IP address (ip/get_ip).

ParameterTypeDescription
ip *stringIP address

get_ptr_record

Current PTR record (reverse DNS) for an IP address (ip/get_ptr).

ParameterTypeDescription
id *integerServer ID
ip *stringIP address

port_on

Enable a server network port (net/port_on).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
port *stringPhysical 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
port *stringPhysical 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
description *stringBlock reason
id *integerServer ID
ip *stringIP address
four_hoursbooleantrue — block is automatically lifted after 4 hours

unblock_ip

Unblock an IP address on the server (net/unblock_ip).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
ip *stringIP address

update_ptr_record

Update the PTR record for an IP address (ip/update_ptr). Multiple records are passed separated by %0A.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
ip *stringIP address
ptr *stringNew PTR value

set_main_ip

Set the primary IP address of the server (ip/set_main) when there are multiple addresses.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
ip *stringIP address
main *stringIP 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).

ParameterTypeDescription
zone *stringZone 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).

ParameterTypeDescription
server_id *integerServer ID

add_dns_domain

Create a DNS zone and add a domain to the domains table (pdns/add_domain). Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
name *stringDomain 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
domain_id *integerDomain ID from list_dns_domains
server_id *integerServer ID

add_dns_subdomain

Add a subdomain to the subdomains table (pdns/add_subdomain). Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
domain_id *integerDomain ID from list_dns_domains
name *stringSubdomain name
server_id *integerServer ID

edit_dns_subdomain

Update a subdomain (pdns/edit_subdomain). Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerSubdomain ID
server_idintegerServer ID

delete_dns_subdomain

Delete a subdomain from the subdomains table (pdns/delete_subdomain). DESTRUCTIVE. Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerSubdomain ID
server_id *integerServer ID

add_dns_zone

Create a DNS zone on the authoritative PowerDNS server (pdns/add_zone). Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
name *stringZone name, e.g. example.com
dnsobjectSOA parameters for the zone; Hostkey defaults apply if omitted
dnssecbooleanEnable DNSSEC (defaults to false)
kindstringZone type, defaults to Master
mastersarrayList of master servers (for Slave)
nameserversarrayNS servers for the zone, defaults to ns1.hostkey.com/ns2.hostkey.com
rrsetsbooleanUse 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
zone *stringZone 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
content *stringRecord value, e.g. 10.56.121.5
type *stringRecord type: A, AAAA, CNAME, MX, TXT, SRV…
zone *stringZone name
increase_soa_serialbooleanAuto-increment SOA serial (defaults to true)
mnamestringPrimary NS in the SOA record
namestringRecord name, e.g. www
old_namestringPrevious record name — for renaming
portintegerPort for SRV
priorityintegerPriority for SRV/MX
protostringProtocol for SRV, e.g. tcp
rnamestringAdmin email in the SOA record
targetstringTarget domain for SRV
ttlintegerTTL in seconds, defaults to 3600
weightintegerWeight for SRV

delete_dns_record

Delete a DNS record from a zone (pdns/delete_dns). DESTRUCTIVE. Requires pdns/edit permission.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
name *stringRecord name
type *stringRecord type
zone *stringZone name

get_snapshots

List virtual machine snapshots (vm/get_snapshot): name, snapshot_id, date.

ParameterTypeDescription
id *integerVirtual machine ID

get_vm_engine

Virtualization engine information (vm/get_engine).

get_vm_stats

Virtual machine statistics (vm/load_stats).

ParameterTypeDescription
id *integerVirtual machine ID

create_snapshot

Create a virtual machine snapshot (vm/create_snapshot). Async operation. Track with check_task.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerVirtual machine ID
name *stringSnapshot name

remove_snapshot

Delete a snapshot (vm/remove_snapshot). DESTRUCTIVE: the snapshot is permanently deleted. Deletion is only possible on a powered-off VM.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerVirtual machine ID
name *stringSnapshot 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerVirtual machine ID
name *stringSnapshot name

get_vnc_console

Access the server VNC console (eq/console): returns console.vv config in Base64 for virt-viewer.

ParameterTypeDescription
id *integerServer ID

start_novnc

Start a NoVNC (HTML5) server console session (eq/novnc): returns a link to open in the browser.

ParameterTypeDescription
id *integerServer ID
white_ipstringIP 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
task *Task ID or name from list_post_install_tasks
paramsobjectAdditional 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
ip_aclstringClient IP(s) allowed to reach IPMI via NAT (InvAPI ip_acl). Required by some accounts when panel Proxy ACL is not enough.
securedSecured NAT flag if supported by InvAPI
ttlintegerNAT lifetime in seconds, if supported

remove_static_nat

Remove static DNAT to the server IPMI (nat/remove_static_nat).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID

clear_static_nat

Remove stale static NAT forwarding rules by internal IP (nat/clear_static_nat).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
ip *stringInternal IP address

drop_nat

Delete a NAT record from the database (nat/drop_nat). DESTRUCTIVE, internal/ops action.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
idintegerNAT record ID
ipstringRecord IP address

add_ipmi_user

Create a temporary IPMI user for web access to IPMI (eq/add_ipmi_user).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID

remove_ipmi_user

Remove a temporary IPMI user (eq/remove_ipmi_user).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID

reset_ipmi

Reboot the server IPMI module (eq/unit_reset). Use when IPMI is unresponsive.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
message *stringRequest details: what to cancel/transfer and why
idintegerServer ID, if the request concerns a server
subjectstringRequest 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID

create_pxe_config

PXE reinstall step 2: create a PXE config for OS install (eq/create_pxe). DESTRUCTIVE.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
hostname *stringHostname
id *integerServer ID
os_id *integerOS ID from list_os
root_pass *stringRoot password (min. 8 chars, uppercase letter, digit)
post_install_callbackstringCallback URL after install
post_install_scriptstringPost-install script
reinstall_keystringMaster key from create_reinstall_task
ssh_keystringPublic 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
media *stringBoot 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
hostname *stringServer hostname
id *integerServer 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.

ParameterTypeDescription
id *integerServer 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
url *stringDirect URL of the ISO image
namestringImage 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
name *stringImage name
urlstringImage 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer ID
isostring | numberISO name or id (InvAPI field `iso`)
iso_idintegerAlias: image ID from list_iso_images → iso
namestringAlias: 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerISO image ID

s3_list_plans

List available S3 storage plans (s3/list_plans).

ParameterTypeDescription
locationstringLocation (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.

ParameterTypeDescription
account_idintegerNumeric id from s3_get_users.id (alias; resolved to s3uid)
s3uidstring | numberS3 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.

ParameterTypeDescription
account_idintegerNumeric id from s3_get_users.id (alias; resolved to s3uid)
s3uidstring | numberS3 account UID from s3_get_users.s3uid

s3_get_files

List files in a bucket with pagination and search (s3/get_files).

ParameterTypeDescription
bucket *stringBucket name
account_idintegerDeprecated alias for s3uid / get_users.id
limitintegerPage size (mapped to InvAPI max_keys, max 100)
pageintegerIgnored; use search / limit. InvAPI paginates with continuation_token.
s3uidstring | numberS3 account UID; omit only if the token is bound to a single S3 account
searchstringSearch 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.

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

ParameterTypeDescription
key_type *stringKey type
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
bucketstringInitial bucket name
locationstringLocation from s3_get_locations
plan_idPlan ID from s3_list_plans

s3_create_bucket

Create a new bucket in an existing S3 account (s3/create_bucket).

ParameterTypeDescription
bucket *stringBucket name
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
locationstringLocation
plan_idPlan ID

s3_delete_file

Delete a file from a bucket (s3/delete_file). DESTRUCTIVE: the file is permanently deleted.

ParameterTypeDescription
bucket *stringBucket name
confirm *booleanMust be true to run the operation.
file *stringFile key (name)
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
bucket *stringBucket name
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
account_idintegerDeprecated alias for s3uid / get_users.id
s3uidstring | numberS3 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).

ParameterTypeDescription
locationstringFilter by location, e.g. NL
statusstringFilter 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.

ParameterTypeDescription
comment *stringDetailed description of the required work
confirm *booleanMust be true to run the operation.
id *integerServer ID
request_typestringWork type, if set by a directory

add_rhr_comment

Add a client-visible message to the request history (rhr/chat).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerRequest ID from list_rhr_requests
message *stringMessage text

discard_rhr_request

Cancel/close a Remote Hands request (rhr/discard). DESTRUCTIVE: the request will be cancelled.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerRequest 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).

ParameterTypeDescription
invoice_id *integerInvoice number

get_server_invoices

Invoices related to a specific server (whmcs/get_related_invoices).

ParameterTypeDescription
id *integerServer ID

get_server_billing_data

Billing information for a server rental (whmcs/get_billing_data).

ParameterTypeDescription
id *integerServer ID

get_transactions

List of transactions for the client account (whmcs/transactions).

ParameterTypeDescription
invoice_idintegerFilter by invoice
transaction_idintegerSpecific transaction

get_credit_history

Credit balance movement: credit additions and deductions (whmcs/getcredits).

ParameterTypeDescription
id *integerServer ID

get_payment_gateway

Payment methods for a specific invoice (whmcs/getpaymentgw).

ParameterTypeDescription
invoice_id *integerInvoice 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.

ParameterTypeDescription
invoice_id *integerInvoice number

get_cancellation_requests

List of active service cancellation requests (whmcs/get_cancellation_requests).

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

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
billing_address1string
billing_address2string
billing_citystring
billing_companynamestring
billing_countrystring
billing_emailstring
billing_firstnamestring
billing_lastnamestring
billing_phonenumberstring
billing_postcodestring
billing_statestring

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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
email *stringAccount 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.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.

update_contact

Update an additional contact (whmcs/update_contact): email, password, phone. Providing a phone enables SMS 2FA.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
contact_id *integerContact ID
email *stringContact email
password2stringNew contact password
phonenumberstringPhone (enables SMS 2FA)

delete_contact

Delete an additional account contact (whmcs/delete_contact). DESTRUCTIVE.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
contact_id *integerContact ID

generate_due_invoice

Create the next invoice for a server (whmcs/generate_due_invoice).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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.

ParameterTypeDescription
amount *numberTop-up amount in account currency
confirm *booleanMust 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.

ParameterTypeDescription
amount *numberPayment amount in account currency
confirm *booleanMust be true to run the operation.
invoice_id *integerInvoice number

mass_pay

Create a group invoice to pay multiple invoices at once (whmcs/mass_pay). MONEY.

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
invoices *arrayArray 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.

ParameterTypeDescription
cancellation_type *number1 — immediate (partial refund if possible), 0 — at end of billing period
confirm *booleanMust be true to run the operation.
id *integerServer ID
terminate_reason_customstringCancellation reason

delete_cancellation_request

Withdraw a service cancellation request (whmcs/delete_cancellation_request).

ParameterTypeDescription
confirm *booleanMust be true to run the operation.
id *integerServer 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.

ParameterTypeDescription
key *stringCallback key from an async operation response

power_on

Power on a server (eq/on). Async: response includes a callback key for check_task.

ParameterTypeDescription
confirm *booleanRequired confirmation. Without confirm=true the call is rejected.
id *integerServer 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.

ParameterTypeDescription
confirm *booleanRequired confirmation. Without confirm=true the call is rejected.
id *integerServer ID

reboot_server

Reboot a server (eq/reboot). Interrupts services during reboot. Requires confirm=true. Async: response includes a callback key for check_task.

ParameterTypeDescription
confirm *booleanRequired confirmation. Without confirm=true the call is rejected.
id *integerServer 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.

ParameterTypeDescription
deploy_period *stringBilling period
location_name *stringLocation: NL/US/FI/DE/IS/TR/UK/ES/IT/PL/CH
os_id *integerOS ID from list_os
preset *stringPreset ID or name from list_presets (e.g. 108 or vm.pico)
root_pass *stringRoot password: min. 8 chars, uppercase, digit, special char (not @ or #)
traffic_plan *integerTraffic plan ID from list_traffic_plans
confirmbooleanRequired (=true) for a real order
deploy_notifybooleanEmail notification when deploy finishes (recommended true)
dry_runbooleanDefault true: validate parameters without placing an order or charging
hostnamestringHostname; default is generated from location and ID
own_osinteger1 — do not install OS (manual install)
post_install_callbackstringCallback URL after deploy
post_install_scriptstringScript run after deploy
promocodestringDiscount promocode
soft_idintegerSoftware ID from list_software (optional)
ssh_keystringPublic 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.

ParameterTypeDescription
confirm *booleanRequired (=true) to start reinstall
hostname *stringCurrent server hostname — confirms the correct server is selected
id *integerServer ID
os_id *integerNew OS ID from list_os (0 + own_os=1 — no OS install)
root_pass *stringNew root password
deploy_notifyboolean
own_osinteger1 — do not install OS
post_install_scriptstring
soft_idintegerSoftware ID from list_software
ssh_keystringPublic 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.

ParameterTypeDescription
action *stringResource action, e.g.: list
confirm *booleanRequired confirmation. Without confirm=true the call is rejected.
resource *stringInvAPI resource without .php, e.g.: iso, s3, rhr, eq, net, whmcs
authbooleanInject session token (defaults to true)
paramsobjectCall parameters as an object; nested objects become params[...]