Skip to main content
When someone sends an email with file attachments, the adapter makes them available on message.raw.attachments. Each attachment includes the filename, MIME type, and a URL to download the content.

Attachment shape

FieldTypeDescription
filenamestringOriginal filename (e.g., invoice.pdf)
contentTypestringMIME type (e.g., application/pdf)
urlstringOptional download URL for the attachment content

Detecting and processing attachments

For more on receiving email attachments outside the Chat SDK, see Receiving Attachments.

Try it yourself

Attachments Example

Detects attachments and replies with a summary