Latest API and SDK updates. Subscribe via RSS · Discord
Summary
You can now search messages and threads by keyword. Full-text search ranks results by relevance across the sender, recipients, subject, and message body, and works per-inbox or across your entire organization. List endpoints also gained substring filters, so you can narrow a list to a specific sender, recipient, or subject without paging through everything. Build agents that find the right conversation instead of scanning every thread.
What’s new?
New endpoints:
GET /v0/inboxes/:inbox_id/messages/search- Full-text search of messages in an inbox, ranked by relevance.GET /v0/threads/search- Org-wide full-text search across threads in every inbox.GET /v0/inboxes/:inbox_id/threads/search- Full-text search of threads in a single inbox.GET /v0/pods/:pod_id/threads/search- Full-text search of threads in a pod.
New features:
- Full-text search: A
qquery matches against the sender, recipients, and subject (substring) and the message body (tokenized full text). Results are ordered by relevance. Spam, trash, blocked, and unauthenticated items are always excluded, andlimitis capped at 100. - Match highlights: Each search result includes an optional
highlightsobject with the matched fragments per field, with matched terms wrapped in**. A field appears only when it matched, so the present keys also tell you which fields produced the hit.
Changes:
GET /v0/inboxes/:inbox_id/messagesnow acceptsfrom,to, andsubjectsubstring filters.tomatches theto,cc, orbccfields.GET /v0/threads,GET /v0/inboxes/:inbox_id/threads, andGET /v0/pods/:pod_id/threadsnow acceptsenders,recipients, andsubjectsubstring filters.- Filtered list requests are served by search and cap
limitat 100; results keep the usual newest-first ordering.
Use cases
Build agents that:
- Pull up every thread mentioning an order number, invoice, or customer name across all of your inboxes
- Find the conversation a reply belongs to by searching the subject or body, instead of paging through history
- Narrow a list to a single sender or recipient before processing, using the new substring filters
- Surface the matched snippet to a human reviewer using per-field
highlights
