Add a domain

Verify a sending domain for deliverability

Sending from your own domain improves deliverability and unlocks third-party recipients.

1

Create the domain

$curl -X POST 'https://api.resent.com/domains' \
> -H 'Authorization: Bearer re_xxxxxxxxx' \
> -H 'Content-Type: application/json' \
> -H 'User-Agent: my-app/1.0' \
> -d '{"name":"example.com"}'

The response includes DNS records to publish (SPF, DKIM, and related entries).

2

Publish DNS

Add the records at your DNS provider. Wait for propagation (minutes to 48 hours depending on TTL).

3

Verify

$curl -X POST 'https://api.resent.com/domains/DOMAIN_ID/verify' \
> -H 'Authorization: Bearer re_xxxxxxxxx' \
> -H 'User-Agent: my-app/1.0'

When status is verified, send with from addresses on that domain.

See also Domains in the API Reference.