getThread
getThreadLists the locally indexed email conversation containing a given message across all folders in one connection, ordered oldest first, returning message cards without bodies for follow-up reading.
Instructions
List the locally indexed conversation containing a message, across all folders of one connection. Returns cards without bodies, oldest first, with undated messages last. Only locally indexed messages can appear. Messages are linked by reply headers (Message-ID, In-Reply-To, References), not by subject or participants.
Read each message with getMessage using the same connection and that card's key. Recognized copies are returned once, with other keys and folders under copies; total and paging count groups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Local message key from listMessages or search in this connection. Any member of the conversation works; use key, not the Message-ID header | |
| limit | No | Results per page: 1 to 200, default 50; larger values are capped at 200 | |
| offset | No | Default 0. For the next page, keep the same connection and original key and use the previous nextOffset. Stop when there is no nextOffset | |
| connection | Yes | Connection name from listConnections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Message key the conversation was requested for. | |
| total | Yes | Messages in the conversation; copies of one message count once. | |
| offset | Yes | Position of this page. | |
| messages | Yes | Messages, oldest first; undated last. | |
| connection | Yes | Connection name. | |
| nextOffset | No | Pass as offset to get the next page; absent at the end. |