Resend icon

Resend

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

Receiving Email → List Attachments

AI-generated

Overview

This node operation lists the attachments of a specified received email. It is useful in scenarios where you need to access or process files attached to inbound emails, such as downloading attachments for further processing, archiving, or analysis. For example, you might use this operation to retrieve all attachments from a customer support email to automatically save them to a document management system.

Use Case Examples

  1. Retrieve all attachments from a specific received email to save them to cloud storage.
  2. List attachments from inbound emails to extract and analyze invoice files automatically.

Properties

Name Meaning
Email The received email whose attachments to list. This is required and can be selected from a list of received emails or specified by ID.
Return All Whether to return all attachment results or only up to a given limit.
Limit The maximum number of attachment results to return when 'Return All' is false.

Output

JSON

  • id - The unique identifier of the attachment.
  • filename - The name of the attachment file.
  • contentType - The MIME type of the attachment.
  • size - The size of the attachment in bytes.
  • receivedEmailId - The ID of the received email to which the attachment belongs.

Dependencies

  • Requires an API key credential for the Resend email platform to authenticate and access received emails and their attachments.

Troubleshooting

  • Ensure the 'Email' property is correctly set to a valid received email ID or selected from the list; otherwise, the node will fail to find attachments.
  • If 'Return All' is false and 'Limit' is set too low, not all attachments will be retrieved; adjust the limit accordingly.
  • Check API key credentials and permissions if the node fails to authenticate or access the received email data.

Discussion