Skip to Content

Finding messages: full-text search, structured queries and the updates they select, highlighted snippets, meaning-based (semantic) search and similar messages.

Its 6 methods, each a page of its own, in the order the API reference presents them:

MethodWhat it doesIt calls
search.fullTextFull-text search a mailboxGET /mailboxes/{mailboxId}/search
search.queryStructured filter and query messagesPOST /mailboxes/{mailboxId}/search/query
search.updateMatchesUpdate flags, labels and keywords for every message a search selectsPATCH /mailboxes/{mailboxId}/search/query
search.snippetsHighlighted excerpts for search resultsPOST /mailboxes/{mailboxId}/search/snippets
search.semanticSemantic (meaning-based) search of a mailboxGET /mailboxes/{mailboxId}/search/semantic
search.similarMessages similar to one messageGET /mailboxes/{mailboxId}/messages/{messageId}/similar

In the API reference: Messages.