Resend bounce or spam complaint notifications on your phone.

Get a push notification when an email you sent through Resend bounces, and a High-priority one when a recipient marks it as spam.

How it works

Three steps to your first push

STEP 01

Install the recipe

One click in Studio gives you a personal webhook URL.

STEP 02

Paste your URL into Resend

Add it as a webhook for email.bounced and email.complained.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Resend email.bounced and email.complained webhook

  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 as the endpoint URL and select the email.bounced and email.complained events.https://••••••••/•••••••• your personal URL, shown after install
  4. Save the webhook.
  5. When you add the webhook in Resend (**Webhooks → Add Webhook**), select **email.bounced** and **email.complained**. Each event gives one push:
  6. a spam complaint (`email.complained`) is High priority, because complaints damage your sender reputation fastest;
  7. a hard or undetermined bounce is Normal priority, and a soft (transient) bounce is Low.
  8. 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.
The code

What runs when the webhook arrives

Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.

transform.js
1// Resend → email.bounced / email.complained
2// Fires when an email you sent through Resend bounces, or when the recipient marks it as spam.
3// Docs: https://resend.com/docs/webhooks/emails/bounced
4
5// Bounce types from Resend's bounce docs, and how loud each one is.
6const BOUNCE_TYPES = {
7 Permanent: { label: "hard bounce", priority: 0 }, // the address is dead; worth knowing, not urgent
8 Undetermined: { label: "bounce", priority: 0 },
9 Transient: { label: "soft bounce", priority: -1 }, // may still be delivered later
10}
11
12// Sub-types worth spelling out. "General", "NoEmail" and "Undetermined" add nothing.
13const SUBTYPES = {
14 MailboxFull: "mailbox full",
15 MessageTooLarge: "message too large",
16 ContentRejected: "content rejected",
17 AttachmentRejected: "attachment rejected",
18 Suppressed: "address is suppressed",
19 OnAccountSuppressionList: "address is on your suppression list",
20}
21
22// Look a key up without tripping over inherited names like "toString".
23function pick(table, key, fallback) {
24 return Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback
25}
26
27// Only link to real http(s) URLs.
28function link(url, cta) {
29 return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : []
30}
31
32// A trimmed string, or null.
33function text(value) {
34 return typeof value === "string" && value.trim() ? value.trim() : null
35}
36
38function recipients(to) {
39 const list = (Array.isArray(to) ? to : [to]).map(text).filter(Boolean)
40 if (!list.length) return null
41 return list[0] + (list.length > 1 ? ` +${list.length - 1} more` : "")
42}
43
44function handleRequest(request) {
45 const body = request.body && typeof request.body === "object" ? request.body : {}
46 const data = body.data && typeof body.data === "object" ? body.data : null
47
48 // Guard: only bounces and complaints, so other Resend events on this integration stay quiet.
49 if (!data || !["email.bounced", "email.complained"].includes(body.type)) {
50 console.log(`Ignoring Resend "${body.type ?? "unknown"}" event`)
51 return null
52 }
53
54 const to = recipients(data.to) ?? "A recipient"
55 const subject = text(data.subject)
56 // The dashboard URL pattern isn't in Resend's webhook docs; it's where the email opens in the app.
57 const buttons = text(data.email_id)
58 ? link(`https://resend.com/emails/${encodeURIComponent(data.email_id)}`, "View email")
59 : []
60
61 if (body.type === "email.complained") {
62 return {
63 title: "🚨 Spam complaint",
64 message: `${to} marked ${subject ? `"${subject}"` : "your email"} as spam`,
65 topic: "Resend",
66 priority: 1, // High: complaints hurt your sender reputation far more than bounces
67 buttons,
68 }
69 }
70
71 const bounce = data.bounce && typeof data.bounce === "object" ? data.bounce : {}
72 const type = pick(BOUNCE_TYPES, bounce.type, { label: "bounce", priority: 0 })
73 const detail = pick(SUBTYPES, bounce.subType, null)
74
75 return {
76 title: "↩️ Email bounced",
77 message: [to, subject ? `"${subject}"` : null, type.label + (detail ? ` (${detail})` : "")]
78 .filter(Boolean)
79 .join(" · "),
80 topic: "Resend",
81 priority: type.priority,
82 buttons,
83 }
84}
Payload

The Resend email.bounced webhook

This is what Resend sends to your URL for email.bounced and email.complained. It is a sample, trimmed to the fields recipes use.

email.bounced · sample.json
1{
2 "data": {
3 "to": [
5 ],
6 "from": "Acme <[email protected]>",
7 "tags": {
8 "category": "confirm_email"
9 },
10 "bounce": {
11 "type": "Permanent",
12 "message": "The recipient's email provider sent a hard bounce message.",
13 "subType": "General"
14 },
15 "subject": "Confirm your email",
16 "email_id": "56761188-7520-42d8-8898-ff6fc54ce618",
17 "created_at": "2026-09-29T08:41:11.894Z",
18 "message_id": "<[email protected]>"
19 },
20 "type": "email.bounced",
21 "created_at": "2026-09-29T08:41:12.126Z"
22}
FAQ

Resend bounce or spam complaint notifications: questions

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.

Ready when you are

Resend on your phone in two minutes.

Install the recipe, paste one URL, done. Free for 30 days, no credit card required.