# `bird email threads messages list`

## Usage

```bash
bird email threads messages list <thread-id> [flags]
```

## Description

List the messages in a conversation newest first, both directions. Page older messages with starting_after, and pass include=extracted_text to inline each message's durable plain text.

Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.

## Examples

```bash
bird email threads messages list
bird email threads messages list | jq -r '.data[].id'
bird email threads messages list --limit 50 --starting-after <cursor>
```

## Options

#### Filters

| Name                | Description                                                                                                                                                                                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `--direction`       | Filter to received (inbound) or sent (outbound) messages.                                                                                                                                                                                                    |
| `--include`         | Set to extracted_text to inline each message's extracted plain text.                                                                                                                                                                                         |
| `--label`           | Filter to messages carrying this label. trash lists trashed messages; any other label — archive, spam, blocked, unread, or a custom label — lists its non-trashed carriers. When omitted, received messages in the inbox and all sent messages are returned. |
| `--response-schema` | Print the fields this command returns, then exit                                                                                                                                                                                                             |

#### Pagination

| Name               | Description                                                                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `--ending-before`  | Cursor from the prev_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. |
| `--limit <n>`      | Maximum number of items to return per page.                                                                                                    |
| `--starting-after` | Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.  |

## Related

| Name                                                                                                | Description                                      |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [`bird email threads messages attachment`](/docs/cli/reference/email-threads-messages-attachment)   | Download an attachment from a thread message     |
| [`bird email threads messages attachments`](/docs/cli/reference/email-threads-messages-attachments) | List a thread message's attachments              |
| [`bird email threads messages body`](/docs/cli/reference/email-threads-messages-body)               | Get a thread message's original body             |
| [`bird email threads messages get`](/docs/cli/reference/email-threads-messages-get)                 | Get a message in a thread                        |
| [`bird email threads messages raw`](/docs/cli/reference/email-threads-messages-raw)                 | Download a thread message's raw RFC 5322 content |
| [`bird email threads messages reply`](/docs/cli/reference/email-threads-messages-reply)             | Reply to a thread message                        |