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

KeyDatatypeRequiredDescription
limitstringThe number of channels returned in a single API call. The Max. Limit enforced by Slack is 900.
cursorstringPaginate through data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata.
exclude_archivedstringSet to true to exclude archived channels from the list.
typesstringFilters response based on given channel type. Ex: public_channel, private_channel, mpim, im.

RESPONSES

status: OK

{"ok":false,"error":"invalid_auth"}