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/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/ftp_exists
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/ftp_exists
- 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/Ftp/ftp_exists?user=us_chickens&domain=example.com'{ "apiversion": 3, "func": "ftp_exists", "module": "Ftp", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function checks an FTP account's quota.
Important:
When you disable the FTP role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/get_quota
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/get_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/Ftp/get_quota?account=user1&domain=example.com'{ "apiversion": 3, "func": "get_quota", "module": "Ftp", "result": { "data": "unlimited", "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function retrieves the cPanel account's FTP welcome message.
Important:
When you disable the FTP role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/get_welcome_message
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/get_welcome_message
- 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/Ftp/get_welcome_message{ "apiversion": 3, "func": "get_welcome_message", "module": "Ftp", "result": { "data": "Greetings, Professor Falken.", "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }