Learn more about our ✨ new ✨ native MCP
Directus Logo
  • Use Cases and Features
    • Headless CMS
      Manage and deliver content with ease
    • Backend-as-a-Service
      Build and ship applications faster
    • Headless Commerce
      A single source of truth for products
    • 100+ More Use Cases
      Build anything (or everything)
    • Instant APIs
      Connect a database, get REST + GraphQL APIs
    • Granular Policy-Based Auth
      Provide secure, autonomous data access
    • Visual Automation Builder
      Automate content and data workflows with ease
    • 50+ More Features
      Get everything you need out-of-the-box
    Project Showcase
    Built With Directus

    Built With Directus

    See what everyone's been building with Directus

  • Learn More
    • Blog
      Read our latest articles and guides
    • Case Studies
      Case studies and success stories
    • Community
      Join our new community forum.
    • Agency Directory
      Browse our list of agency partners
    • About Us
      Learn more about Directus and the team
    • Wall of Love
      See what others are saying about us
    • Contact
      Have a general inquiry or question for us?
    • Support
      Reach out to Directus support
    Watch Directus TV
    Directus TV
    Video

    Directus TV

    Go down the rabbit hole with hours of original video content from our team.

  • Developers
  • Enterprise
  • Pricing
Book a DemoGet StartedLog In
GitHub logo33,618
Directus Marketplace
Marketplace
  1. Extensions
  2. Integrations
  3. Templates
Back to Extensions
operation

Resend Operation

Resend API operation for Directus Flows. Send emails, update domains, and more.

Resend Email Operation

Resend Email Operation

The Resend Email Operation allows you to seamlessly integrate Resend's powerful email API into your Directus flows. This operation provides a comprehensive interface for sending emails, managing domains, API keys, audiences, and contacts, all within your Directus environment.

Features

  • Send individual and batch emails
  • Manage domains, API keys, audiences, and contacts
  • Support for HTML and plain text email content
  • Email scheduling capabilities
  • Attachment support
  • Custom headers and tags
  • Retrieve, update, and cancel emails

Use Cases

  • Transactional Emails: Send order confirmations, password resets, and account notifications.
  • Marketing Campaigns: Create and manage email lists for newsletters and promotional content.
  • User Onboarding: Automate welcome emails and onboarding sequences for new users.
  • Event Management: Send event invitations, reminders, and follow-ups.
  • Customer Support: Automate support ticket notifications and responses.
  • Email Infrastructure Management: Easily set up and manage email domains and API keys for your organization.

Endpoints and Fields

For more detailed information about the Resend API and its capabilities, please refer to the official Resend API reference.

Emails

  • Send Email

    • From
    • To
    • Subject
    • HTML Content
    • Plain Text Content
    • CC
    • BCC
    • Reply To
    • Scheduled At
    • Headers
    • Attachments
    • Tags
  • Send Batch Email

    • Batch Emails (JSON array of email objects)
  • Retrieve Email

    • Email ID
  • Update Email

    • Email ID
    • Scheduled At
  • Cancel Email

    • Email ID

Domains

  • Create Domain

    • Name
  • Retrieve Domain

    • Domain ID
  • Verify Domain

    • Domain ID
  • Update Domain

    • Domain ID
    • Click Tracking
    • Open Tracking
    • TLS
  • List Domains

    • (No additional fields)
  • Delete Domain

    • Domain ID

API Keys

  • Create API Key

    • Name
    • Permission
    • Domain ID
  • List API Keys

    • (No additional fields)
  • Delete API Key

    • API Key ID

Audiences

  • Create Audience

    • Name
  • Retrieve Audience

    • Audience ID
  • Delete Audience

    • Audience ID
  • List Audiences

    • (No additional fields)

Contacts

  • Create Contact

    • Email
    • Audience ID
    • First Name
    • Last Name
    • Unsubscribed
  • Retrieve Contact

    • Audience ID
    • Contact ID
  • Update Contact

    • Audience ID
    • Contact ID
    • First Name
    • Last Name
    • Unsubscribed
  • Delete Contact

    • Audience ID
    • Contact ID or Email
  • List Contacts

    • Audience ID

Configuration

  1. Select the desired endpoint (Emails, Domains, API Keys, Audiences, or Contacts).
  2. Choose the specific action to perform on the chosen endpoint.
  3. Enter your Resend API key (required for all operations).
  4. Fill in the required fields based on the chosen endpoint and action.
  5. Configure any optional fields as needed.

Directus / Resend Operation - Tutorial Video

Security Considerations

  • Keep your Resend API key secure and never expose it in client-side code.
  • Use Directus roles and permissions to control access to the Resend operation.
  • Be cautious when using user-provided data in email content to avoid potential security risks.
  • Regularly rotate your API keys to maintain security.

Error Handling

The operation will throw an error if the Resend API returns an error response. Make sure to handle these errors appropriately in your flows.


@directus-labs/resend-operation

npm i @directus-labs/resend-operation
This extension is sandboxed and can be installed through the Directus Marketplace. Learn more.
Bryant Gillespie
Bryant Gillespie
Verified
1.0.1
Works with v10.10.0+
Updated 1 year ago
96.2 KiB (4 files)
npm
  • Directus LogoDirectus Logo

    A composable backend to build your Headless CMS, BaaS, and more. 

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Dashboard
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2025 Monospace Inc
  • Cloud Policies
  • License
  • Terms
  • Privacy