Skip to main content
POST
/
v1.DomainService
/
VerifyDomain
Trigger DNS verification.
const options = {
  method: 'POST',
  headers: {
    'Connect-Protocol-Version': '<connect-protocol-version>',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({id: '<string>'})
};

fetch('https://api.simpleemailapi.dev/v1.DomainService/VerifyDomain', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "domain": {
    "id": "<string>",
    "domain": "<string>",
    "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,
          "nameShort": "<string>",
          "discoveredValue": "<string>",
          "instructions": "<string>"
        }
      ],
      "spfRecord": {
        "type": "<string>",
        "name": "<string>",
        "value": "<string>",
        "priority": 123,
        "nameShort": "<string>",
        "discoveredValue": "<string>",
        "instructions": "<string>"
      },
      "dmarcRecord": {
        "type": "<string>",
        "name": "<string>",
        "value": "<string>",
        "priority": 123,
        "nameShort": "<string>",
        "discoveredValue": "<string>",
        "instructions": "<string>"
      },
      "mxRecords": [
        {
          "type": "<string>",
          "name": "<string>",
          "value": "<string>",
          "priority": 123,
          "nameShort": "<string>",
          "discoveredValue": "<string>",
          "instructions": "<string>"
        }
      ],
      "mailFromRecords": [
        {
          "type": "<string>",
          "name": "<string>",
          "value": "<string>",
          "priority": 123,
          "nameShort": "<string>",
          "discoveredValue": "<string>",
          "instructions": "<string>"
        }
      ]
    }
  },
  "wasRefreshed": true,
  "nextRetryAt": "2023-11-07T05:31:56Z",
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.simpleemailapi.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the SimpleEmailAPI dashboard and include it in the Authorization header as: Bearer sea_live_xxxxx

Headers

Connect-Protocol-Version
enum<number>
required

Define the version of the Connect protocol

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
id
string

Response

Success

domain
domain · object

A sending domain.

wasRefreshed
boolean

Whether we actually performed a fresh DNS lookup.

nextRetryAt
string<date-time>

When you can retry if rate limited.

Examples:

"2023-01-15T01:30:15.01Z"

"2024-12-25T12:00:00Z"

message
string