npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@directus-labs/resend-operation

v1.0.1

Published

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

Downloads

34

Readme

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.

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.