TypeScript SDK
mailroom — { data, error } or throw, fetch-based. Not published to npm.
In this repo
The package name is mailroom. It is private and not published. From a
checkout, pnpm mailroom init runs the CLI. Point baseUrl at
https://api.mailroom.gosuevals.com/v1 (or http://127.0.0.1:8787/v1 for local development).
- Package:
mailroom - Runtime: Node 18+, Bun, Deno, edge (
fetch) - Zero heavy dependencies
- Returns
{ data, error }(easy in agents) and a throwing variant - Auto
Idempotency-Keyonemails.send - Retries 429/5xx with backoff, honors
Retry-After webhooks.verify,provenance.verify, typed event unions
import { Mailroom } from 'mailroom';
const mailroom = new Mailroom({
apiKey: process.env.MAILROOM_API_KEY!,
baseUrl: 'https://api.mailroom.gosuevals.com/v1',
});
const { data, error } = await mailroom.emails.send({ /* … */ });
// throwing variant
const email = await mailroom.emails.sendOrThrow({ /* … */ });Namespaces
emails · domains · apiKeys · webhooks · agents · inboxes · threads · messages · drafts · approvals · policies · suppressions · templates · deliverability
Types will be generated from the OpenAPI spec in this repo (openapi/mailroom.yaml).