Create an API key

Authenticate every request to the Resent API

API keys authenticate every request to https://api.resent.com.

1

Open API keys

Open API key settings in the dashboard.

2

Create a key

Choose a name and permission:

PermissionUse
full_accessAll API endpoints
sending_accessSend emails only (requires a verified domain)

Or create via API:

$curl -X POST 'https://api.resent.com/api-keys' \
> -H 'Authorization: Bearer re_xxxxxxxxx' \
> -H 'Content-Type: application/json' \
> -d '{"name":"Production","permission":"full_access"}'
3

Store the token

The response includes token once. Save it in your secret manager — you’ll send it as Authorization: Bearer re_xxxxxxxxx.

Never commit API keys to source control. Rotate or delete keys you no longer need.