Skip to main content
Beta API

This API is currently in beta and is subject to change without the usual notice period for changes.

assistant.search.context method

Usage info

This method is used to search messages across your Slack organization when used with an app using AI features. Full details on this method's usage are in the Data Access API usage guide.

Rate limiting

This method has special rate limiting conditions. For most teams, the limit is 10+ requests per minute while allowing for occasional bursts of more requests. For larger teams, this limit will be increased up to 180+ requests per minute with a generous burst.

Response

{
"ok": true,
"results": {
"messages": [
{
"author_user_id": "U0123456",
"team_id": "T0123456",
"channel_id": "C0123456",
"message_ts": "123456.7890",
"content": "Hey team, we'll be kicking off our mobile UX revamp for the Gizmo App...",
"is_author_bot": false,
"permalink": "https://mycompany.slack.com/archives/C012345ABC/p123456789"
}
]
},
"response_metadata": {
"next_cursor": "Q1VSUkVOVF9QQUdFOjI="
}
}