Every product, in the language you already use.
One client for every product, generated for six more languages, with retries that never send twice.
coss.email.send()
const = new (); // reads COSS_API_KEY
const { , } = await ..({
: "Acme <hello@acme.com>",
: "ada@example.com",
: "Your receipt",
: "Thanks for your order.",
});
if () .(., ., .);Retried for you
Idempotency-Key: reused on every attempt
- POST /v1/emails 503
- POST /v1/emails 429
- POST /v1/emails 202
Six more languages
Python, Go, Ruby, PHP, Java and .NET, generated from the OpenAPI document, so every endpoint is in every SDK.
Read the docsfrom coss import Coss
from coss import Coss, SendEmailRequestTagsItem
client = Coss() # api_key= or COSS_API_KEY
client.email.send(
idempotency_key="welcome-user-123",
from_="Acme <onboarding@acme.com>",
to="user@example.com",
subject="Welcome to Acme",
html="<p>Thanks for signing up!</p>",
tags=[
SendEmailRequestTagsItem(
name="template",
value="welcome",
)
],
category="onboarding",
)Keep the library you use
Drop-ins for Nodemailer, Better Auth and Auth.js, and mail drivers for Laravel, Rails and Django.
Read the docsKeep your mail library
| Nodemailer | coss/nodemailer |
| Better Auth | coss/better-auth |
| Auth.js | coss/authjs |
| Laravel | coss/laravel |
| Rails | coss-rails |
| Django | coss-django |
coss
$ coss login $ coss init $ coss emails send --simulate bounced $ coss logs tail --source email --level error $ coss listen --forward-to localhost:3000/webhooks
A CLI for the same API
Set a project up, follow logs and forward webhooks to localhost. No Node.js needed.
Read the docsInstall
| Language or tool | Command |
|---|---|
| TypeScript | npm install coss |
| Python | pip install cosscom |
| Go | go get github.com/cosscom/coss-go |
| Ruby | gem install coss |
| PHP | composer require coss/coss |
| .NET | dotnet add package Coss |
| CLI | brew install cosscom/tap/coss |
Installed in one line
The TypeScript SDK has zero dependencies and runs on Node.js, Bun, Deno and Cloudflare Workers. All are MIT licensed.
Read the docsLimits
- SDK dependencies
- 0
- SDK runtimes
- Node.js 22+, Bun, Deno, Workers
- SDK retries
- 2, honoring Retry-After
- SDK timeout
- 30 s per attempt
- Generated SDKs
- Python, Go, Ruby, PHP, Java, .NET
- Framework drivers
- Laravel, Rails, Django
- API description
- OpenAPI 3.1
- Webhook signatures
- Standard Webhooks
- License
- MIT
Questions
TypeScript and JavaScript (the coss package on npm), plus Python, Go, Ruby, PHP, Java and .NET, generated from the API's OpenAPI document, so every endpoint is in every SDK. Each endpoint's page in the API reference shows its call in every language.
Yes. The coss package has zero dependencies and runs unchanged on Node.js 22 and later, Bun, Deno and Cloudflare Workers.
Yes. It retries network errors, timeouts, 409, 429 and 5xx responses up to twice by default, honoring Retry-After. Every POST carries an Idempotency-Key that its retries reuse, so a retried send never goes out twice.
Yes. coss/nodemailer is a Nodemailer transport, and the Laravel, Rails and Django drivers replace the framework's mail transport through configuration. Better Auth and Auth.js have drop-ins for their email callbacks too.
With Homebrew (brew install cosscom/tap/coss), the install script, or npm install -g coss-cli. Homebrew and the install script install a standalone executable that needs no Node.js, for macOS, Linux and Windows.
Yes. The API publishes an OpenAPI 3.1 document at api.coss.com/openapi.json. The API reference and the generated SDKs are built from it.
Works with
On the same key, SDK, webhooks and logs: nothing more to set up.
Install it and send something today.
Development keys record every request and event and deliver nothing.