Skip to content

domain.verified

POST

A custom domain’s DNS records were found (mail to it is accepted), or its sending was verified. A webhook of scope project gets it. Answer 2xx within 10 s; anything else is retried after 30 s, 120 s, 600 s, 3600 s, 21600 s, unless the URL now resolves to an address webhooks may not reach (then it is dropped), and 3 failures in a row pause the webhook (disabled_reason: failing). Each attempt counts toward the organization’s webhook deliveries per minute; one over it is skipped, never sent later. Before each attempt the webhook is checked again: one paused, deleted or no longer wanting the event gets nothing more of it. Every attempt is in the webhook’s log (GET /v0/webhooks/{webhook_id}/attempts). Verify webhook-signature with the webhook’s secret; webhook-id is the same on every retry. An event goes to the webhooks that want it when it is queued for them, so one made right after an event may still receive it if that queuing was retried.

Media typeapplication/json
DomainVerifiedBody

The body POSTed for domain.verified: a custom domain’s DNS records were found, and mail to it is accepted (the first time, or again after its records came back), or its sending was verified (sending_status).

object
event_id
required
Event Id
string
/^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$/
event_type
required
Event Type
string
Allowed value: domain.verified
occurred_at
required
Occurred At
string format: date-time
domain
required
DomainFields

A mail domain of the organization: the project’s shared subdomain, or a custom domain with the DNS records it needs. Mail to a verified domain reaches its inboxes (any address: its catch-all, while its project has it on).

object
version
required
Version

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer
domain_id
required
Domain Id
string
/^dom_[0-7][0-9a-hjkmnp-tv-z]{25}$/
project_id
required
Project Id
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/
name
required
Name

Chosen by whoever added it (a person or another agent).

string
kind
required
DomainKind

Where a domain comes from: our shared domain or the customer’s own.

string
Allowed values: shared custom
status
required
DomainStatus

Whether mail for the domain is accepted: pending (a custom domain waiting for its DNS records), verified (accepted), failed (its records were not found in time, or were lost: its failure says which).

string
Allowed values: pending verified failed
failure
required

Why it is failed: a record missing (txt_missing, mx_missing), another MX beside ours (mx_foreign), or another organization holds the name (taken).

Any of:
DomainFailure

Why a custom domain is failed: what its DNS lacked at the last check, or that another organization holds the name.

string
Allowed values: txt_missing mx_missing mx_foreign taken
sending_status
required
SendingStatus

Whether its inboxes send: off; pending until SES finds its DKIM records; verified; failed — SES did not find them in time, or lost them (turn it off and on again).

string
Allowed values: off pending verified failed
records
required
Records

The records to add at the domain’s DNS host, each marked when the last check saw it (none for a shared domain).

Array<object>
DnsRecord

One DNS record the customer adds at their DNS host, and whether the last check that got an answer saw it.

object
key
required
RecordKey

What it is for: receiving (verification, mx), sending (dkim) or recommended for it — the bounce domain’s MX (mail_from) and SPF (spf), the domain’s DMARC (dmarc).

string
Allowed values: verification mx dkim mail_from spf dmarc
type
required
Type
string
Allowed values: TXT MX CNAME
name
required
Name

The record’s full name, without a trailing dot (the domain’s name: chosen by whoever added it).

string
value
required
Value
string
priority
Priority

An MX record’s priority.

Any of:
integer
found
required
Found

The last reading that got an answer saw it (an MX: only ours there); dkim and mail_from: as SES last saw them.

boolean
zone_file
required
Zone File

The same records as a zone file, for DNS hosts that import one (empty for a shared domain).

string
checked_at
required
Checked At
Any of:
string format: date-time
next_check_at
required
Next Check At

When its DNS is read next (null: no more checks — a shared domain, a claim given up).

Any of:
string format: date-time
failing_since
required
Failing Since

Since when a verified domain’s records are missing: three days later it is failed and mail to it refused.

Any of:
string format: date-time
verified_at
required
Verified At
Any of:
string format: date-time

Example

{
"event_id": "evt_01je56wqswfmn9pgbc1wq8tjgq",
"event_type": "domain.verified",
"occurred_at": "2026-12-01T12:00:00Z",
"domain": {
"version": 1,
"domain_id": "dom_01je56wqswfmn9pgbc1wq8tjgq",
"project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq",
"name": "mail.example.com",
"kind": "custom",
"status": "verified",
"failure": null,
"sending_status": "off",
"records": [
{
"key": "verification",
"type": "TXT",
"name": "_yoagent.mail.example.com",
"value": "yoagent-verification=4f8a2c9e1b7d3f6a0c5e8b2d9f1a4c7e",
"priority": null,
"found": true
},
{
"key": "mx",
"type": "MX",
"name": "mail.example.com",
"value": "mx.yoagent.email",
"priority": 10,
"found": true
}
],
"zone_file": "; DNS records for mail.example.com\n_yoagent.mail.example.com.\t3600\tIN\tTXT\t\"yoagent-verification=4f8a2c9e1b7d3f6a0c5e8b2d9f1a4c7e\"\nmail.example.com.\t3600\tIN\tMX\t10 mx.yoagent.email.\n",
"checked_at": "2026-12-01T12:00:00Z",
"next_check_at": "2026-12-01T18:00:00Z",
"failing_since": null,
"verified_at": "2026-12-01T12:00:00Z"
}
}

Delivered: any 2xx within 10 s (its body is not read).