UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
A server running cPanel.
https://{host}:{port}/execute/
Request
This function restores a user's ability to log in to their email account.
Note:
- To suspend a user's ability to log in, use the UAPI
Email::suspend_loginfunction. - To suspend incoming email for an account, use the UAPI
Email::suspend_incomingfunction.
Important:
When you disable the Receive Mail role, the system disables this function.
Security
BasicAuth
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/unsuspend_login
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/unsuspend_login
- 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/unsuspend_login?email=username%40example.com'Response
application/json
{ "apiversion": 3, "func": "unsuspend_login", "module": "Email", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/unsuspend_outgoing
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Email/unsuspend_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/unsuspend_outgoing?email=username%40example.com'Response
application/json
{ "apiversion": 3, "func": "unsuspend_outgoing", "module": "Email", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }