Skip to content
emailkit
Esc
navigateopen⌘Jpreview
On this page

domain.onVerified

DNS checks passed — the domain can send.

Fires when an emailkit.domains.verify() check comes back verified — the provider confirmed the DNS records and the domain can send. Flip its status so your app stops showing setup instructions.

hooks: {
  domain: {
    onVerified: async ({ domain }) => {
      await prisma.sendingDomain.updateMany({
        where: { domain: domain.domain },
        data: { status: "verified" },
      });
    },
  },
},

Payload

PropType
emailDriverstring
Typestring
domainDomain
TypeDomain
context?unknown
Typeunknown

Last updated on July 24, 2026

Was this page helpful?