Postmark spam complaint notifications on your phone.

Get a High-priority push notification when a recipient marks an email you sent through Postmark 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 Postmark

Add it as a webhook for Spam Complaint.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Postmark spam complaint 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 Postmark, open your Server, pick the Message Stream (for example Default Transactional Stream) and go to its Webhooks tab.
  3. Click Add webhook and paste your webhook URL as the Webhook URL.https://••••••••/•••••••• your personal URL, shown after install
  4. Tick Spam Complaint and save. Postmark checks that the endpoint answers before it starts sending.
  5. Webhooks in Postmark belong to one **Message Stream** of one **Server**, so add this webhook to each stream you want to watch. Broadcast streams are where most complaints come from.
  6. Every complaint pushes at High priority. Postmark deactivates the address after a complaint and you can't reactivate it yourself. The push includes the message's tag when it has one, so you can see which email people are reporting.
  7. Postmark doesn't sign webhooks. It supports HTTP basic auth in the URL and custom headers, but JustPush doesn't check either yet, so keep your endpoint URL private. When you save the webhook, Postmark checks that the endpoint answers for each event type; that check may produce one test push.
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// Postmark → Spam complaint webhook
2// Fires when a recipient marks an email you sent through Postmark as spam. Postmark then
3// deactivates the address for good.
4// Docs: https://postmarkapp.com/developer/webhooks/spam-complaint-webhook
5
6// A trimmed string, or null.
7function text(value) {
8 return typeof value === "string" && value.trim() ? value.trim() : null
9}
10
11function handleRequest(request) {
12 const body = request.body && typeof request.body === "object" ? request.body : {}
13
14 // Guard: only spam complaints, so other Postmark webhooks on this integration stay quiet.
15 if (body.RecordType !== "SpamComplaint") {
16 console.log(`Ignoring Postmark "${body.RecordType ?? "unknown"}" webhook`)
17 return null
18 }
19
20 const subject = text(body.Subject)
21 const tag = text(body.Tag)
22
23 return {
24 title: "🚨 Spam complaint",
25 message:
26 `${text(body.Email) ?? "A recipient"} marked ${subject ? `"${subject}"` : "your email"} as spam` +
27 (tag ? ` · ${tag}` : ""),
28 topic: "Postmark",
29 priority: 1, // High: complaints hurt your sender reputation, and Postmark watches the rate
30 }
31}
Payload

The Postmark SpamComplaint webhook

This is what Postmark sends to your URL for spam complaint. It is a sample, trimmed to the fields recipes use.

SpamComplaint · sample.json
1{
2 "ID": 692560174,
3 "Tag": "weekly-digest",
4 "From": "[email protected]",
5 "Name": "Spam complaint",
6 "Type": "SpamComplaint",
7 "Email": "[email protected]",
8 "Details": "",
9 "Subject": "This week at Acme",
10 "Inactive": true,
11 "Metadata": {
12 "customer_id": "cus_1234"
13 },
14 "ServerID": 23,
15 "TypeCode": 100001,
16 "BouncedAt": "2026-09-29T08:33:54.9070259Z",
17 "MessageID": "883953f4-6105-42a2-a16a-77a8eac79483",
18 "RecordType": "SpamComplaint",
19 "CanActivate": false,
20 "Description": "The subscriber explicitly marked this message as spam.",
21 "DumpAvailable": true,
22 "MessageStream": "broadcast"
23}
FAQ

Postmark 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 Postmark 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

Postmark on your phone in two minutes.

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