Resend icon

Resend

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

Actions25

Overview

This node integrates with the Resend API to manage email-related resources such as emails, domains, API keys, broadcasts, audiences, and contacts. Specifically for the Domain - Delete operation, it allows users to delete an existing email domain by its unique identifier. This is useful when you want to remove a domain from your email sending setup, for example, if the domain is no longer in use or was added by mistake.

Practical scenarios include:

  • Cleaning up unused or deprecated domains from your email service.
  • Automating domain lifecycle management within larger workflows.
  • Ensuring compliance by removing domains that should no longer send emails.

Properties

Name Meaning
Domain ID The unique identifier of the domain to delete. Example: 4dd369bc-aa82-4ff3-97de-514ae3000ee0

Output

The output JSON contains the response from the Resend API after attempting to delete the specified domain. Typically, this will be an empty object or confirmation message indicating successful deletion. If the deletion fails, the output will contain error details.

No binary data is produced by this operation.

Example output JSON on success:

{}

Example output JSON on failure:

{
  "error": "Domain not found"
}

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 the DELETE method.
  • Ensure the API key has sufficient permissions to delete domains.
  • No additional environment variables are required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Invalid or missing Domain ID: The domain ID must be correctly provided; otherwise, the API will return an error.
    • Insufficient permissions: The API key used must have rights to delete domains.
    • Network or connectivity problems may cause request failures.
  • Error messages:

    • "Domain not found": The specified domain ID does not exist. Verify the domain ID is correct.
    • "Unauthorized" or "Forbidden": The API key lacks permission to delete domains. Check API key scopes.
    • "Invalid API key": The authentication token is incorrect or expired. Update the credentials.

To resolve errors, verify input parameters, ensure valid API credentials, and check network connectivity.

Links and References

Discussion