Package Exports
- n8n-nodes-resend
- n8n-nodes-resend/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n8n-nodes-resend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Resend Nodes for n8n
Overview
This package provides n8n nodes to interact with the Resend email platform. It allows you to:
- Send emails using the Resend API.
- Receive and process webhook events from Resend for various email activities.
This integration uses the official Resend API.
Prerequisites/Setup
- You need a Resend account. If you don't have one, you can sign up at resend.com.
- For detailed information about the Resend API, refer to the official API Documentation.
Credentials Setup (ResendApi)
To use these nodes, you need to configure the "Resend API" credentials in n8n:
- In your n8n workspace, go to Credentials and click Add credential.
- Search for "Resend API" and select it.
- Fill in the required field:
- API Key: Your Resend API key.
- You can find your API Key in your Resend dashboard under API Keys (https://resend.com/api-keys). Create a new API key if you haven't already, ensuring it has the necessary permissions (e.g., "Full access" for sending emails).
- Save the credential.
Nodes
Resend Action Node
- Name:
Resend - Description: Allows sending emails and performing other Resend actions (currently, only sending email is implemented).
Operations
Send Email
- Description: Sends an email using the Resend API.
- Parameters:
- Email Format: Choose between HTML, Text, or Both formats for your email content.
- From: (String, Required) The sender's email address (e.g.,
you@yourdomain.com). Must be a verified domain in Resend. - To: (String, Required) Comma-separated list of recipient email addresses (e.g.,
user1@example.com, user2@example.com). - Subject: (String, Required) The subject line of the email.
- HTML Content: (String, Required for HTML/Both formats) The HTML content of the email.
- Text Content: (String, Required for Text/Both formats) The plain text content of the email.
- Additional Options: (Collection, Optional) Contains optional email parameters:
- CC: Comma-separated list of CC recipient email addresses.
- BCC: Comma-separated list of BCC recipient email addresses.
- Reply To: An email address to set as the reply-to address.
- Text Content (Fallback): Plain text version for HTML-only emails (recommended for better deliverability).
- Tags: (Collection, Optional) A list of tags (name/value pairs) to categorize the email (e.g.,
[{ "name": "category", "value": "transactional" }]).
Resend Trigger Node
- Name:
Resend Trigger - Description: Receives and processes webhook events from Resend for various email activities.
Setup
- Add the
Resend Triggernode to your n8n workflow. - Configure the node parameters:
- Webhook Signing Secret: Enter your Resend webhook signing secret (starts with
whsec_). You'll get this from step 4 below. - Events: Select the specific email events you want Resend to send to your n8n trigger.
- Webhook Signing Secret: Enter your Resend webhook signing secret (starts with
- Copy the webhook URL: In the trigger node, you'll see a webhook URL displayed. Copy this URL (use the test URL while building your workflow, and the production URL when the workflow is activated).
- Configure webhook in Resend dashboard:
- Navigate to API -> Webhooks in your Resend dashboard (https://resend.com/webhooks).
- Click Add webhook.
- Paste the copied n8n webhook URL into the "Webhook URL" field.
- Select the same events that you configured in your n8n trigger node.
- Save the webhook configuration.
- Copy the Webhook Signing Secret that Resend displays (starts with
whsec_).
- Add the signing secret: Go back to your n8n
Resend Triggernode and paste the signing secret into the Webhook Signing Secret parameter.
Supported Events
The trigger node supports all Resend webhook event types:
- Email Events:
email.sent- Email was sent successfullyemail.delivered- Email was delivered to the recipientemail.delivery_delayed- Email delivery was delayedemail.complained- Recipient marked email as spamemail.bounced- Email bounced (recipient address invalid)email.opened- Recipient opened the emailemail.clicked- Recipient clicked a link in the email
- Contact Events:
contact.created- New contact was createdcontact.updated- Contact information was updatedcontact.deleted- Contact was deleted
- Domain Events:
domain.created- New domain was addeddomain.updated- Domain configuration was updateddomain.deleted- Domain was removed
Security
The trigger node automatically verifies webhook signatures using the Svix library to ensure webhooks are coming from Resend. This prevents unauthorized webhook calls to your n8n workflow.
Output
The trigger node outputs the complete JSON payload sent by Resend for the configured event. This payload contains detailed information about the event, such as:
- Email ID and message details
- Recipient information
- Timestamp of the event
- Event-specific data (e.g., bounce reason, click data)
Example Usage
- Resend Action Node:
- Scenario: When a new user signs up in your application (e.g., via a webhook from your backend or a database trigger), use the
Resendnode to send them a personalized welcome email.
- Scenario: When a new user signs up in your application (e.g., via a webhook from your backend or a database trigger), use the
- Resend Trigger Node:
- Scenario: When an
email.bouncedevent is received, you could have a workflow that:- Parses the bounced email address from the trigger output.
- Updates a contact record in your CRM to mark the email as invalid.
- Notifies your support team about the bounce.
- Scenario: When an
License
MIT
Contribution & Issues
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to:
- Raise an issue on the GitHub repository.
- Fork the repository and submit a pull request.