WHM API.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
A server running WHM.
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_countries_with_known_ip_ranges
- A server running WHM.
https://whm-server.tld:2087/json-api/get_countries_with_known_ip_ranges
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_countries_with_known_ip_rangesResponse
application/json
{ "data": { "countries": [ … ] }, "metadata": { "command": "get_countries_with_known_ip_ranges", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_cphulk_brutes
- A server running WHM.
https://whm-server.tld:2087/json-api/get_cphulk_brutes
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_cphulk_brutesResponse
application/json
{ "data": { "brutes": [ … ] }, "metadata": { "command": "get_cphulk_brutes", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_cphulk_excessive_brutes
- A server running WHM.
https://whm-server.tld:2087/json-api/get_cphulk_excessive_brutes
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_cphulk_excessive_brutesResponse
application/json
{ "data": { "excessive_brutes": [ … ] }, "metadata": { "command": "get_cphulk_excessive_brutes", "reason": "OK", "result": 1, "version": 1 } }