# ContentResult

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

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

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `attachments` | [`AttachmentRef[]`](/docs/sdks/typescript/types/attachment-ref) | List of file attachments |
| `headers` | [`ContentHeaders`](/docs/sdks/typescript/types/content-headers) |  |
| `html` | [`ContentBody`](/docs/sdks/typescript/types/content-body) \| `null` | HTML body part, or null if message has no HTML |
| `text` | [`ContentBody`](/docs/sdks/typescript/types/content-body) \| `null` | Plain-text body part, or null if message has no plain text |

## Used by

| Method | What it does |
| --- | --- |
| [`messages.getContent`](/docs/sdks/typescript/messages/get-content) | Get parsed message content and attachments |
