Guides
Send emails
Send single and batch emails, schedule them and track their status.
Send an email
POST /emails validates the message, checks the domain and suppression list, saves it and queues it. You get an id back right away.
| Field | Type | Notes |
|---|---|---|
from | string | Must use a verified domain. Name <address> is allowed. |
to | string[] | At least one recipient. |
cc, bcc | string[] | Optional. |
reply_to | string[] | Optional. |
subject | string | Required. |
html, text | string | Send one or both. |
headers | object | Custom headers. |
attachments | object[] | filename and base64 content. |
tags | object | Key-value pairs returned on events. |
scheduled_at | ISO 8601 | Send later. Can be changed or cancelled before it runs. |
in_reply_to | string | Id of an inbound email to reply to in the same thread. |
{
"from": "Acme <hello@yourdomain.com>",
"to": ["ada@acme.com"],
"subject": "Your invoice",
"html": "<p>Your invoice is attached.</p>",
"tags": { "type": "invoice" },
"scheduled_at": "2026-12-01T09:00:00Z"
}Send a batch
POST /emails/batch accepts an array of up to 100 emails and returns one id for each.
Idempotency
Send an Idempotency-Key header so a retried request never sends twice. Repeating a key with the same body returns the original response for 24 hours. Reusing it with a different body returns 409.
curl -X POST https://api.nusend.dev/emails \
-H "Authorization: Bearer $NUSEND_API_KEY" \
-H "Idempotency-Key: invoice-1042-ada" \
-H "Content-Type: application/json" \
-d '{ "from": "hello@yourdomain.com", "to": ["ada@acme.com"], "subject": "Invoice", "text": "Attached." }'Email status
| Status | Meaning |
|---|---|
queued | Saved and waiting to send. |
sent | Accepted by Amazon SES. |
delivered | Accepted by the recipient mail server. |
delivery_delayed | Temporary problem, still retrying. |
bounced | Rejected. Hard bounces are suppressed automatically. |
complained | Recipient marked it as spam. The address is suppressed. |
opened, clicked | Only when tracking is on. |
failed | Could not be sent. |
suppressed | Skipped because the address is on the suppression list. |
Retrieve an email and its events with GET /emails/:id. Cancel a scheduled email with POST /emails/:id/cancel.