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/remove_override_features_for_user
- A server running WHM.
https://whm-server.tld:2087/json-api/remove_override_features_for_user
- 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/remove_override_features_for_user?features=%5B%22sslinstall%22%2C%22videotut%22%5D&user=username'Response
application/json
{ "metadata": { "command": "remove_override_features_for_user", "reason": "OK", "result": 1, "version": 1 } }
Request
This function checks whether a user has access to a feature on a feature list.
Security
BasicAuth
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_user_has_feature
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_user_has_feature
- 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/verify_user_has_feature?feature=sslinstall&user=username'Response
application/json
{ "data": { "has_feature": 1, "query_feature": "sslinstall" }, "metadata": { "command": "verify_user_has_feature", "reason": "OK", "result": 1, "version": 1 } }