To create a mailbox, you must first get a list of domains that you can use. This is done in the “Get domain” breakpoint request. In response, you will receive a json with a list of possible domains. Select the desired domain from the list.
Specify in the “domain” parameter the domain that you selected in the previous step when requesting the “Get domain list” breakpoint. This parameter is required.
If when generating a mailbox you want to use a specific mailbox login (what is before “@”) - specify this in the “email” parameter. Leave this parameter blank to select a random login.
In the “email” parameter, specify the full name of the mailbox, including the domain (example: email@afeg.ru) - this is a required parameter.