Documentation
Sendaro docs
Verify your domain, create an API key, send transactional email, and follow every message from accepted to delivered.
Get started
Quickstart
The whole API is one origin: https://sendaro.email. Authenticate with an API key in the Authorization header and send JSON.
- 1
Create an account and verify your domain
Sign up for free, then add the domain you want to send from and publish its three DNS records.
- 2
Create an API key
In the dashboard, open API keys and create a key. Copy it right away: the full key is shown once.
- 3
Install the SDK
Terminalnpm install sendaro - 4
Add your key to .env
The SDK reads
SENDARO_API_KEYfrom the environment. Keep the key on your server, out of browser code and out of git..envSENDARO_API_KEY=rf_your_api_key - 5
Send an email
Use the SDK, or call the HTTP API from any language.
// .env // SENDARO_API_KEY=rf_example_key_not_real import { Sendaro } from "sendaro"; // Reads SENDARO_API_KEY from the environment. const client = new Sendaro(); const accepted = await client.send( { from: "you@your-verified-domain.com", to: "you@example.com", subject: "Hello from Sendaro", html: "<p>It works.</p>", }, { idempotencyKey: "first-send-1" }, ); const message = await client.get(accepted.id); const page = await client.list({ limit: 50 });You get an email
idback right away. Accepted is not delivered yet: see Statuses.
Domains
You can only send from a domain you have verified. Add it in the dashboard under Domains, then publish three TXT records at your DNS provider.
| Record | Name | Value |
|---|---|---|
| DKIM · TXT | selector._domainkey | v=DKIM1; k=rsa; p=… |
| SPF · TXT | @ | v=spf1 include:amazonses.com ~all |
| DMARC · TXT | _dmarc | v=DMARC1; p=none; rua=mailto:dmarc@example.com |
Copy the exact names and values from the dashboard: the DKIM selector and key are unique to your domain. A domain can only have one SPF record, so if you already have one, add the include: to it instead of creating a second.
Sendaro checks the records automatically. DNS changes can take a while to show up; use Recheck on the domain page to check again now. Once all three pass, the domain is verified and ready to send.
Sending region
When you add a domain, you can choose the region it sends from, such as the EU or the US, if more than one is available on your account. Pick the region closest to your users or the one your data rules require. A domain's region can't be changed later, and sending subdomains always use their parent's region.
Sending subdomains
After a domain is verified, you can add up to 10 sending subdomains under it, such as updates.example.com or news.example.com. Use them to keep product updates apart from receipts and password resets. Each subdomain gets its own DNS records and must be verified before it can send. Subdomains don't count toward your domain limit.
Limits and removal
Each account includes one sending domain. Owners and admins can remove a domain once it has no pending sends and no subdomains. Removing it in Sendaro does not change your DNS.
API keys
API keys start with rf_. Create them in the dashboard under API keys. We store only a hash, so the full key is shown once, when you create it. Revoked keys stop working immediately.
| Permission | Scopes | Allows |
|---|---|---|
| Send & read | emails:send emails:read | Send email and read status and history. |
| Send only | emails:send | Send email. Best for app servers that never read mail back. |
| Send, read & suppressions | emails:send emails:read suppressions:read suppressions:write | Everything above, plus the suppression list. Use it to sync unsubscribes from your app. |
emails:send allows POST /api/emails. emails:read allows GET /api/emails and GET /api/emails/{id}. suppressions:read and suppressions:write allow reading and changing the suppression list. Send the key as a Bearer token:
Authorization: Bearer rf_example_key_not_realAPI reference
Send an email
POST/api/emails
Stores the email and queues it for sending. Requires the emails:send scope and a verified from domain. Returns 202 Accepted with the email id.
Body
fromstringrequiredSender address. Its domain must be verified in your workspace.
tostring (email)requiredOne recipient address.
subjectstringrequiredUp to 998 characters.
htmlstringHTML body, up to 500,000 characters. Send
html,text, or both. At least one is required.textstringPlain-text body, up to 500,000 characters.
reply_tostring (email)Address that replies go to.
scheduled_atstring (ISO 8601)Send later. A UTC timestamp ending in
Z, such as2026-11-14T09:00:00Z. Offsets are rejected.unsubscribebooleanAdd a one-click unsubscribe link hosted by Sendaro. See Unsubscribes.
headersobjectExtra email headers, up to 20:
List-Unsubscribe,List-Unsubscribe-Post,In-Reply-To,Referencesand your ownX-headers. Values must be a single line of up to 998 characters.
Headers
| Header | Description |
|---|---|
Authorization | Required. Bearer rf_… |
Content-Type | Required. application/json |
Idempotency-Key | Optional. Makes retries safe. See Idempotency. |
Response
{
"id": "6f1c2a9e-4b7d-4f0a-9a51-3c2d8e7b1f04",
"object": "email"
}One recipient per request. Attachments and batch sending are not supported.
Idempotency
Send an Idempotency-Key header so a retried request never sends twice. Keys are scoped to your workspace.
- Same key and same
from,to,subject,html,textandreply_towithin 24 hours: returns200with the original id. Nothing new is sent. - Same key with a different body within 24 hours: returns
409. - After 24 hours the key is free again and stores a new email. The earlier email is kept.
- Without a key, every request creates a new email.
Errors
Errors return JSON with an error string. Validation errors also include details.
| Status | Meaning |
|---|---|
202 | Accepted. The email is stored and queued. |
200 | Idempotent replay. Returns the original id. |
400 | Invalid body (validation_error), or the from domain is not verified. |
401 | Missing or invalid API key. |
403 | The key lacks the scope, or sending is suspended for the workspace. |
404 | No email with that id in your workspace (GET). |
409 | Idempotency key already used with a different body. |
429 | Rate limit exceeded. The request does not store a message. See Rate limits. |
Failures after a 202
Some problems only show up after the email is accepted. The status then moves to bounced, rejected or failed, and the error field explains why. The error recipient_not_verified means the recipient address was refused before sending. That failure is permanent: the status stays failed, and the message is not left looking delivered.
Retrieve emails
GET/api/emails/{id}
Returns one email with its status and event history. Requires emails:read. Field names are snake_case.
curl https://sendaro.email/api/emails/6f1c2a9e-4b7d-4f0a-9a51-3c2d8e7b1f04 \
-H "Authorization: Bearer rf_example_key_not_real"{
"id": "6f1c2a9e-4b7d-4f0a-9a51-3c2d8e7b1f04",
"object": "email",
"status": "delivered",
"from": "you@your-verified-domain.com",
"to": "you@example.com",
"subject": "Hello from Sendaro",
"html": "<p>It works.</p>",
"created_at": "2026-11-01T09:30:00.000Z",
"sent_at": "2026-11-01T09:30:01.000Z",
"error": null,
"provider_message_id": "0100019a...",
"events": [
{ "id": "…", "type": "queued", "created_at": "…", "payload": {} },
{ "id": "…", "type": "sent", "created_at": "…", "payload": {} },
{ "id": "…", "type": "delivered", "created_at": "…", "payload": {} }
]
}GET/api/emails?limit=50
Lists your workspace's emails, newest first, as { "object": "list", "data": [...] }. limit defaults to 50 and is capped at 100. List rows use camelCase names (createdAt, sentAt, providerMessageId).
Statuses
Accepted is not delivered
202 means Sendaro stored your email and queued it. sent means our mail servers accepted it. Only delivered means the recipient's mail server took it, and even that is not a promise of the inbox.| Status | What it means |
|---|---|
queued | Accepted and waiting to send. Scheduled emails wait here until scheduled_at. |
sending | Being handed to our mail servers. |
sent | Accepted by our mail servers for delivery. Not delivered yet. |
delivered | The recipient's mail server accepted it. |
delayed | The recipient's server deferred it. Delivery is still being attempted. |
bounced | The recipient's server rejected it, for example because the address doesn't exist. |
complained | The recipient marked it as spam. |
rejected | Refused before it was sent. |
failed | Could not be sent. The error field says why. |
cancelled | Cancelled before it was sent. |
Unsubscribes
Gmail, Yahoo and other mailbox providers expect bulk and marketing email to offer one-click unsubscribe. Password resets, receipts and other transactional email don't need it.
Let Sendaro handle it
Send "unsubscribe": true. Sendaro adds the List-Unsubscribe and List-Unsubscribe-Post headers, so mail apps show their own unsubscribe button. Put {{unsubscribe_url}} in your html or text and it becomes a link to a page where the recipient confirms with one click.
{
"from": "Acme <news@updates.acme.com>",
"to": "user@example.com",
"subject": "What's new in November",
"html": "<p>Here's what shipped.</p><p><a href=\"{{unsubscribe_url}}\">Unsubscribe</a></p>",
"unsubscribe": true
}When someone unsubscribes, the address is added to your suppression list with reason unsubscribe, later sends to it are skipped, and the email.unsubscribed webhook fires. Opening the page alone never unsubscribes anyone, so link scanners can't trigger it.
Use your own unsubscribe link
If your app already manages preferences, pass your own headers instead. The List-Unsubscribe-Post value must be List-Unsubscribe=One-Click, and your URL must accept a POST. Then add the address to the suppression list when someone unsubscribes, so Sendaro stops sending too.
{
"from": "Acme <news@updates.acme.com>",
"to": "user@example.com",
"subject": "What's new in November",
"html": "<p>Here's what shipped.</p>",
"headers": {
"List-Unsubscribe": "<https://acme.com/unsubscribe?u=123>",
"List-Unsubscribe-Post": "List-Unsubscribe=One-Click"
}
}Suppressions
Sendaro never sends to an address on your workspace's suppression list. A send to one ends as failed without reaching the recipient. Entries are added automatically for hard bounces (hard_bounce), spam complaints (abuse) and Sendaro unsubscribe links (unsubscribe). Soft bounces are recorded but don't suppress the address (see hard bounce vs soft bounce). You can manage the list in the dashboard under Suppressions or with an API key that has the suppression scopes.
GET/api/suppression
POST/api/suppression
DELETE/api/suppression?email=…
curl https://sendaro.email/api/suppression \
-H "Authorization: Bearer rf_example_key_not_real" \
-H "Content-Type: application/json" \
-d '{ "email": "user@example.com", "reason": "unsubscribe" }'Adding an address that is already suppressed returns 200 and keeps the original reason. Spam complaints can't be removed. Only remove an unsubscribe when the person has asked to hear from you again.
Rate limits
POST /api/emails has two limits, both over a rolling 60 seconds:
| Limit | Requests per 60 seconds |
|---|---|
| Per workspace | 120 |
| Per API key | 60 |
Responses include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds). Over the limit you get 429 with a Retry-After header, and the request does not store a message. Wait, then retry with the same Idempotency-Key.
Events
Webhooks
Webhooks tell your app when an email changes status. Add an endpoint in the dashboard under Webhooks and pick the events you want. Copy the signing secret when it is shown: it appears once.
| Event | Sent when |
|---|---|
email.sent | Our mail servers accepted the email. |
email.delivered | The recipient's mail server accepted it. |
email.bounced | The recipient's server rejected it. |
email.complained | The recipient marked it as spam. |
email.rejected | It was refused before sending. |
email.failed | It could not be sent. |
email.unsubscribed | The recipient used a Sendaro unsubscribe link. data.email is the address. |
email.received | Inbound mail arrived on a domain with receiving enabled. data.to, data.from, data.subject, and optional data.inbox (named address). |
Payload
Each delivery is a POST with a JSON body. data.id is always the email id. Other fields in data depend on the event.
{
"type": "email.delivered",
"created_at": "2026-11-01T09:30:02.000Z",
"data": {
"id": "6f1c2a9e-4b7d-4f0a-9a51-3c2d8e7b1f04",
"status": "delivered",
"providerMessageId": "0100019a..."
}
}Delivery and retries
Respond with any 2xx within 8 seconds. Anything else is retried with exponential backoff, up to 5 attempts in total. Every attempt is listed on the endpoint in the dashboard. Endpoints must use HTTPS and a public host.
Verify signatures
Every request carries two headers. rf-timestamp is the Unix time in seconds. rf-signature is a hex HMAC-SHA256 of the timestamp, a period, and the raw body, keyed with your endpoint's signing secret. Reject anything that doesn't match, or is more than 5 minutes old.
The SDK's verifyWebhook does all of this, with a constant-time comparison:
// app/api/sendaro/route.ts (Next.js route handler)
import { verifyWebhook } from "sendaro";
export async function POST(request: Request) {
// Use the raw body. Parsing and re-serialising JSON breaks the signature.
const payload = await request.text();
const valid = verifyWebhook(
payload,
request.headers.get("rf-signature"),
process.env.SENDARO_WEBHOOK_SECRET!,
request.headers.get("rf-timestamp"),
);
if (!valid) return new Response("Invalid signature", { status: 401 });
const event = JSON.parse(payload);
// event.type is e.g. "email.delivered"; event.data.id is the email id.
return new Response(null, { status: 204 });
}Without the SDK, the same check in Node.js looks like this:
import { createHmac, timingSafeEqual } from "node:crypto";
const expected = createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const valid =
expected.length === signature.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(signature)) &&
Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300;Tools
Node.js SDK
The official SDK for Node.js and TypeScript. It works with import and require on Node.js 20 or later. Install it with npm install sendaro. Source and issues: github.com/Sendaro-email/sendaro-node.
| Call | Does |
|---|---|
new Sendaro() | Reads the key from SENDARO_API_KEY. Or pass it: new Sendaro("rf_…"). |
send(email, { idempotencyKey }) | POST /api/emails. Resolves to { id, object }. |
get(id) | GET /api/emails/{id}. |
list({ limit }) | GET /api/emails. |
verifyWebhook(…) | Checks rf-signature and rf-timestamp. Returns true or false. |
A non-2xx response throws SendaroError with the API error as code and the HTTP status. The base URL defaults to https://sendaro.email; override it with SENDARO_BASE_URL.
OpenAPI spec
The full contract for the email and domain routes is an OpenAPI 3 document. Load it into your API client or code generator. Domain routes use your dashboard session; API keys work on the email routes.
Questions? Email hello@sendaro.email.