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_featurelists_by_package_types
- A server running WHM.
https://whm-server.tld:2087/json-api/get_featurelists_by_package_types
- 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_featurelists_by_package_typesResponse
application/json
{ "data": { "package_types_feature_lists": { … } }, "metadata": { "command": "get_featurelists_by_package_types", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/update_featurelist
- A server running WHM.
https://whm-server.tld:2087/json-api/update_featurelist
- 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/update_featurelist?featurelist=TheBlackLagoon&feature+name=1'Response
application/json
{ "data": { "featurelist": "TheBlackLagoon", "invalid_features": [ … ], "updated_features": { … } }, "metadata": { "command": "update_featurelist", "reason": "OK", "result": 1, "version": 1 } }