Search

LAST EDIT Jul 21 2021

Message search is built-in to the chat API. You can enable and/or disable the search indexing on a per channel type. The command shown below selects the channels in which John is a member. Next, it searches the messages in those channels for the keyword “'supercalifragilisticexpialidocious'”:

Pagination works via the standard limit and offset parameters. The first argument, filter, uses a MongoDB style query expression.

We do not run MongoDB on the backend, so only a subset of the standard MongoDB filters are supported.

Additionally, this endpoint can be used to search for messages that have attachments.