Create a sending domain
POST /sender_domains
/sender_domainsRegisters a domain to send from. You give an email address of that domain: Easymailing sends it a confirmation email to prove ownership (or confirms at once if that address is already a confirmed sender). The response lists the DNS records to create at your DNS provider.
When to use: To start authenticating your own domain. Then confirm the email, create the DNS records and call authenticate_sender_domain. Free email providers (such as gmail.com) are not accepted.
When not to use: To add a single sender address without authenticating a domain use create_sender.
Side effects: A confirmation email is sent to email, unless a confirmed sender with that address already exists, in which case the domain is verified immediately.
Permissions: Requires the manager role or higher, or the account.integrations.manage capability.
Value for the X-Auth-Token header parameter.
In: header
The new SenderDomain resource
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 POST "https://api.easymailing.com/sender_domains" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "links_aligned": true, "tracking_subdomain": "string" }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "domain": "string", "email": "user@example.com", "verified": true, "authenticated": true, "aligned": true, "links_aligned": true, "subdomain": "string", "tracking_subdomain": "string", "authentication_info_url": "http://example.com", "dns_records": [ { "type": "CNAME", "name": "string", "host": "string", "value": "string", "purpose": "DKIM" } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}