Connect a domain
To use the Yandex.Mail for Domain features, sign up a domain and then verify the domain. The user who verifies a domain becomes the administrator of this domain. The administrator has full access to domain management, and can also assign proxies.
This request is used for signing up a domain.
The ways to verify a domain are described on the Yandex.Mail for Domain help page. If you delegated a domain to Yandex, you do not need to verify it.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/domain/register
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
POST /api2/registrar/domain/register
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
Request example
POST /api2/admin/domain/register HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com' 'https://pddimp.yandex.ru/api2/admin/domain/register'
POST /api2/admin/domain/register HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com' 'https://pddimp.yandex.ru/api2/admin/domain/register'
Response structure
Key | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
status | String | Domain status. Possible values:
|
stage | String | The key duplicates Possible values:
|
secrets | Object | Secret data of the verification file (or CNAME record). Included in the response if the status value is set to |
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:
|
Keys for the secrets object | ||
name | String | The secret part of the name of the verification file (or CNAME record). |
content | String | Secret content of the verification file. |
Key | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
status | String | Domain status. Possible values:
|
stage | String | The key duplicates Possible values:
|
secrets | Object | Secret data of the verification file (or CNAME record). Included in the response if the status value is set to |
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:
|
Keys for the secrets object | ||
name | String | The secret part of the name of the verification file (or CNAME record). |
content | String | Secret content of the verification file. |