Verify Domain

Trigger DNS verification for a domain. Checks all DNS records (SPF, DKIM, DMARC) and updates their status.

POST/domains/{domain_id}/verify

Resend Compatibility: Compatible

Requires a full_access API key.

Path Parameters

domain_idstringrequired

The ID of the domain to verify.

Response Fields

objectstring

Always "domain".

idstring

The domain ID.

namestring

The domain name.

statusstring

Updated verification status (pending or verified).

created_atstring

ISO 8601 timestamp.

recordsarray

Array of DNS records with their updated verification status.

curl -X POST 'https://api.postflare.app/domains/d91cd9bd-1176-453e-8fc1-35364d380206/verify' \
  -H 'Authorization: Bearer re_xxxxxxxxx'
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.domains.verify(
  'd91cd9bd-1176-453e-8fc1-35364d380206'
);

Response

Response
{
  "object": "domain",
  "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
  "name": "example.com",
  "status": "verified",
  "created_at": "2026-01-01T00:00:00.000Z",
  "records": [
    {
      "type": "SPF",
      "name": "example.com",
      "value": "v=spf1 include:_spf.postflare.com ~all",
      "status": "verified",
      "priority": null
    }
  ]
}