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
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/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
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/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
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_cphulk_excessive_brutesResponse
application/json
{ "data": { "excessive_brutes": [ … ] }, "metadata": { "command": "get_cphulk_excessive_brutes", "reason": "OK", "result": 1, "version": 1 } }