resend.onSuppressionEvent handles suppression.added and suppression.removed.
automations/watch-resend-suppressions.automation.ts
id, email, origin, nullable sourceId, createdAt, and the original event envelope.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run an automation for Resend suppression-list changes.
resend.onSuppressionEvent handles suppression.added and suppression.removed.
import { automation } from "automate.ax"
import { resend } from "automate.ax/resend"
export default automation("Watch Resend suppressions", () => {
resend.onSuppressionEvent().transform(({ email, event, origin }) => ({
email,
origin,
type: event.type,
}))
})
id, email, origin, nullable sourceId, createdAt, and the original event envelope.