Actions22
- Chat Actions
- Contact Actions
- Handle Actions
- Message Actions
- Poll Actions
- Scheduled Message Actions
Message → Download Attachment
AI-generatedSummary
Downloads a received iMessage attachment by GUID from the Photon server, optionally resizing images or setting JPEG quality.
Inputs
- Attachment GUID (required) — GUID of the attachment to download (e.g. p:0/XXXXXXXX-...). Taken from Get Messages output or the trigger node. URL-encoded into the request path.
- Additional Fields > Width — Resize image to this width in pixels. 0 or unset keeps original size (not sent).
- Additional Fields > Height — Resize image to this height in pixels. 0 or unset keeps original size (not sent).
- Additional Fields > Quality — JPEG quality 1–100, only for image attachments. Sent as a query parameter when set.
Output shape
One output item per input item, with the server's response for the attachment placed in the item's json field.
The request is a GET to /api/v1/attachment/{guid}/download with encoding set to arraybuffer, and the result is put directly into json (response.data if present, otherwise the whole response). The source does not create an n8n binary property, so the file may not appear as a usable binary attachment. Check the output in a test run before relying on it downstream. With Continue On Fail enabled, failed items return json {error: message}.
Examples
Example 1: Fetch an image sent to you, shrunk to a thumbnail, after Get Messages.
Attachment GUID = {{ $json.attachments[0].guid }}; Additional Fields: Width 400, Height 400, Quality 70.
Example 2: Download an attachment at original size.
Set only Attachment GUID from the trigger node's message data; leave Additional Fields empty.