Docs
API Keys

Create API Key

Create a key. The token is only shown once.

POST/api-keys

Body Parameters

namestringrequired
A name to recognise the key.
permission'full_access' | 'sending_access'
Default full_access. Sending keys can only send email.
domain_idstring
Restrict a sending key to one domain.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.apiKeys.create({ name: 'Production' });
Try itPOST/api-keys

No key yet? Create one in the dashboard.