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/mail_sni_status
- A server running WHM.
https://whm-server.tld:2087/json-api/mail_sni_status
- 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/mail_sni_status?domain=example.com'Response
application/json
{ "data": { "enabled": 1 }, "metadata": { "command": "mail_sni_status", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/normalize_user_email_configuration
- A server running WHM.
https://whm-server.tld:2087/json-api/normalize_user_email_configuration
- 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/normalize_user_email_configuration?username=username'Response
application/json
{ "metadata": { "command": "normalize_user_email_configuration", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/rebuild_mail_sni_config
- A server running WHM.
https://whm-server.tld:2087/json-api/rebuild_mail_sni_config
- 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/rebuild_mail_sni_config?reload_dovecot=1'Response
application/json
{ "data": { "configs_built": [ … ], "success": 1 }, "metadata": { "command": "rebuild_mail_sni_config", "reason": "OK", "result": 1, "version": 1 } }