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>"
> }'
1import { Resent } from "resent.one";
2
3const resent = new Resent(process.env.RESENT_API_KEY);
4
5const result = await resent.emails.send({
6 from: "Acme <noreply@yourdomain.com>",
7 to: ["you@example.com"],
8 subject: "hello world",
9 html: "<p>it works!</p>",
10});
11
12console.log(result.submission_id);

Next: Node.js SDK · API Reference