Brivio API reference
Email domains

Register a sending domain and get the DNS records to publish (scope: email_domains:write)

Returns the ownership TXT (`_brivio.<domain>`), SPF, DKIM selector record(s), DMARC and — when hosted — MX. Publish them, then call `/email-domains/{id}/verify`. 409 when the domain is already registered or claimed by another account; 503 when provisioning is not configured.

POST
/email-domains

Returns the ownership TXT (_brivio.<domain>), SPF, DKIM selector record(s), DMARC and — when hosted — MX. Publish them, then call /email-domains/{id}/verify. 409 when the domain is already registered or claimed by another account; 503 when provisioning is not configured.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Request Body

application/json
  1. body
domain*string
from_local_part?string
Default"no-reply"

Response Body

OK

application/json
  1. response
data*
error*null
curl -X POST "https://example.com/email-domains" \  -H "Content-Type: application/json" \  -d '{    "domain": "acme.ro",    "from_local_part": "facturi"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "domain": "string",    "status": "pending",    "verified": true,    "from_local_part": "string",    "dkim_selector": "string",    "dns_records": [      {        "type": "TXT",        "name": "string",        "value": "string",        "status": "pending"      }    ],    "checks": {      "ownership": true,      "spf": true,      "dkim": true,      "dmarc": true,      "mx": true    },    "last_error": "string",    "verified_at": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "error": null}