Skip to content
You're viewing documentation for v0.6.1. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Brevo

Send through the Brevo transactional email API with full field support and metadata mapped to template params.

The Brevo adapter calls the Brevo transactional email API over fetch — no extra dependency. It authenticates with Brevo’s api-key header (not a Bearer token), supports every common field, and maps metadata to Brevo’s params — the same values Brevo templates substitute.

Brevo logo
Brevo@opencoredev/email-sdk/brevo
Provider docs

Configure

Create an API key under SMTP & API in the Brevo dashboard and verify the sender or domain you use in from.

PropType
apiKeystring

Brevo API key, sent as the api-key request header.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.brevo.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

Brevo maps cc, bcc, headers, attachments, tags (values only), and metadata (as params). replyTo accepts a single address — two or more throw an EmailValidationError before any request.

The response id is Brevo’s messageId (falling back to id) — match it against events in Brevo’s logs and webhooks.

Verify from the CLI

Drop --dry-run for one real send — that is the only check that proves the key, sender verification, and recipient policy are ready.

Last updated on