• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Resolved Is possible handle mailboxes using NEW REST API v2?

Is possible handle mailboxes using new REST API v2?

  • No... it's still not possible ... wait a undefined time

    Votes: 0 0.0%

  • Total voters
    1

Fernando Ok

New Pleskian
Hi, I have a question which I think I already know the answer (not), but I want to be sure.

Ok, the question is if I can handle(create, edit, remove...) mailboxes using "New Remote Plesk REST API v2".

This new API is amazing and I am surprised that it does not have the capacity to manage something so basic ...


Regards from Spain ;)
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"jdoe@example.com\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname 'jdoe@example.com' complete",
"stderr": ""
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"jdoe@example.com\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname 'jdoe@example.com' complete",
"stderr": ""
Thank you very much!! ;)
 
Back
Top