Quickstart

Make your first API call in 3 steps

Send your first email in a few minutes.

Quickstart Docs

Framework guides

All framework guides →


1

Create an API key

Create an API key in API key settings.

See Create an API key.

2

Verify a domain

Add and verify the domain you’ll send from before mailing third-party recipients.

See Add a domain.

3

Send an email

curl --request POST 'https://resent.one/api/v1/email/send' \
--header "Authorization: Bearer $RESENT_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"from": "Acme <noreply@yourdomain.com>",
"to": ["you@example.com"],
"subject": "hello world",
"html": "<p>it works!</p>"
}'
import { Resent } from "resent.one";
const resent = new Resent(process.env.RESENT_API_KEY);
const result = await resent.emails.send({
from: "Acme <noreply@yourdomain.com>",
to: ["you@example.com"],
subject: "hello world",
html: "<p>it works!</p>",
});
console.log(result.submission_id);

Next: Node.js SDK · API Reference