List threads
cooper_list_threadsUse this when you need whole conversations instead of individual messages, for example to see who is in a thread and when the last reply arrived. Read-only; requires auth. Inputs: inbox_id (optional; inbox id, username, or email — omit to list every inbox on the account), limit (optional, default 20, max 100), page_token (optional cursor from a previous page), before (optional ISO-8601 upper bound on updated_at), after (optional ISO-8601 lower bound on updated_at). Returns {object:"list", inbox_id, data:[thread], next_page_token}. Each thread has id, subject (first message), preview (latest message), senders, recipients, message_count, last_message_id, labels, attachment_count, received_at, sent_at, created_at, and updated_at. Ordered by updated_at, newest first. A bad page_token returns HTTP 400 invalid_page_token. An unknown inbox_id returns inbox_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only threads whose latest message is after this ISO-8601 timestamp. | |
| limit | No | Max threads to return (default 20, max 100) | |
| before | No | Only threads whose latest message is before this ISO-8601 timestamp. | |
| inbox_id | No | Inbox id, username, or email. Omit to list threads in every inbox on the account. | |
| page_token | No | Cursor from next_page_token. A bad token returns invalid_page_token. |