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_feature_names
- A server running WHM.
https://whm-server.tld:2087/json-api/get_feature_names
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_feature_namesResponse
application/json
{ "data": { "feature": [ … ] }, "metadata": { "command": "get_feature_names", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_featurelist_data
- A server running WHM.
https://whm-server.tld:2087/json-api/get_featurelist_data
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_featurelist_data \
featurelist='Mail Only'Response
application/json
{ "data": { "featurelist": "Mail Only", "features": [ … ] }, "metadata": { "command": "get_featurelist_data", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_featurelists
- A server running WHM.
https://whm-server.tld:2087/json-api/get_featurelists
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_featurelistsResponse
application/json
{ "data": { "featurelists": [ … ] }, "metadata": { "command": "get_featurelists", "reason": "OK", "result": 1, "version": 1 } }