API referenceEmails
List attachments of a received email
GET
/emails/receiving/{id}/attachmentsAuthorization
apiKey AuthorizationBearer <token>
A project API key: Authorization: Bearer s0_…
In: header
Path Parameters
id*string
Length
1 <= length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/emails/receiving/string/attachments"{ "object": "list", "has_more": true, "data": [ { "id": "string", "filename": "string", "content_type": "string", "content_disposition": "attachment", "content_id": "string", "size": 0, "download_url": "string", "expires_at": "2019-08-24T14:15:22Z" } ]}Download the raw message of a received email GET
The raw MIME, with the same authentication as the read that returned the link. On Cloudflare it is read from your R2 bucket with the runtime token and answered as a download; on Amazon SES it redirects to a presigned S3 URL. `expires` (from the `download_url`) is checked when present.
Retrieve an attachment of a received email GET
Metadata and a download URL valid for up to one hour: presigned from your S3 bucket on Amazon SES, a link to `…/content` on Cloudflare.