provider conversations GET
/conversations.history @utdk/slack
/conversations.history conversations_history
Fetches a conversation's history of messages and events.
- token query
- Authentication token. Requires scope: `conversations:history`
- string
- channel query
- Conversation ID to fetch history for.
- string
- latest query
- End of time range of messages to include in results.
- number
- oldest query
- Start of time range of messages to include in results.
- number
- inclusive query
- Include messages with latest or oldest timestamp in results only when either timestamp is specified.
- boolean
- limit query
- The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.
- integer
- cursor query
- Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/docs/pagination) for more detail.
- 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import slack from '@utdk/slack';
await slack.conversationsHistory()