Skip to content
Mailwright

Updated: November 2, 2026

Docs

Spam complaint webhook

About 10 minutesSign in to check your setup

Why this matters. A sending service can tell Mailwright when someone reports spam.

What we ask for. You paste Mailwright's address into that service.

What Mailwright will do

  • Save the complaint and stop follow-ups.

What Mailwright won't do

  • Receive webhooks from Gmail, Outlook, or Yahoo. They never call one.
  1. Open Settings, then API & webhooks.
  2. Under Spam complaint webhook, click Reveal, then Copy.
  3. Paste it in your sending service as the complaint webhook.
  4. Send their test event. It appears on Complaints as Test payload.

How to know it worked

  • A test event shows on Complaints marked Test payload.

Something went wrong?

  • invalid signature The secret in the URL does not match.

    Copy the URL again. If you rotated it, the old URL stops working.

  • unknown webhook Mailwright does not know that URL.

    Copy the URL again from **Reveal**.

  • Nothing arrives The service may be sending the wrong event.

    Set it to send complaint events, not only bounces.

Did this help?

Still stuck? Contact support

Read the full guide

Every workspace has a complaint URL. It is not limited to one plan. When a mailbox provider notifies that URL that a recipient marked a message as spam, Mailwright records the complaint, suppresses the address, and shows it in the workspace. The pictures of Mailwright screens below are from the app. The flow drawings are diagrams, not pictures of a provider's site.

What happens to a complaint

Diagram: a provider complaint POST hits the workspace URL, Mailwright records it and suppresses the address, then the Spam page and the campaign report show it.
  1. The provider POSTs the complaint to your workspace URL.
  2. Mailwright accepts it only when the token in that URL matches the workspace.
  3. The address is added to the suppression list for every member of the workspace, so later campaign mail does not go to it.
  4. The complaint is listed on Complaints. If the address is on a campaign, that campaign's complaint count includes it.

1. Copy the workspace URL

  1. Open Settings › API & webhooks.
  2. Under Spam complaint webhook, choose Reveal, then Copy.
  3. Paste that URL into the complaint or feedback webhook your mailbox provider already gives you. Mailwright accepts a SendGrid-style event list, an Amazon SES notification, or a JSON object with event and email.

The URL looks like https://mailwright.tech/webhooks/complaints/… The token is the secret. Do not publish it.

Mailwright API and webhooks page with the Spam complaint webhook section and the workspace URL.

2. Leave the outbound webhook unset

Diagram: complaint intake is on for every workspace, while the outbound webhook has eight events and stays unset until you add an endpoint.

The outbound webhook still has the same eight events: sent, delivered, opened, clicked, replied, bounced, complained, and unsubscribed. No endpoint is created for you. Add one only if you want Mailwright to POST those events to your own server. Leaving it empty does not turn off complaint intake.

Mailwright outbound webhook form with the eight event choices and no endpoint saved.

3. A mailbox can also have its own URL

Each stored mailbox has a bounce and complaint URL on Email accounts and on API & webhooks. That URL accepts bounces, complaints, unsubscribes, and delivery notices for that mailbox. It looks like https://mailwright.tech/webhooks/mail/… The workspace URL is only for spam complaints and covers every address the workspace sends.

Mailwright API and webhooks page listing inbound bounce and complaint URLs for stored mailboxes.

4. Where you see the complaint

Open Complaints. A row created from a Mailwright test payload is labeled Test payload. A campaign that included the address shows the complaint on that campaign.

Mailwright Spam page with a row labeled Test payload for a Mailwright test complaint.Mailwright campaign report with Daily spam and bounce and a link to Open spam complaints.

Try it with a marked test payload

The test address is suppressed and stays suppressed. Use an address you do not send to. There is no button in the app that sends this for you.

This body is a Mailwright test. It is not a complaint from a mailbox provider. Accepted complaint names include complaint, spamreport, and abuse. A matching POST returns accepted.

curl -X POST "https://mailwright.tech/webhooks/complaints/YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event":"complaint","email":"person@example.com","mailwright_test":true}'

A second POST of the same body is ignored. The address stays suppressed. The Spam page keeps the one Test payload row.