Create Email account with API
I try to create an email account by using API i follow the documentation but when i call API the status is 200 but the user not created in the accounts
https://api.docs.cpanel.net/openapi/cpanel/operation/add_pop/
Any one try to create email account by URL request
-
Hello nada gamal
You can try to create email account with the following command :
uapi --user=cpusername Email add_pop email=emailuser password=P@$$w0rd quota=0 domain=example.com skip_update_db=1
1 -
Could you let us know the *exact* call you are using to try and create the email account? Just make sure to use a generic IP address or domain name in your example.
0 -
Thanks for the additional details. You should get something like this in the browser that shows things are working well:
{"warnings":null,"data":"apitest+domain.com","errors":null,"metadata":{},"status":1,"messages":[""]}
The "status:1" is the important section indicating this worked successfully. Are you seeing that? If so, it would likely be best to open a ticket so we can troubleshoot this directly on your machine.
0 -
thanks all for your help, the problem solved the problem was in permission.
0 -
I'm glad you were able to get that working!
0
Please sign in to leave a comment.
Comments
6 comments