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/enable_authentication_provider
- A server running WHM.
https://whm-server.tld:2087/json-api/enable_authentication_provider
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
enable_authentication_provider \
service_name='cpaneld' \
provider_id='cpanelid'Response
application/json
{ "metadata": { "command": "enable_authentication_provider", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_available_authentication_providers
- A server running WHM.
https://whm-server.tld:2087/json-api/get_available_authentication_providers
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_available_authentication_providersResponse
application/json
{ "data": { "providers": [ … ] }, "metadata": { "command": "get_available_authentication_providers", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_provider_client_configurations
- A server running WHM.
https://whm-server.tld:2087/json-api/get_provider_client_configurations
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_provider_client_configurations \
service_name='cpaneld' \
provider_id='cpanelid'Response
application/json
{ "data": { "client_configurations": { … } }, "metadata": { "command": "get_provider_client_configurations", "reason": "OK", "result": 1, "version": 1 } }