mail.feedback/v1
What mail providers report back about mail an app sent: bounces, spam complaints, unsubscribes. The provider of this
contract receives the reports and raises one event per address; any number of extensions act on them through one
hook. A suppression list adds the address, a CRM marks the contact, pb_hooks logs it.
A wire contract (feedback.go). Its operations are public: SES messages are checked by their SNS signature, webhook calls by a shared secret.
Use
| Operation | HTTP | What sends it |
|---|---|---|
| SES | POST /api/_c/mail.feedback/v1/ses |
an Amazon SNS HTTPS subscription for SES bounce and complaint notifications |
| Webhook | POST /api/_c/mail.feedback/v1/webhook with X-Feedback-Secret |
any provider: {"type": "bounce|complaint|unsubscribe", "email": "...", "campaign": "..."} |
Act on the events in Go:
feedbackv1.OnEvent(app).BindFunc(func(e *feedbackv1.Event) error {
// e.Kind: bounce, complaint or unsubscribe; e.Email, e.Campaign, e.Source
return e.Next()
})
Provide
Implement feedbackv1.Receiver: check each report, then call feedbackv1.Raise(app, &feedbackv1.Event{...}) for
each address. Where the webhook secret comes from is the provider's (Bulk Mail keeps it in its settings).
Commands and APIs
Every operation is a REST endpoint, a pocketone command and an MCP tool, all generated from the contract and behind the same token scope check and hooks. See Remote CLI, or the full CLI, Extension APIs and MCP references.
s_e_s
Takes an Amazon SNS delivery carrying SES bounce and complaint notifications (and confirms the topic subscription). Point an SNS HTTPS subscription here.
| REST | POST /api/_c/mail.feedback/v1/ses |
| Token scope | public |
| Body | the raw upload, not JSON |
webhook
Takes {"type": "bounce|complaint|unsubscribe", "email": ..., "campaign": ...} from any provider, with the shared secret in the X-Feedback-Secret header.
| REST | POST /api/_c/mail.feedback/v1/webhook |
| Token scope | public |
| Body | the raw upload, not JSON |
Extensions
| Extension | |
|---|---|
| bulkmail | provides (default) |
License
MIT
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.