Scaleway logo
Mailbox API

This section shows how to list, create and delete mailbox domains.


List domains in an organization.

GET
https://api.scaleway.com
/mailbox/v1alpha1/domains

The return list can be filtered with request parameters.

List domains in an organization. › query Parameters

Enum values:
created_at_desc
created_at_asc
updated_at_desc
updated_at_asc
name_desc
name_asc
mailbox_total_count_desc
mailbox_total_count_asc
Default: created_at_desc
page
​integer · int32
page_size
​integer · uint32
project_id
​string

(UUID format)

Enum values:
unknown_status
creating
waiting_validation
validating
validation_failed
provisioning
ready
deleting
search
​string

List domains in an organization. › Responses

200
total_count
​integer · uint64

Number of domains that match the request (without pagination).

Single page of domains matching the requested criteria.


Register a domain in a project.

POST
https://api.scaleway.com
/mailbox/v1alpha1/domains

You must specify a project_id and a domain_name to register a domain in a specific Project.

Register a domain in a project. › Request Body

project_id
​string

ID of the project to which the domain belongs. (UUID format)

name
​string

Fully qualified domain name.

Register a domain in a project. › Responses

200
id
​string

Unique identifier of the domain. (UUID format)

project_id
​string

ID of the Project to which the domain belongs. (UUID format)

organization_id
​string

ID of the Organization to which the domain belongs. (UUID format)

name
​string

Fully qualified domain name.

Status of the domain.

Enum values:
unknown_status
creating
waiting_validation
validating
validation_failed
provisioning
ready
deleting
Default: unknown_status
mailbox_total_count
​integer · uint64

Number of mailboxes of the domain.

created_at
​string | null · date-time

Date and time of domain creation. (RFC 3339 format)

updated_at
​string | null · date-time

Date and time of the domain's last update. (RFC 3339 format)

webmail_url
​string

URL of the domain's webmail.

imap_url
​string

URL of the domain's IMAP service.

pop3_url
​string

URL of the domain's POP3 service.

smtp_url
​string

URL of the domain's SMTP service.


Get a domain by its ID.

GET
https://api.scaleway.com
/mailbox/v1alpha1/domains/{domain_id}

Get a domain by its ID. › path Parameters

domain_id
​string · required

ID of the domain to get. (UUID format)

Get a domain by its ID. › Responses

200
id
​string

Unique identifier of the domain. (UUID format)

project_id
​string

ID of the Project to which the domain belongs. (UUID format)

organization_id
​string

ID of the Organization to which the domain belongs. (UUID format)

name
​string

Fully qualified domain name.

Status of the domain.

Enum values:
unknown_status
creating
waiting_validation
validating
validation_failed
provisioning
ready
deleting
Default: unknown_status
mailbox_total_count
​integer · uint64

Number of mailboxes of the domain.

created_at
​string | null · date-time

Date and time of domain creation. (RFC 3339 format)

updated_at
​string | null · date-time

Date and time of the domain's last update. (RFC 3339 format)

webmail_url
​string

URL of the domain's webmail.

imap_url
​string

URL of the domain's IMAP service.

pop3_url
​string

URL of the domain's POP3 service.

smtp_url
​string

URL of the domain's SMTP service.


Delete a domain by its ID.

DELETE
https://api.scaleway.com
/mailbox/v1alpha1/domains/{domain_id}

Delete a domain by its ID. › path Parameters

domain_id
​string · required

ID of the domain to delete. (UUID format)

Delete a domain by its ID. › Responses

200
id
​string

Unique identifier of the domain. (UUID format)

project_id
​string

ID of the Project to which the domain belongs. (UUID format)

organization_id
​string

ID of the Organization to which the domain belongs. (UUID format)

name
​string

Fully qualified domain name.

Status of the domain.

Enum values:
unknown_status
creating
waiting_validation
validating
validation_failed
provisioning
ready
deleting
Default: unknown_status
mailbox_total_count
​integer · uint64

Number of mailboxes of the domain.

created_at
​string | null · date-time

Date and time of domain creation. (RFC 3339 format)

updated_at
​string | null · date-time

Date and time of the domain's last update. (RFC 3339 format)

webmail_url
​string

URL of the domain's webmail.

imap_url
​string

URL of the domain's IMAP service.

pop3_url
​string

URL of the domain's POP3 service.

smtp_url
​string

URL of the domain's SMTP service.


Get domain records by its ID.

GET
https://api.scaleway.com
/mailbox/v1alpha1/domains/{domain_id}/records

Get domain records by its ID. › path Parameters

domain_id
​string · required

(Optional) ID of the domain in which to get the records. (UUID format)

Get domain records by its ID. › Responses

200

Record designed to automatically configure an email client with the appropriate mail server settings using a standardized XML file format.

Record designed to automate the discovery of server settings to configure email clients like Outlook.

Record that allows clients to interact with calendar data stored on a server.

Record that allows clients to interact with contact data stored on a server.

Record that allows the DKIM email authentication method to be employed to verify the authenticity of an email message.

Record that provides a mechanism for email receivers to determine if incoming messages are legitimate and were sent from authorized sources.

Record that provides a unique token to validate a domain ownership.

Record that allows accessing the mailbox with the IMAP protocol.

Record that directs emails to a mail server.

Record that allows accessing the mailbox with the POP3 protocol.

Record that lists all the servers authorized to send emails from a particular domain.

Record that allows the use of the SMTP submission mechanism.


Validate domain records by its ID.

POST
https://api.scaleway.com
/mailbox/v1alpha1/domains/{domain_id}/validate-records

Validate domain records by its ID. › path Parameters

domain_id
​string · required

ID of the domain with which to validate the records. (UUID format)

Validate domain records by its ID. › Request Body

Validate domain records by its ID. › Responses

No data returned