Resend icon

Resend

Interact with Resend API for emails, domains, API keys, broadcasts, audiences, and contacts

Actions25

Overview

This node interacts with the Resend API to manage email domains, specifically allowing you to update domain settings. The "Domain Update" operation lets you modify tracking and security options for a given domain used in your email sending setup.

Typical use cases include:

  • Enabling or disabling click tracking on emails sent from the domain.
  • Enabling or disabling open tracking to monitor email open rates.
  • Configuring TLS (Transport Layer Security) settings to enforce secure email delivery.

For example, if you want to enhance your email analytics by tracking user interactions or ensure stricter email transport security, this node operation allows you to update those domain-level configurations easily within an n8n workflow.

Properties

Name Meaning
Domain ID The unique identifier of the domain you want to update.
Domain Update Options Collection of options to update on the domain:
• Click Tracking: Enable/disable tracking of clicks within HTML emails.
• Open Tracking: Enable/disable tracking of email open rates.
• TLS: Set TLS mode for email delivery; options are "Opportunistic" (tries secure connection but falls back to unencrypted) or "Enforced" (requires TLS and will not send if unavailable).

Output

The node outputs JSON data representing the updated domain object as returned by the Resend API. This typically includes the domain's current configuration after the update, such as its ID, name, tracking settings, TLS status, and other metadata.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Resend API.
  • The node makes HTTP requests to https://api.resend.com/domains/{domainId} using PATCH method to update domain settings.
  • Ensure the API key has sufficient permissions to update domain configurations.

Troubleshooting

  • Common issues:

    • Invalid or missing Domain ID: The update will fail if the provided domain ID does not exist or is malformed.
    • Insufficient API permissions: The API key must have rights to update domain settings.
    • Invalid option values: For example, setting TLS to a value outside "opportunistic" or "enforced" will cause errors.
  • Error messages:

    • "404 Not Found": The specified domain ID does not exist.
    • "401 Unauthorized": API key is invalid or lacks permission.
    • "400 Bad Request": One or more update options are invalid or improperly formatted.
  • Resolution tips:

    • Verify the domain ID is correct and exists in your Resend account.
    • Check that the API key credential is valid and has update permissions.
    • Confirm that all option values conform to allowed types and enumerations.

Links and References

Discussion