Skip to main content
POST
/
mailbox_domains
Create a mailbox domain
curl --request POST \
  --url https://api.sandbox.monite.com/v1/mailbox_domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "domain": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dns_records": {
    "receiving_dns_records": [
      {
        "is_active": true,
        "record_type": "TXT",
        "valid": "<string>",
        "value": "<string>",
        "name": "<string>",
        "record_purpose": "DKIM"
      }
    ],
    "sending_dns_records": [
      {
        "is_active": true,
        "record_type": "TXT",
        "valid": "<string>",
        "value": "<string>",
        "name": "<string>",
        "record_purpose": "DKIM"
      }
    ]
  },
  "domain": "<string>",
  "status": "<string>",
  "dedicated_ip": "<string>",
  "last_updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required

Body

application/json
domain
string<hostname>
required

The domain name, such as mail.mycompany.com. Can contain only alphanumeric characters (A..Z a..z 0..9), dots (.), and hyphens (-). Each segment of the domain name must start and end with either a letter or a digit.

Response

Successful Response

id
string<uuid>
required

Entry UUID

dns_records
object
required
domain
string<hostname>
required

The domain name.

status
string
required
dedicated_ip
string

A dedicated IP address assigned to this mailbox and used to send outgoing email.

last_updated_at
string<date-time>

The time the domain was updated for the last time