WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function calls the WHM API 1 send_test_posturl function for your specified POST notification URLs. Users can specify POST notification URLs in the Contact Information section of WHM's Basic WebHost Manager Setup interface (WHM >> Home >> Server Configuration >> Basic WebHost Manager Setup).
Note:
If the Contact Information section of WHM's Basic WebHost Manager Setup interface (Home >> Server Configuration >> Basic WebHost Manager Setup) contains multiple POST URLs, the function will return an array that contains the results for each URL.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_posturl_access
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_posturl_access
- 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_posturl_access{ "data": { "results": [ … ] }, "metadata": { "command": "verify_posturl_access", "reason": "OK", "result": 1, "version": 1 } }
Request
This function calls the WHM API 1 send_test_pushbullet_note function with the system's specified Pushbullet™ accounts. You can specify Pushbullet accounts in the Contact Information section of WHM's Basic WebHost Manager Setup interface (Home >> Server Configuration >> Basic WebHost Manager Setup).
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_pushbullet_access
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_pushbullet_access
- 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_pushbullet_access{ "data": { "results": [ … ] }, "metadata": { "command": "verify_pushbullet_access", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/verify_slack_access
- A server running WHM.
https://whm-server.tld:2087/json-api/verify_slack_access
- 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_slack_access{ "data": { "results": [ … ] }, "metadata": { "command": "verify_slack_access", "reason": "OK", "result": 1, "version": 1 } }