Skip to Content

The ContentResult type of the TypeScript SDK, which messages.getContent take or answer.

type ContentResult = {
  attachments: AttachmentRef[]
  headers: ContentHeaders
  html: ContentBody | null
  text: ContentBody | null
}

Fields

FieldTypeDescription
attachmentsAttachmentRef[]List of file attachments
headersContentHeaders
htmlContentBody | nullHTML body part, or null if message has no HTML
textContentBody | nullPlain-text body part, or null if message has no plain text

Used by

MethodWhat it does
messages.getContentGet parsed message content and attachments

On this page