Resend icon

Resend

Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform

Email → Get Attachment

AI-generated

Overview

This node operation retrieves a specific attachment from a sent email. It is useful when you need to access or download an attachment that was previously sent in an email, for example, to process the attachment data further or to store it elsewhere.

Use Case Examples

  1. Retrieve an invoice PDF attached to a sent email for archival.
  2. Download a report attachment from a sent email to analyze its contents.

Properties

Name Meaning
Email The sent email containing the attachment. This is required to identify which email's attachment to retrieve. It can be selected from a list of sent emails or specified by its ID.
Attachment ID The unique identifier of the attachment to retrieve. This is required to specify which attachment from the selected email to get.

Output

JSON

  • attachmentId - The unique identifier of the retrieved attachment.
  • emailId - The ID of the email from which the attachment was retrieved.
  • attachmentData - The content or data of the retrieved attachment.

Dependencies

  • Requires an API key credential for authentication with the Resend email platform.

Troubleshooting

  • Ensure the email ID and attachment ID are correct and correspond to existing sent emails and attachments.
  • Check that the API key credential is valid and has the necessary permissions to access email attachments.
  • Common errors include 'Attachment not found' if the attachment ID is invalid or does not belong to the specified email, and 'Unauthorized' if the API key is missing or invalid.

Discussion