provider search GET /search.messages
@utdk/slack /search.messages
search_messages
Searches for messages matching a query.
token query required
Authentication token. Requires scope: `search:read`
string
count query
Pass the number of results you want per "page". Maximum of `100`.
integer
highlight query
Pass a value of `true` to enable query highlight markers (see below).
boolean
page query
integer
query query required
Search query.
string
sort query
Return matches sorted by either `score` or `timestamp`.
string
sort_dir query
Change sort direction to ascending (`asc`) or descending (`desc`).
string

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

searchMessages
GET/search.messages
Searches for messages matching a query.

required

Authentication token. Requires scope: `search:read`

Pass the number of results you want per "page". Maximum of `100`.

Pass a value of `true` to enable query highlight markers (see below).

required

Search query.

Return matches sorted by either `score` or `timestamp`.

Change sort direction to ascending (`asc`) or descending (`desc`).

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.searchMessages()