GET/emails/receiving/{email_id}/attachments/{attachment_id}

Get an attachment for a received email

Retrieves an attachment belonging to a received email. Use email_id to identify the email and attachment_id to select its attachment; the response includes a signed download URL and its expiration time.

2 parameters
email_idstringrequired
The UUID of the received email that contains the attachment.
attachment_idstringrequired
The UUID of the attachment to retrieve.

1 status code
200Returns the attachment's identifier, filename, MIME type, content disposition, signed download URL, URL expiration time, and size.
objectstringoptional
The type of object.
idstringoptional
The ID of the attachment.
filenamestringoptional
The filename of the attachment.
content_typestringoptional
The MIME type of the attachment.
content_idstringoptional
The content ID for inline attachments.
content_dispositionstringoptional
How the attachment should be displayed.
Allowed:inlineattachmentnull
download_urlstringoptional
Signed URL to download the attachment content.
expires_atstringoptional
Timestamp when the download URL expires.
sizeintegeroptional
Size of the attachment in bytes.

Error handling

The email_id and attachment_id path parameters must be valid UUIDs identifying a received email and one of its attachments.