Get started

Send your first email

Verify a domain, create an API key and send an email in about two minutes.

This guide takes you from a new account to a delivered email.

1. Create a team

Sign up, then create a team. A team owns your domains, API keys, audiences and email history. Pick the AWS region closest to your users.

2. Add and verify a domain

Open Domains, choose Add domain and enter the domain you want to send from. NuSend shows the DNS records to add at your DNS provider. See the Domains guide for the full list.

3. Create an API key

Open API Keys and choose Create API key. Copy the token straight away, it is shown only once.

4. Send an email

curl
curl -X POST https://api.nusend.dev/emails \
  -H "Authorization: Bearer $NUSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@yourdomain.com>",
    "to": ["ada@acme.com"],
    "subject": "Hello world",
    "html": "<p>It works!</p>"
  }'
Node.js (fetch)
const response = await fetch("https://api.nusend.dev/emails", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.NUSEND_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    from: "Acme <hello@yourdomain.com>",
    to: ["ada@acme.com"],
    subject: "Hello world",
    html: "<p>It works!</p>",
  }),
});

const { id } = await response.json();

The response returns immediately with the email id. Sending happens in the background.

Response
{ "id": "msg_28lnj" }

5. Check the result

Open Emails in the dashboard to see the status and every event. Fetch it with GET /emails/msg_28lnj, or subscribe to webhooks to be notified as it happens.