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/
Query
The plugin-based feature's name in the local /var/cpanel/plugins/ directory.
Important: You can only use this function to disable the following features:
- Server Monitoring (Powered by 360 Monitoring).
- WebPros AI Application Builder for cPanel.
Enum"cpanel-monitoring-plugin""cpanel-pal-plugin"
Example: plugin=cpanel-monitoring-plugin
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/EcosystemFeatures/local_disable
- A server running WHM.
https://whm-server.tld:2087/json-api/EcosystemFeatures/local_disable
- 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/EcosystemFeatures/local_disable?plugin=cpanel-monitoring-plugin&namespace=Whostmgr'Response
application/json
{ "metadata": { "command": "local_disable", "reason": "OK", "result": 1, "version": 1 } }
Query
The plugin-based feature's name in the local /var/cpanel/plugins/ directory.
Important: You can only use this function to enable the following features:
- Server Monitoring (Powered by 360 Monitoring).
- WebPros AI Application Builder for cPanel.
Enum"cpanel-monitoring-plugin""cpanel-pal-plugin"
Example: plugin=cpanel-monitoring-plugin
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/EcosystemFeatures/local_enable
- A server running WHM.
https://whm-server.tld:2087/json-api/EcosystemFeatures/local_enable
- 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/EcosystemFeatures/local_enable?plugin=cpanel-monitoring-plugin&namespace=Whostmgr'Response
application/json
{ "metadata": { "command": "local_enable", "reason": "OK", "result": 1, "version": 1 } }