Easymailing
Sending domains

Check the DNS of a sending domain

PUT /sender_domains/{uuid}/actions/authenticate

PUT/sender_domains/{uuid}/actions/authenticate

Looks up the DNS records of a verified domain (DKIM, mail server, DMARC and, with links_aligned, tracking) and marks the domain as authenticated when they are all right. The response says which checks passed (checks) and the values found (results). If any check fails, the domain is marked as NOT authenticated, even if it was authenticated before.

When to use: After creating the DNS records at your DNS provider, to verify them. Call it again if a check fails and you have corrected the records; DNS changes can take time to propagate.

When not to use: If the domain is not verified yet, confirm the email first (resend_sender_domain_verification).

Side effects: Changes the state of the domain on every call. When all checks pass: the domain becomes authenticated and aligned, campaigns from its addresses are signed with the domain's own DKIM and, if links_aligned is set and the tracking records are right, the SSL certificate of the tracking domain is requested in the background. When a check fails: the domain stops being authenticated, so campaigns lose the domain's own DKIM signature and, in accounts that must authenticate to send large volumes, campaigns of 1000 recipients or more are flagged as not sendable. Senders created later on an authenticated domain are confirmed on creation; existing ones are not changed.

Permissions: Requires the manager role or higher, or the account.integrations.manage capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the sending domain. Get it with list_sender_domains.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/sender_domains/7e4b2c90-1d58-4a3f-9b6e-c2f8a0d5e713/actions/authenticate" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{}'
{  "authenticated": true,  "checks": [    "string"  ],  "results": [    "string"  ]}