PluginsResend
Get Credentials
Step-by-step instructions for obtaining Resend credentials
This guide walks you through obtaining all required credentials for the Resend plugin.
Authentication Method
The Resend plugin uses API key authentication.
api_key(default) - API key authentication
API Key Setup
Step 1: Get API Key
- Log in to your Resend account
- Navigate to API Keys in the dashboard
- Click Create API Key
- Give your key a name (e.g., "Corsair Integration")
- Select the required permissions
- Click Create
- Copy the API key immediately
- Important: Store the key securely - you won't be able to see it again
Storing Credentials:
The preferred method is to store the API key in the database using the keys API:
await corsair
.withTenant('default')
.resend.keys.setApiKey('your-api-key');Alternatively, you can provide the key directly in the plugin configuration:
resend({
authType: "api_key",
key: process.env.RESEND_API_KEY,
})Webhook Secret
Step 1: Create Webhook
- In your Resend dashboard, go to Webhooks
- Click Add Webhook
- Configure:
- Webhook URL: Your webhook endpoint (e.g.,
https://yourapp.com/api/webhook) - Events: Select the events you want to receive:
email.sentemail.deliveredemail.bouncedemail.openedemail.clickedemail.complainedemail.failedemail.receiveddomain.createddomain.updated
- Webhook URL: Your webhook endpoint (e.g.,
- Click Add Webhook
- After creation, copy the Signing Secret shown
- Store it securely
Storing Credentials:
The preferred method is to store the webhook secret in the database using the keys API:
await corsair
.withTenant('default')
.resend.keys.setWebhookSignature('your-webhook-secret');Alternatively, you can provide the secret directly in the plugin configuration:
resend({
webhookSecret: process.env.RESEND_WEBHOOK_SECRET,
})Required Credentials Summary
| Credential | Required For | Where to Find |
|---|---|---|
| API Key | API Key auth | Dashboard → API Keys |
| Webhook Secret | Webhooks | Dashboard → Webhooks → Signing Secret |
For general information about how Corsair handles authentication, see Authentication.