Add a mailbox
This request is used for adding a mailbox for the domain.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/email/add
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&login=<mailbox username>
&password=<password>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. |
password | String | User's password. The password must:
|
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. |
password | String | User's password. The password must:
|
POST /api2/registrar/email/add
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
&login=<mailbox username>
&password=<password>
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. |
password | String | User's password. The password must:
|
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | The email address of the mailbox, in the format “username@domain.ru” or “username”. |
password | String | User's password. The password must:
|
Request example
POST /api2/admin/email/add HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&login=newlogin&password=1234567890
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&login=newlogin&password=1234567890' 'https://pddimp.yandex.ru/api2/admin/email/add'
POST /api2/admin/email/add HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com&login=newlogin&password=1234567890
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com&login=newlogin&password=1234567890' 'https://pddimp.yandex.ru/api2/admin/email/add'
Response structure
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
login | String | Email address of the mailbox. |
uid | Integer | Mailbox ID. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
login | String | Email address of the mailbox. |
uid | Integer | Mailbox ID. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|