Sorry if this is a dumb question but I've connected Slack to a Django REST API and I'm trying to use conversations.history to fetch a convo history but I need the convos ID. Is it just the user bot token? The same goes for User IDs
x in one of the [ ])x in each of the [ ])Filling out the following details about bugs will help us solve your issue sooner.
@slack/client version:
node version:
OS version(s):
1.
2.
3.
What you expected to happen
What actually happened
Logs, screenshots, screencast, sample project, funny gif, etc.
As a note, this repository focuses around the Node.js package for the Slack API. For future questions about the API (rather than this package), I'd recommend looking at the Support article in the official API documentation, or asking in the Bot Developers Hangout, mentioned at the bottom of this repository's README. 馃槉
The ID of the conversation is literally just that: the conversation's ID; it identifies the conversation. How you get that ID is completely up to you.
If you're trying to get the history of a conversation in response to an event, it's likely that event will have an ID linked to that event; i.e. the message.channels event has a channel ID as one of the event arguments.
If you're trying to get the conversation ID given some other data, then a method like channels.list or im.list will get you a list of conversations, including conversation IDs, along with other metadata about those conversations that you can use to narrow your search down to one ID.
Likewise, the same applies to users and all other IDs. The IDs are ultimately passed to you in some way from the API, either via event arguments, or by inquiring yourself with methods.
For anyone else who came here because they want the conversation id of a specific channel to post to: visit the channel in the Slack webapp from https://app.slack.com/ . The id will be the last thing in the URL after the final slash that starts with the letter C.
it must be like this
https://app.slack.com/client/T005511LMG/CX-ID-CHANNEL/details/info
Most helpful comment
For anyone else who came here because they want the conversation id of a specific channel to post to: visit the channel in the Slack webapp from https://app.slack.com/ . The id will be the last thing in the URL after the final slash that starts with the letter C.