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/
The email account's domain. Defaults to the cPanel account's main domain.
The maximum amount of disk space that the new email account may use. Defaults to the system value.
- A positive integer that represents the maximum amount of disk space, in megabytes (MB).
Note:
You cannot enter a value that exceeds the maximum email quota.
0orunlimited— The account possesses unlimited disk space.
If the email account's quota value is set higher (or unlimited) than the account's max quota, the account's max quota will be applied instead of the value entered.
Note:
This value is only available to users without a maximum email account quota.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/edit_pop_quota
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/edit_pop_quota
- 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/edit_pop_quota?domain=example.com&email=user"a=500'{ "apiversion": 3, "func": "edit_pop_quota", "module": "Email", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function retrieves autoresponder information.
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_auto_responder
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/get_auto_responder
- 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_auto_responder?email=user&temp_charset=utf-8'{ "apiversion": 3, "func": "get_auto_responder", "module": "Email", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function retrieves an email account's client settings.
Important:
When you disable the Receive Mail role, the system disables this function.
The email address for which to send client settings.
Note:
This parameter defaults to the system default email account.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/get_client_settings
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/get_client_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_client_settings?account=username%40example.com'{ "apiversion": 3, "func": "get_client_settings", "module": "Email", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }