Search threads
cooper_search_threadsUse this when you need the conversations that contain a keyword, sender, recipient, or subject, instead of each matching message. Read-only; requires auth. Inputs: inbox_id (required; inbox id, username, or email), q (required; every word must match subject, body text, from, or to), limit (optional, default 20, max 50). Returns {object:"list", inbox_id, q, data:[thread]} ordered by the best matching message. An empty q returns HTTP 400 missing_query. An unknown inbox returns inbox_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search words; every word must match subject, body, from, or to | |
| limit | No | Max threads to return (default 20, max 50) | |
| inbox_id | Yes | Inbox id (inb_…), username, or full email address |