Get Channels
GET {{slackUrl}}/api/conversations.list?limit={{channelLimit}}&cursor={{channelCursor}}&exclude_archived={{excludeArchived}}&types={{channelTypes}}
This request retrieves channels from Slack API and stores channel IDs in the environment variable.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | string | The number of channels returned in a single API call. The Max. Limit enforced by Slack is 900. | |
cursor | string | Paginate through data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. | |
exclude_archived | string | Set to true to exclude archived channels from the list. | |
types | string | Filters response based on given channel type. Ex: public_channel, private_channel, mpim, im. |
RESPONSES
status: OK
{"ok":false,"error":"invalid_auth"}