bird email threads messages list
Usage
Code example
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 extracted plain text.
Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.
Examples
Code example
bird email threads messages list <thread-id>
bird email threads messages list <thread-id> | jq -r '.data[].id'
bird email threads messages list <thread-id> --limit 50 --starting-after <cursor>Options
Filters
| Name | Description |
|---|---|
| --direction | Filter to received (inbound) or sent (outbound) messages. Possible values: outbound, inbound. |
| --include | Set to extracted_text to inline each message's extracted plain text. Possible values: extracted_text. |
| --label | Filter to messages that have this label. trash lists trashed messages. Any other label, whether that is archive, spam, blocked, unread or one of your own, lists the messages that have it and are not in the trash. 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 | Download an attachment from a thread message |
| bird email threads messages attachments | List a thread message's attachments |
| bird email threads messages body | Get a thread message's original body |
| bird email threads messages get | Get a message in a thread |
| bird email threads messages raw | Download a thread message's raw RFC 5322 content |
| bird email threads messages reply | Reply to a thread message |