Automate Brevo with TypeScript

Send Brevo email and SMS, manage contacts, lists, and templates, and react to transactional delivery and engagement events.

suppress-hard-bounces.automation.ts
import { automation } from "automate.ax"
import { brevo } from "automate.ax/brevo"

export default automation("Suppress Brevo hard bounces", () => {
  const event = brevo.onEmailHardBounced()

  brevo.upsertContact({
    email: event.email,
    emailBlacklisted: true,
  })
})

What you can do

Actions

  • Send or schedule transactional email and SMS
  • Create and manage contacts and contact lists
  • Create, update, activate, and inspect templates
  • Read transactional email content and events

Triggers

  • Email sent, delivered, deferred, or blocked
  • Hard and soft bounces
  • Email opened, clicked, marked as spam, or unsubscribed
  • Broad transactional event

Start automating with Brevo today

Start building