1

Topic: REST Api for user account creation

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Sir i want to know about can you provide api for creating user mail account ? and for that pro account is needed ?
waiting for your response.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: REST Api for user account creation

The RESTful API is only available in the iRedAdmin-Pro license, not the free edition.
Yes you have to buy a license if you need the API:
https://www.iredmail.org/pricing.html

3

Re: REST Api for user account creation

ok thanks .
and when i get pro account . can we add user account programmatically (php) using api ?

4

Re: REST Api for user account creation

sir where to get an api . i have pro account . i dont want documentation . as i know about this .

5

Re: REST Api for user account creation

ahmedkhiljiys wrote:

can we add user account programmatically (php) using api ?

Sure.
The API document is here:
https://docs.iredmail.org/iredadmin-pro … l.api.html

6

Re: REST Api for user account creation

PunBB bbcode test
sir you can in pic. i have pro account and i also enabled api in lib settings.py.
and when i run the script for add mail account through php . then it gives me not found error.plz
help . kindly do not copy paste iredmail documentation link . i already read and followed as per instruction. but no result .
this is my site for iredmail . https://mail.solmaxrep.com/iredadmin/ and i think api url will be
https://mail.solmaxrep.com/iredadmin/api/ right ? i have tried but cant access and it gives me not found error.

7

Re: REST Api for user account creation

For the login, you should send http POST to URL: https://mail.solmaxrep.com/iredadmin/api/login
Like this on command line:

curl -X POST -d "username=<mail>&password=<password>" https://mail.solmaxrep.com/iredadmin/api/login

The document contains the URLs you should use:
https://docs.iredmail.org/iredadmin-pro … html#login