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
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
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
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
update_featurelist \
featurelist='TheBlackLagoon'Response
application/json
{ "data": { "featurelist": "TheBlackLagoon", "invalid_features": [ … ], "updated_features": { … } }, "metadata": { "command": "update_featurelist", "reason": "OK", "result": 1, "version": 1 } }
Request
DEPRECATED: Use get_featurelists instead.
This function lists the authenticated user's available feature lists.
Notes:
- This function is deprecated because it treats a lack of available feature lists as an error for non-admin resellers, which is incorrect behavior.
- When you call this function with the
rootaccount, it returns all feature lists on the server. - When you call this function with a reseller account, it only returns feature lists that the account owns.
Security
BasicAuth
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_available_featurelists
- A server running WHM.
https://whm-server.tld:2087/json-api/get_available_featurelists
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_available_featurelistsResponse
application/json
{ "metadata": { "command": "get_available_featurelists", "reason": "OK", "result": 1, "version": 1 }, "data": { "available_featurelists": [ … ] } }