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 retrieves an email account's Webmail settings.
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/get_webmail_settings
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/get_webmail_settings
- 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/cpanel.openapi/Email/get_webmail_settings?account=user%40example.com'{ "apiversion": 3, "func": "get_webmail_settings", "module": "Email", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
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
- 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/cpanel.openapi/Email/hold_outgoing?email=username%40example.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
- 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/cpanel.openapi/Email/list_auto_responders?domain=example.com®ex=user'{ "apiversion": 3, "func": "list_auto_responders", "module": "Email", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }