Skip to content
Tinbox

Product · Sending

Product email from your own domains, sent exactly once.

A Resend-style sending API and typed SDK for receipts, password resets, and alerts — running in your own Cloudflare account, with every send written to a ledger before it leaves.

A message moves from dispatch through a check to a recipient tray.

The API

Three calls cover it: send, batch, get.

The SDK ships inside the tinbox package (import it from tinbox/sdk). It's fetch-only, so it runs on Workers, Node 22.12+, Bun, Deno, and the browser.

import { Tinbox } from "tinbox/sdk";

const tinbox = new Tinbox({
  apiKey: process.env.TINBOX_API_KEY, // a scoped tbx_… sending key
  host: "https://acme.dev",
});

const res = await tinbox.emails.send({
  from: "Acme <hello@acme.dev>",
  to: "ada@example.com",
  subject: "Your receipt",
  html: "<p>Thanks for your order.</p>",
  replyTo: "support@acme.dev",
  idempotencyKey: "RECEIPT-4821", // a retry is a safe replay
});

const status = await tinbox.emails.get(res.id);
console.log(status.status, status.events);
const { results } = await tinbox.emails.batch([
  { from: "hello@acme.dev", to: "ada@example.com", subject: "Hi Ada", text: "..." },
  { from: "hello@acme.dev", to: "grace@example.com", subject: "Hi Grace", text: "..." },
]);
# Mint a key that can only send as receipts@
tinbox tokens create-send-key --identity sid_abc --name receipts-api --json

# Send from the terminal (prints the idempotency key it used)
tinbox send --to ada@example.com --subject "Update" --text "..." --json

What you get

The parts that make product email boring, in a good way.

Idempotency keys

Pass a key like RECEIPT-4821 and a retry is a safe replay against the send ledger — never a second email.
Idempotency in the guide

Scoped send keys

A sending key can be limited to one identity (receipts@), one verified domain, or the whole account. Check a key's reach without sending anything.
tokens create-send-key

Suppressions

Hard bounces, complaints, and unsubscribes land on a suppression list and are never re-sent. Manage it from the SDK or the app.
suppressions.add

Delivery timeline

emails.get returns the per-recipient ledger and the event timeline — queued, delivered, bounced, opened, clicked. The Activity view shows the same.
emails.get

Reply logic on the send

Attach onReply and drip to a send: when they reply, draft an answer for review; if they don't, follow up on a schedule. Only possible because the inbox is the same system.
Thread directives

Send from every domain you run

Add as many sending domains as you operate, with SPF, DKIM, and DMARC aligned on each zone. No per-domain fee.
Connect a domain

Delivery

Cloudflare by default. Your provider when you want one.

Tinbox sends through Cloudflare Email Sending on your own account out of the box. In Settings → Providers, each lane — transactional, lists, outreach — can be routed to its own provider instead: Amazon SES or any SMTP relay.

Lane routing

Point transactional mail at SES while lists stay on Cloudflare — each lane keeps its own reputation and its own provider profile.
Route sending lanes

DNS you can check

The free DNS check reads your domain's SPF, DKIM, DMARC, and MX records and tells you what's missing before you send.
Run the DNS check

Switching

Coming from another provider? There's a guide.

Your agent sends through the same path. The send_email tool an agent calls writes to the same ledger, honors the same suppressions, and is flagged destructive — so a chat or MCP client asks before it runs.

Or we build it for you

Want deliverability handled for you?

We set up your sending domains and DNS, wire your app to the SDK, route lanes to the right provider, and check that your mail lands. Tell us what you send today.
Talk to us about it →

Send from your own account.

Free to install and use, even commercially — the CLI, SDK, and worker ship in one npm package. One deploy, your domains, your ledger — no per-domain or per-seat meter.