The API key can have full access to Resend’s API or be only restricted to send
emails. * full_access: Can create, delete, get, and update any resource. *
sending_access: Can only send emails.
Copy
Ask AI
import { Resend } from 'resend';const resend = new Resend('re_xxxxxxxxx');const { data, error } = await resend.apiKeys.create({ name: 'Production' });