Create email domain

Adds a sending domain. The response lists the DNS records to publish; verify the domain once they are in place.

POST
/email/domains

Adds a sending domain. The response lists the DNS records to publish; verify the domain once they are in place.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Request Body

application/json
  1. body

Adds a sending domain by name.

name*string

A domain you control. A dedicated subdomain such as mail.example.com keeps your existing mail untouched.

Response Body

The domain was added. Publish its records, then verify it.

application/json
  1. response
api_version*string
data*

A domain with the records it must publish.

Example Request
curl -X POST 'https://api.relevate.app/email/domains' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
Example Response
{
  "api_version": "string",
  "data": {
    "created_at": "2019-08-24T14:15:22Z",
    "dkim_selector": "string",
    "dmarc_mode": "string",
    "id": "string",
    "last_checked_at": "2019-08-24T14:15:22Z",
    "name": "string",
    "normalized_name": "string",
    "ownership_code_expires_at": "2019-08-24T14:15:22Z",
    "ownership_verified_at": "2019-08-24T14:15:22Z",
    "receiving_enabled": true,
    "receiving_verified_at": "2019-08-24T14:15:22Z",
    "records": [
      {
        "detail": "string",
        "found": [
          "string"
        ],
        "name": "string",
        "priority": 0,
        "purpose": "string",
        "status": "string",
        "type": "string",
        "value": "string"
      }
    ],
    "status": "string",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}