WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_unique_recipient_count_per_sender_for_user
- A server running WHM.
https://whm-server.tld:2087/json-api/get_unique_recipient_count_per_sender_for_user
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_unique_recipient_count_per_sender_for_user \
user='username' \
start_time='1550872800' \
end_time='1550923200'{ "data": { "payload": [ … ] }, "metadata": { "command": "get_unique_recipient_count_per_sender_for_user", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_unique_sender_recipient_count_per_user
- A server running WHM.
https://whm-server.tld:2087/json-api/get_unique_sender_recipient_count_per_user
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_unique_sender_recipient_count_per_user \
start_time='1550702383' \
end_time='1551192100'{ "data": { "payload": [ … ] }, "metadata": { "command": "get_unique_sender_recipient_count_per_user", "reason": "OK", "result": 1, "version": 1 } }
Request
This function retrieves the destination to which the system forwards a system account's email.
Note:
- Usually, the system sends notices about the server's problems and activity to the
rootaccount. - If you do not use the
suexecmodule, thenobodyuser receives bounce messages from email that CGI scripts send.
Important:
When you disable the Receive Mail role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_user_email_forward_destination
- A server running WHM.
https://whm-server.tld:2087/json-api/get_user_email_forward_destination
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_user_email_forward_destination \
user='root'{ "data": { "forward_to": [ … ] }, "metadata": { "command": "get_user_email_forward_destination", "reason": "OK", "result": 1, "version": 1 } }