Skip to content

docs: document message.complained and message.suppressed webhook events - #18

Merged
tuyakhov merged 1 commit into
mainfrom
claude/gallant-einstein-fu2f8p
Jul 31, 2026
Merged

docs: document message.complained and message.suppressed webhook events#18
tuyakhov merged 1 commit into
mainfrom
claude/gallant-einstein-fu2f8p

Conversation

@tuyakhov

Copy link
Copy Markdown
Contributor

Summary

Two delivery-outcome webhook events that the platform emits weren't reflected in the SDK docs. This documents them so users know the events exist and how to handle them. Docs-only — no code changes. Mirrors the same update in the JS and PHP SDKs.

Added the two missing events to the "Subscribable event types" list in README.md:

  • message.complained — the recipient marked the message as spam. A complaint emits both message.complained and message.opted_out, so handlers that only watch for opt-outs keep working unchanged.
  • message.suppressed — a send was skipped because the address failed validation or was already on the suppression list after an earlier bounce or complaint.

The WebhookVerifier already passes event.type through as a free-form string, so no code change is required.

Related issues

None.

Checklist

  • Docs updated (docs-only change; no public API surface changed)
  • ruff / mypy / pytest — n/a, no code touched

Generated by Claude Code

Add the two delivery-outcome webhook events to the subscribable event
lists so users know how to handle them:

- message.complained: the recipient marked the message as spam. A complaint
  emits both message.complained and message.opted_out, so existing opt-out
  handlers keep working unchanged.
- message.suppressed: a send was skipped because the address failed validation
  or was already on the suppression list after an earlier bounce or complaint.
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tuyakhov
tuyakhov merged commit 35e7473 into main Jul 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant