Brevo
Configure the Brevo transactional email adapter.
import { createEmailClient } from "@opencoredev/email-sdk";
import { brevo } from "@opencoredev/email-sdk/brevo";
const email = createEmailClient({
adapters: [brevo({ apiKey: process.env.BREVO_API_KEY! })],
});
Options
| Option | Type | Required | Notes |
|---|---|---|---|
apiKey |
string |
Yes | Brevo API key. |
baseUrl |
string |
No | Defaults to https://api.brevo.com. |
fetch |
typeof fetch |
No | Useful for tests or custom runtimes. |
See field support for headers, tags, metadata, and attachments.