WHM API 1
WHM API 1 is the HTTP API for server-wide and reseller-level operations on a cPanel & WHM server: creating, suspending, restoring and terminating cPanel accounts, managing hosting packages and feature lists, DNS and DNSSEC, AutoSSL and certificate installation, backups and backup destinations, transfers, ModSecurity, cPHulk and API tokens. 625 operations served at /json-api/{function} on ports 2087 (secure) and 2086, or 443 through a service subdomain. Every call requires api.version=1 and an 'Authorization: whm :' header; every call returns HTTP 200 with the outcome in metadata.result.
Operations 625
Showing the first 250 of 625. The full set is in the contract, and via get_provider_operations.
GET
/allow_all_whm_root_access
Clear all CIDR restrictions to login to cPanel & WHM with the root password.
#
GET
/cpgreylist_list_entries_for_common_mail_provider
Return Greylisting IP addresses of mail providers
#
GET
/cpgreylist_trust_entries_for_common_mail_provider
Add mail provider to Greylisting trusted hosts
#
GET
/cpgreylist_untrust_entries_for_common_mail_provider
Add mail provider to Greylisting non-trusted hosts
#
Documentation
📖
Documentation
https://api.docs.cpanel.net/whm/introduction/
📖
APIReference
https://api.docs.cpanel.net/specifications/whm.openapi
📖
Authentication
https://api.docs.cpanel.net/whm/tokens/