CyberPanel Community

How to Create New Email Users with Api?

ki
kimo #1

Hello googling how to Create Emails users in cyber panel via api Post Request couldn’t find anything, is it possible to make this happen and how ?

Trying to create new user / new email for my domain via api

4 replies
ki
kimo #3

hi yes api enabled on the panel , just don’t know what commands to use in post request and api key

Su
Sai ujwal #4

Hey, did you find how to use cyberpanel api?

JS
Jesus Suarez #5

Hi, To create an email account in CyberPanel using the API, you can do it as follows. Run the following curl command and adjust the values as needed:

curl --location 'https://your_cyberpanel_IP:8090/cloudAPI/' \
--header 'Authorization: Basic f1c60b2b7911bd29b1.....' \
--data '{
    "serverUserName": "admin",
    "controller": "submitEmailCreation",
    "domain": "YOUR_DOMAIN_EMAIL.com",
    "username": "test",
    "passwordByPass": "Secret123+"
}'

To obtain the token, go to CyberPanel > Databases > phpMyAdmin, open the cyberpanel database, then look for the table loginSystem_administrator. Copy the value in the token field and replace it in the command above. (Video: https://youtu.be/HPCTDdEJ_gk?t=196 )

When you execute it, you should get an output similar to:

{"status": 1, "createEmailStatus": 1, "error_message": "None"}

This confirms the email account was created successfully.

I’ve just published this project:
GitHub - jesussuarz/cyberpanel-api-bulk-create-emails: Bulk mailbox creation utility for CyberPanel via cloudAPI.

It’s a simple but powerful script that allows you to create a large number of email accounts in bulk using the CyberPanel API.

You just need to provide a .txt file with the email list, and the script will handle the rest automatically — saving you a lot of time and manual work.

I hope this helps you create email accounts in bulk.
If you need professional assistance, feel free to contact me:

Sign in to reply