Inbound

Download an attachment

Requires scope: read. The file's bytes, always as a download (Content-Disposition: attachment) with X-Content-Type-Options: nosniff. Content-Type is the declared type when it is on a safe list, else application/octet-stream; HTML and SVG are never served as themselves. ?inline=1 asks for inline display, granted only for PNG, JPEG, GIF, WebP, AVIF and BMP images.

get/v1/messages/received/{id}/attachments/{attachment_id}

Request

  • Base URL: https://api.mails.ai
  • URL: https://api.mails.ai/v1/messages/received/{id}/attachments/{attachment_id}
  • Auth: HTTP bearer

Path parameters

idstring required

Received message id (rcv_…).

attachment_idstring required

Attachment id (att_…).

Query parameters

inline'1'

1 to display a safe image inline instead of downloading it.

Response

The file.

Changes

No recorded changes to this operation across all 1 revision of this API.