API

MailboxDomain

The domains used for mail: list them, get one's DNS configuration, or check it (validate).

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /mailbox/domains/{domain}/validate create Accepted
GET /mailbox/domains list OK
GET /mailbox/domains/{domain} load OK

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

mailbox_domains, err := client.MailboxDomain(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailbox_domains)
mailbox_domain, err := client.MailboxDomain(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailbox_domain)

Lua

Construct client as shown in the Lua setup, then call the operations:

local mailbox_domains, err = client:MailboxDomain():list()
local mailbox_domain, err = client:MailboxDomain():load({ domain = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$mailbox_domains = $client->MailboxDomain()->list();
$mailbox_domain = $client->MailboxDomain()->load(["domain" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

mailbox_domains = client.MailboxDomain().list()
mailbox_domain = client.MailboxDomain().load({"domain": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

mailbox_domains = client.MailboxDomain.list()
mailbox_domain = client.MailboxDomain.load({ "domain" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const mailbox_domains = await client.MailboxDomain().list()
const mailbox_domain = await client.MailboxDomain().load({ domain: "example" })

Fields

Field Type Required Description
antispam boolean Yes Antispam
configuration array Yes Configuration
date_last_validation string No Date Last Validation
dkim boolean Yes Dkim
fqdns array Yes Fqdns
internal boolean Yes Internal
is_livedns boolean Yes Is Livedns
mx boolean Yes Mx
owner object Yes Owner
spf boolean Yes Spf
txt boolean Yes Txt

create

POST /mailbox/domains/{domain}/validate

Operation ID: postMailboxDomainsDomainValidate.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
records_to_validate array of string Yes

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

list

GET /mailbox/domains

Operation ID: getMailboxDomains.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
page query integer No
per_page query integer No

Responses

200: OK

application/json

Property Type Required Description
[].fqdns array of any Yes
[].owner object Yes
[].owner.id string Yes
[].owner.name string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /mailbox/domains/{domain}

Operation ID: getMailboxDomainsDomain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
antispam boolean Yes
configuration array of object Yes
configuration[].key string Yes
configuration[].values array of string Yes
date_last_validation string (date-time) No
dkim boolean Yes
internal boolean Yes
is_livedns boolean Yes
mx boolean Yes
spf boolean Yes
txt boolean Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes