Email API

An email API that sends in one call, and shows you every step after.

The BillionSend email API is one REST API for the mail your product sends and receives. Send, batch and schedule with a few lines, reply to the mail that comes back, and read every request, event and delivery result in logs and webhooks.

Free plan with 100 emails a day. No credit card.

import { BillionSend } from "@billionsend/node";
const bs = new BillionSend(); // reads BILLIONSEND_API_KEY
const { data, error } = await bs.emails.send({
from: "Acme <hello@mail.acme.com>",
to: ["delivered@test.billionsend.com"],
subject: "Welcome to Acme",
html: "<p>Your account is ready.</p>",
});

// 200 { "id": "3f7b2c71-5274-4246-82f3-57bc1563c276" }

  • 9SDK languages
  • 100emails in one batch call
  • 1,000sends a second per key
  • 30days of request logs

How it works

From an API key to your first email in minutes.

The same three steps whatever language you write in.

  1. 01

    Create an API key

    Make a key under API keys and send it as a Bearer token. A key is full access or sending only, and a sending key can be held to one domain.

  2. 02

    Verify a sending domain

    Add the DNS records the email API returns for your domain, then ask it to check them. DKIM keys rotate every 180 days on their own.

  3. 03

    Send, then follow it

    POST /emails returns an id at once and sends in the background. Every status change reaches your webhook, and every request you made is in the logs.

Endpoints

An email API endpoint for each job.

The calls most products start with. Sending calls count against 1,000 requests a second per API key, the others against 600 a minute; the API reference lists every one.

CallWhat it doesLimit
POST /emailsSend one email with attachments, tags, headers or a template.50 recipients, 10 MB of attachments
POST /emails/batchSend up to 100 separate emails in one request.100 emails per call
scheduled_at: "in 1 hour"Schedule a send with an ISO date or plain words: in 5 mins, in 2 hours, in 1 day.Up to 30 days ahead
GET /emails/receivingList the mail your domains and inboxes received, then reply or forward it.Kept for your plan's receiving window
GET /logsRead each API request your team made, with its status, request and response.Kept 30 days

In your code

Every email API answer means one thing.

Errors have one shape, so your code can branch on the status and the name.

  • 200Accepted and stored. The body has the email's id; delivery is reported later by event.
  • 409The Idempotency-Key was used with a different payload. Send the original payload, or a new key.
  • 422The request cannot be sent as written: an unverified From domain, no body, or every recipient suppressed. The message says which.
  • 429Over the key's rate limit. Wait the seconds in retry-after, then send again with the same Idempotency-Key.
HTTP 422 POST https://api.billionsend.com/emails
{
"statusCode": 422,
"name": "validation_error",
"message": "The mail.acme.com domain is not verified for this team"
}

Where it fits

Use one email API for every message your product sends.

  1. 01

    Product mail

    Sign-up links, receipts, alerts and password resets, each from the event that caused it.

  2. 02

    Replies and support

    Receive the answers in an inbox, read them through the API and reply in the same thread.

  3. 03

    Agents

    Give an AI agent an API key or the MCP server, and it sends and reads mail with the same rules as your code.

  4. 04

    High volume

    Batch up to 100 emails a call, 1,000 calls a second per key, and follow each one by its own id.

Before you ship

Plan for retries, limits and cost.

  • Idempotency-KeySend once

    Send the header with up to 256 characters and a retry within 24 hours returns the first answer instead of a second email.

  • HTTP 429Rate limits

    Each API key makes 1,000 sending requests a second and 600 other requests a minute. Our SDKs retry safe requests for you.

  • Test addressesTest without sending

    Mail to delivered@, bounced@, complained@ or delayed@test.billionsend.com is accepted and answered with the matching event, and nothing is sent.

  • CostPlan volume

    Free sends 100 emails a day. Paid plans include a monthly volume, and with overage on, extra emails cost $0.40 per thousand.

Other ways in

When a REST call is not the right fit.

The same sending path, checks and events behind each.

  • SMTP relay

    Point any app or framework mailer at smtp.billionsend.com on port 587 or 465, with an API key as the password.

    SMTP relay
  • MCP server

    Connect Claude, Cursor or another MCP client, and an agent sends and reads mail through the email API's own tools.

    MCP server

FAQ

Questions, answered.

Something missing? Ask us at support@billionsend.com.

Send your first email in five minutes.