POST
/
domains
cURL
curl --request POST \
  --url http://app.dmarceye.com/api/domains \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "<string>"
}'
{
  "domain": "<string>",
  "active": true,
  "dmarc_record": "v=DMARC1; p=reject; rua=mailto:foo@bar.baz;",
  "dmarc_policy": "reject",
  "created_at": "2024-06-10T19:55:26+00:00",
  "updated_at": "2024-06-10T19:55:26+00:00"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Domain to add to your account

domain
string
required

Domain name

Response

domain response

domain
string
required

Domain name

active
boolean

Indication of active domain

Example:

true

dmarc_record
string<string>

Current DMARC record of the domain

Example:

"v=DMARC1; p=reject; rua=mailto:foo@bar.baz;"

dmarc_policy
string<string>

Current DMARC policy

Example:

"reject"

created_at
string<date-time>

Created at timestamp (RFC3339)

Example:

"2024-06-10T19:55:26+00:00"

updated_at
string<date-time>

Updated at timestamp (RFC3339)

Example:

"2024-06-10T19:55:26+00:00"