Skip to content

search.messages

Searches for messages matching a query.

Surfacesearch
Rate limitTier 2 (20/min)
ArgumentRequiredType
countnointegerPass the number of results you want per “page”. Maximum of 100.
highlightnobooleanPass a value of true to enable query highlight markers (see below).
pagenointeger
queryyesstringSearch query.
sortnostringReturn matches sorted by either score or timestamp.
sort_dirnostringChange sort direction to ascending (asc) or descending (desc).

Works with every official Slack SDK — call it exactly as you would against Slack.

Source specSlack Web API OpenAPI v1.7.0 (apis.guru OAS3 conversion of slackapi/slack-api-specs, upstream archived 2024-03)
Retrieved / verified2026-06-04 · patches applied: 0
In frozen specyes — fields below are copied from the published spec
Conformanceexercised by unmodified official SDKs on every release
See alsoSlack’s search.messages reference