GET /messages endpoint lets you search across every inbox in your workspace in one call. You choose the mode that fits your use case — exact keyword matching for speed, semantic similarity for meaning-aware results, or a hybrid blend for the best overall relevance.
Search modes
| Mode | How it works | Plan |
|---|---|---|
keyword | Full-text search. Fast, exact-term matching. | All plans |
semantic | Vector similarity — finds messages by meaning, not just words. | Pro and up |
hybrid | Weighted blend of keyword + semantic. Best overall relevance. | Pro and up |
Run a search
Passquery, mode, and an optional limit as query parameters:
cURL
mode_used field confirming which mode actually ran, followed by a ranked messages array:
Response
Notes
- No
queryparameter — omitqueryentirely and the endpoint returns your most recent messages (mode_used: "recent"). - Restrict to one inbox — add
inbox_idto scope results to a single inbox instead of searching your entire workspace. - Plan fallback — on plans without semantic search, passing
mode=semanticormode=hybridgracefully falls back tokeyword. Themode_usedfield in the response always tells you exactly what ran.
Semantic search embeds message content automatically as mail arrives — there is
nothing to index yourself. New messages are immediately searchable by meaning.