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.

FieldTypeNotes
fromstringMust use a verified domain. Name <address> is allowed.
tostring[]At least one recipient.
cc, bccstring[]Optional.
reply_tostring[]Optional.
subjectstringRequired.
html, textstringSend one or both.
headersobjectCustom headers.
attachmentsobject[]filename and base64 content.
tagsobjectKey-value pairs returned on events.
scheduled_atISO 8601Send later. Can be changed or cancelled before it runs.
in_reply_tostringId of an inbound email to reply to in the same thread.
Request body
{
  "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.

bash
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

StatusMeaning
queuedSaved and waiting to send.
sentAccepted by Amazon SES.
deliveredAccepted by the recipient mail server.
delivery_delayedTemporary problem, still retrying.
bouncedRejected. Hard bounces are suppressed automatically.
complainedRecipient marked it as spam. The address is suppressed.
opened, clickedOnly when tracking is on.
failedCould not be sent.
suppressedSkipped 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.