Search All Threads
get_agentmail_threads_searchFull-text search over threads in every inbox in the account. Returns count, limit, next_page_token and threads; page with next_page_token. Same fields as get_agentmail_threads, which is the one to use for everything in date order. This is the organization-wide view spanning every inbox in the account. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created; the inbox-scoped twin get_agentmail_inbox_threads_search is the one to use when a single inbox is meant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Full-text search query. Matched against the sender, recipients, and subject (substring) and the message body (tokenized full text). | |
| after | No | Timestamp after which to filter by. | |
| limit | No | Limit of number of items returned. | |
| before | No | Timestamp before which to filter by. | |
| page_token | No | Page token for pagination. | |
| Authorization | Yes | Bearer authentication |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||