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_maximum_users
- A server running WHM.
https://whm-server.tld:2087/json-api/get_maximum_users
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_maximum_usersResponse
application/json
{ "data": { "users": 100 }, "metadata": { "command": "get_maximum_users", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_new_username
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_new_username
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
verify_new_username \
user='username'Response
application/json
{ "metadata": { "command": "verify_new_username", "reason": "OK", "result": 1, "version": 1 } }