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 lists a mailing list's administrators.
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_mailman_delegates
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/get_mailman_delegates
- 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_mailman_delegates?list=mylist'{ "apiversion": 3, "func": "get_mailman_delegates", "module": "Email", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function checks an account's administrative privileges on mailing lists.
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/has_delegated_mailman_lists
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/has_delegated_mailman_lists
- 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/has_delegated_mailman_lists?delegate=user%40example.com'{ "apiversion": 3, "func": "has_delegated_mailman_lists", "module": "Email", "result": { "data": 1, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
The domain to query. If you do not use this parameter, the function lists mailing lists for all of the cPanel account's domains.
A Perl Compatible Regular Expression (PCRE) that filters the results.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/list_lists
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/list_lists
- 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_lists?domain=example.com®ex=user'{ "apiversion": 3, "func": "list_lists", "module": "Email", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }