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 checks whether the server uses ProFTPD or Pure-FTPd.
Important:
When you disable the FTP role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/server_name
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/server_name
- 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/server_name{ "apiversion": 3, "func": "server_name", "module": "Ftp", "result": { "data": "pure-ftpd", "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function enables or disables anonymous FTP logins.
Important:
When you disable the FTP role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/set_anonymous_ftp
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/set_anonymous_ftp
- 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/set_anonymous_ftp?set=0'{ "apiversion": 3, "func": "set_anonymous_ftp", "module": "Ftp", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function enables or disables inbound anonymous FTP transfers.
Important:
When you disable the FTP role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Ftp/set_anonymous_ftp_incoming
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Ftp/set_anonymous_ftp_incoming
- 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/set_anonymous_ftp_incoming?set=0'{ "apiversion": 3, "func": "set_anonymous_ftp_incoming", "module": "Ftp", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }