BavimailBavimail

From install to first email — typically under 5 minutes

Install the SDK, set your API key, and send your first email.

Last updated May 29, 2026

Three steps to your first send

Install the SDK

Install the Bavimail SDK for your language.

npm install bavimail

Set your API key

Create an API key from the dashboard and set it as an environment variable.

export BAVIMAIL_API_KEY="bm_your_key_here"

API keys start with bm_ .

Send your first email

Initialize the client and send an email.

import { Bavimail } from 'bavimail'

const client = new Bavimail({ apiKey: process.env.BAVIMAIL_API_KEY })

const email = await client.emails.send({
  aliasId: 'your-alias-id',
  toEmail: '[email protected]',
  subject: 'Hello from Bavimail',
  body: '<strong>Your first email</strong>',
})

console.log('Sent:', email.id)

Copy for Claude

Drop this into your AI coding assistant.

bavimail-quickstart
# Bavimail API — Quickstart
# Docs: https://bavimail.com/docs/quickstart
# SDK: pip install bavimail / npm install bavimail

from bavimail import Bavimail
import os

client = Bavimail(api_key=os.environ["BAVIMAIL_API_KEY"])

email = client.emails.send(
    alias_id="your-alias-id",
    to_email="[email protected]",
    subject="Hello from Bavimail",
    body="<strong>Your first email via Bavimail</strong>",
)

print(f"Sent: {email.id}")

# Auth: API key passed as Bearer token
# Errors: See https://bavimail.com/docs/errors