Unipile icon

Unipile

Interact with Unipile API

Overview

This node interacts with the Unipile API to retrieve email attachments. Specifically, the "Get Attachment" operation under the "Email" resource allows users to fetch a specific attachment from an email by providing the email's ID and the attachment's ID. This is useful in scenarios where automated workflows need to process or analyze attachments from incoming emails, such as saving invoices, extracting data from documents, or forwarding attachments to other services.

Practical examples:

  • Automatically download and save invoice PDFs attached to emails into cloud storage.
  • Extract and process CSV attachments for data import workflows.
  • Forward specific attachments to team members or other applications based on email content.

Properties

Name Meaning
Email ID The unique identifier of the email from which to retrieve the attachment.
Attachment ID The unique identifier of the attachment within the specified email.
Additional Fields Optional extra parameters; currently supports:
- Account ID: The ID of the account when using provider UID (sent as a query parameter).

Output

The node outputs JSON data representing the requested email attachment. This typically includes metadata about the attachment and its content. If the attachment is binary (e.g., a PDF, image, or document), the node will provide the binary data accordingly, allowing subsequent nodes to handle or store the file.

Dependencies

  • Requires an active connection to the Unipile API via an API key credential configured in n8n.
  • The base URL for API requests is taken from the configured credentials.
  • No additional external dependencies are required beyond the Unipile API access.

Troubleshooting

  • Missing or invalid Email ID or Attachment ID: Ensure that both IDs are correctly provided and correspond to existing resources in the Unipile system.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions to access email attachments.
  • Network or API errors: Check connectivity to the Unipile API endpoint and confirm that the service is operational.
  • Empty or missing attachment data: Confirm that the specified attachment exists and is accessible; some attachments might be restricted or deleted.

Links and References

Discussion