GET
/emails/{email_id}/attachmentsRetrieve a list of attachments for a sent emailParameters
email_idstring · uuidpathrequiredThe ID of the email.
limitintegerqueryMaximum number of attachments to return.
afterstring · uuidqueryPagination cursor to fetch results after this attachment ID. Cannot be used with 'before'.
beforestring · uuidqueryPagination cursor to fetch results before this attachment ID. Cannot be used with 'after'.
Responses
objectListAttachmentsResponse
dataarray of objectArray containing attachment information.
Show child attributes
Show array items
content_dispositionstringHow the attachment should be displayed.
content_idstringThe content ID for inline attachments.
content_typestringThe MIME type of the attachment.
download_urlstringSigned URL to download the attachment content.
expires_atstring · date-timeTimestamp when the download URL expires.
filenamestringThe filename of the attachment.
idstring · uuidThe ID of the attachment.
sizeintegerSize of the attachment in bytes.
has_morebooleanIndicates if there are more results available.
objectstringType of the response object.
{
"data": [
{
"content_disposition": "attachment",
"content_id": "img001",
"content_type": "application/pdf",
"download_url": "https://cloudfront.example.com/path?Signature=...",
"expires_at": "2024-10-27T18:30:00.000Z",
"filename": "document.pdf",
"id": "660e8400-e29b-41d4-a716-446655440000",
"size": 2048
}
],
"has_more": false,
"object": "list"
}