# Resend domain status notifications on your phone > Get a push notification when a Resend sending domain is verified, and a High-priority one when it fails verification. - Company: Resend (https://www.justpush.io/recipes/resend) - Event: `domain.updated` (domain.updated) - Tags: Email delivery, Email deliverability - Install: https://studio.justpush.io/recipes/resend/domain-status - Web page: https://www.justpush.io/recipes/resend/domain-status ## Setup 1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL. 2. In Resend, open Webhooks and click Add Webhook. 3. Paste your webhook URL (shown in Studio after install) as the endpoint URL and select the domain.updated events. 4. Save the webhook. 5. When you add the webhook in Resend (**Webhooks → Add Webhook**), select **domain.updated**. 6. By default you get a push when a domain is verified or partly verified (Low priority) and when it fails or partly fails verification (High priority, with the failing DNS records). Add `?all=1` to the endpoint URL to also get the pending and not-started updates: 7. ``` 8. your webhook URL (shown in Studio after install)?all=1 9. ``` 10. Resend sends `domain.updated` for any change to a domain, not only status changes, so a domain that's already verified can push "verified" again after you edit it. 11. Resend signs every delivery with Svix headers (`svix-id`, `svix-timestamp`, `svix-signature`), but JustPush doesn't check that signature yet, so keep your endpoint URL private. ## Code Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing. ```js // Resend → domain.updated (domain verification status) // Fires when a Resend sending domain is updated: verified, partly verified, or failed verification. // Pending / not-started updates only push with ?all=1. // Docs: https://resend.com/docs/webhooks/domains/updated // Each aggregated domain status, how to label it, and how loud to be. const STATES = { verified: { emoji: "✅", label: "verified", detail: "Ready to send", priority: -1 }, // good news partially_verified: { emoji: "🟡", label: "partly verified", detail: "Sending or receiving is verified, the other is still pending", priority: -1, }, partially_failed: { emoji: "🟠", label: "partly failed verification", detail: "Sending or receiving failed verification", priority: 1, // High: part of your email setup is broken }, failed: { emoji: "🔴", label: "failed verification", detail: "Check the DNS records", priority: 1, // High: you can't send from this domain }, pending: { emoji: "🕓", label: "pending verification", detail: "Waiting for DNS", priority: -1, quiet: true }, not_started: { emoji: "🕓", label: "not verified yet", detail: "Verification hasn't started", priority: -1, quiet: true }, } // Look a key up without tripping over inherited names like "toString". function pick(table, key, fallback) { return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback } // Only link to real http(s) URLs. function link(url, cta) { return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : [] } // A trimmed string, or null. function text(value) { return typeof value === "string" && value.trim() ? value.trim() : null } function handleRequest(request) { const body = request.body && typeof request.body === "object" ? request.body : {} const data = body.data && typeof body.data === "object" ? body.data : null const state = data ? pick(STATES, data.status, null) : null // Guard: only domain updates with a known status. if (body.type !== "domain.updated" || !state) { console.log(`Ignoring Resend "${body.type ?? "unknown"}" event`) return null } // ?all=1 on the webhook URL also pushes pending / not-started updates. const all = ["1", "true", "yes"].includes(String(request.query?.all ?? "").toLowerCase()) if (state.quiet && !all) { console.log(`Skipping domain status "${data.status}"`) return null } const name = text(data.name) ?? "Your domain" // For failures, name the DNS records that failed, e.g. "DKIM TXT, SPF MX". const failed = (state.priority > 0 && Array.isArray(data.records) ? data.records : []) .filter((r) => r && typeof r === "object" && ["failed", "temporary_failure"].includes(r.status)) .map((r) => [text(r.record), text(r.type)].filter(Boolean).join(" ")) .filter(Boolean) return { title: `${state.emoji} ${name} ${state.label}`, message: failed.length ? `Failing records: ${failed.join(", ")}` : state.detail, topic: "Resend", priority: state.priority, // The dashboard URL pattern isn't in Resend's webhook docs; it's where the domain opens in the app. buttons: text(data.id) ? link(`https://resend.com/domains/${encodeURIComponent(data.id)}`, "View domain") : [], } } ``` ## Resend domain.updated webhook payload (sample) ```json { "data": { "id": "d91cd9bd-1176-453e-8fc1-35364d380206", "name": "example.com", "region": "eu-west-1", "status": "failed", "records": [ { "ttl": "Auto", "name": "send", "type": "MX", "value": "feedback-smtp.eu-west-1.amazonses.com", "record": "SPF", "status": "verified", "priority": 10 }, { "ttl": "Auto", "name": "send", "type": "TXT", "value": "\"v=spf1 include:amazonses.com ~all\"", "record": "SPF", "status": "verified" }, { "ttl": "Auto", "name": "resend._domainkey", "type": "TXT", "value": "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDexample", "record": "DKIM", "status": "failed" } ], "created_at": "2026-09-26T20:21:26.347Z", "capabilities": { "sending": "enabled", "receiving": "disabled" } }, "type": "domain.updated", "created_at": "2026-09-29T08:32:22.980Z" } ``` ## FAQ ### Does this work on iPhone and Android? Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification. ### Do I need to write code? No. Install the recipe in Studio, paste your webhook URL into Resend and you are done. The code is there if you want to change the text, the sound or the buttons. ### Can I change what the notification says? Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save. ### What does it cost? JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.