whyicantgetin
New Pleskian
Hi,
I have issue on REST API Plesk, I already configure on panel.ini to enable API
Like this
For API keys I use this command: plesk bin secret_key -c -ip-address 203.0.xxx.xx
curl -k -X POST -H "X-API-Key: <API KEYS>" -H "Content-Type: application/json" -H "Accept: application/json" "https://<IP>:8443/api/v2/cli/mail/call" -d '{ "params": ["--create", "<EMAIL>, "-passwd", "<PSD>", "-mailbox", "true"]}'
I get unauthorized message when using cURL online. On Command Prompt, I got "curl: option -mailbox,: expected a proper numerical parameter" message...
I try run https://58.185.xxx.xxx:8443/api/v2/swagger.yml and get the data..
Can you help me? I want to create mail account with REST API.
Thank you
I have issue on REST API Plesk, I already configure on panel.ini to enable API
Like this
[api]
enabled=on
For API keys I use this command: plesk bin secret_key -c -ip-address 203.0.xxx.xx
curl -k -X POST -H "X-API-Key: <API KEYS>" -H "Content-Type: application/json" -H "Accept: application/json" "https://<IP>:8443/api/v2/cli/mail/call" -d '{ "params": ["--create", "<EMAIL>, "-passwd", "<PSD>", "-mailbox", "true"]}'
I get unauthorized message when using cURL online. On Command Prompt, I got "curl: option -mailbox,: expected a proper numerical parameter" message...
I try run https://58.185.xxx.xxx:8443/api/v2/swagger.yml and get the data..
Can you help me? I want to create mail account with REST API.
Thank you
Last edited by a moderator: