Docs
Domains

Create Domain

Add a domain and get the DNS records to verify it.

POST/domains

Body Parameters

namestringrequired
The domain or subdomain, e.g. updates.example.com.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.domains.create({ name: 'updates.example.com' });
Try itPOST/domains

No key yet? Create one in the dashboard.