cURL
curl --request POST \ --url https://api.simpleemailapi.dev/v1.DomainService/AddDomain \ --header 'Authorization: Bearer <token>' \ --header 'Connect-Protocol-Version: <connect-protocol-version>' \ --header 'Content-Type: application/json' \ --data ' { "domain": "<string>" } '
{ "domain": { "id": "<string>", "domain": "<string>", "status": "DOMAIN_STATUS_UNSPECIFIED", "region": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "lastCheckedAt": "2023-11-07T05:31:56Z", "summary": { "message": "<string>", "nextAction": "<string>", "recordsPending": 123, "recordsConfigured": 123, "canSend": true, "canReceive": true }, "records": { "dkimRecords": [ { "type": "<string>", "name": "<string>", "value": "<string>", "priority": 123, "recordType": "RECORD_TYPE_UNSPECIFIED", "status": "RECORD_STATUS_UNSPECIFIED", "nameShort": "<string>", "discoveredValue": "<string>", "instructions": "<string>" } ], "spfRecord": { "type": "<string>", "name": "<string>", "value": "<string>", "priority": 123, "recordType": "RECORD_TYPE_UNSPECIFIED", "status": "RECORD_STATUS_UNSPECIFIED", "nameShort": "<string>", "discoveredValue": "<string>", "instructions": "<string>" }, "dmarcRecord": { "type": "<string>", "name": "<string>", "value": "<string>", "priority": 123, "recordType": "RECORD_TYPE_UNSPECIFIED", "status": "RECORD_STATUS_UNSPECIFIED", "nameShort": "<string>", "discoveredValue": "<string>", "instructions": "<string>" }, "mxRecords": [ { "type": "<string>", "name": "<string>", "value": "<string>", "priority": 123, "recordType": "RECORD_TYPE_UNSPECIFIED", "status": "RECORD_STATUS_UNSPECIFIED", "nameShort": "<string>", "discoveredValue": "<string>", "instructions": "<string>" } ], "mailFromRecords": [ { "type": "<string>", "name": "<string>", "value": "<string>", "priority": 123, "recordType": "RECORD_TYPE_UNSPECIFIED", "status": "RECORD_STATUS_UNSPECIFIED", "nameShort": "<string>", "discoveredValue": "<string>", "instructions": "<string>" } ] } }, "message": "<string>" }
Register a new domain for sending. Returns the DNS records you need to add to your DNS provider (e.g. Cloudflare, GoDaddy).
API key authentication. Sign up on the dashboard, create a workspace, and grab your API key (starts with em_). Include it in the Authorization header as: Bearer em_live_xxxxx
em_
Define the version of the Connect protocol
1
Define the timeout, in ms
Success
A sending domain.
Show child attributes