UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
Request
This function sets Exim's queue to not send outgoing mail from an email account.
Notes:
- To send all mail from the queue, use the UAPI
Email::release_outgoingfunction. - To reject outgoing mail and not place mail in a queue, use the UAPI
Email::suspend_outgoingfunction. - This function does not hold local outgoing mail.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/hold_outgoing
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/hold_outgoing
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
Email \
hold_outgoing \
email='username@example.com'{ "apiversion": 3, "func": "hold_outgoing", "module": "Email", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function lists a domain's autoresponders.
Important:
When you disable the Receive Mail role, the system disables this function.
A Perl Compatible Regular Expression (PCRE) that filters the results.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/list_auto_responders
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/list_auto_responders
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
Email \
list_auto_responders \
domain='example.com'{ "apiversion": 3, "func": "list_auto_responders", "module": "Email", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function retrieves a domain's default address.
Important:
When you disable the Receive Mail role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/list_default_address
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/list_default_address
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
Email \
list_default_address \
user='user'{ "apiversion": 3, "func": "list_default_address", "module": "Email", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }