curl --location --request GET 'https://slack.com/api/admin.conversations.search' \
--header 'token;'
{
"channels": [
{
"created": 1449252889,
"creator": "U012A3CDE",
"id": "C012AB3CD",
"is_archived": false,
"is_channel": true,
"is_ext_shared": false,
"is_general": true,
"is_group": false,
"is_im": false,
"is_member": true,
"is_mpim": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"is_private": false,
"is_shared": false,
"name": "general",
"name_normalized": "general",
"num_members": 4,
"pending_shared": [],
"previous_names": [],
"purpose": {
"creator": "",
"last_set": 0,
"value": "This channel is for team-wide communication and announcements. All team members are in this channel."
},
"topic": {
"creator": "",
"last_set": 0,
"value": "Company-wide announcements and work-based matters"
},
"unlinked": 0
}
],
"ok": true,
"response_metadata": {
"next_cursor": "dGVhbTpDMDYxRkE1UEI="
}
}
cursor
to next_cursor
returned by the previous call to list items in the next page.private
will search private channels, while private_exclude
will exclude them. For a full list of types, check the Types section.relevant
(search ranking based on what we think is closest), name
(alphabetical), member_count
(number of users in the channel), and created
(date channel was created). You can optionally pair this with the sort_dir
arg to change how it is sortedasc
for ascending order like (1, 2, 3) or (a, b, c), and desc
for descending order like (3, 2, 1) or (c, b, a)admin.conversations:read