admin conversations search

GET {{baseUrl}}/admin.conversations.search?team_ids=<string>&query=<string>&limit=<integer>&cursor=<string>&search_channel_types=<string>&sort=<string>&sort_dir=<string>

Search for public or private channels in an Enterprise organization.

Request Params

KeyDatatypeRequiredDescription
team_idsstringComma separated string of team IDs, signifying the workspaces to search through.
querystringName of the the channel to query by.
limitstringMaximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
cursorstringSet cursor to next_cursor returned by the previous call to list items in the next page.
search_channel_typesstringThe type of channel to include or exclude in the search. For example private will search private channels, while private_exclude will exclude them. For a full list of types, check the Types section.
sortstringPossible values are 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 sorted
sort_dirstringSort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a)

HEADERS

KeyDatatypeRequiredDescription
tokenstring(Required) Authentication token. Requires scope: admin.conversations:read

RESPONSES

status: OK

{&quot;channels&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;created&quot;:&quot;\u003cinteger\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_channel&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_org_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_private&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_mpim&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name_normalized&quot;:&quot;\u003cstring\u003e&quot;,&quot;members&quot;:[&quot;\u003cstring\u003e&quot;],&quot;topic&quot;:{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_set&quot;:&quot;\u003cinteger\u003e&quot;},&quot;purpose&quot;:{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_set&quot;:&quot;\u003cinteger\u003e&quot;},&quot;accepted_user&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_archived&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_frozen&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_general&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_member&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_moved&quot;:&quot;\u003cinteger\u003e&quot;,&quot;is_non_threadable&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_pending_ext_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_read_only&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_thread_only&quot;:&quot;\u003cboolean\u003e&quot;,&quot;last_read&quot;:&quot;\u003cstring\u003e&quot;,&quot;latest&quot;:{},&quot;num_members&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pending_shared&quot;:[&quot;\u003cstring\u003e&quot;],&quot;previous_names&quot;:[&quot;\u003cstring\u003e&quot;],&quot;priority&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unlinked&quot;:&quot;\u003cinteger\u003e&quot;,&quot;unread_count&quot;:&quot;\u003cinteger\u003e&quot;,&quot;unread_count_display&quot;:&quot;\u003cinteger\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;created&quot;:&quot;\u003cinteger\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_channel&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_org_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_private&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_mpim&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name_normalized&quot;:&quot;\u003cstring\u003e&quot;,&quot;members&quot;:[&quot;\u003cstring\u003e&quot;],&quot;topic&quot;:{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_set&quot;:&quot;\u003cinteger\u003e&quot;},&quot;purpose&quot;:{&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;creator&quot;:&quot;\u003cstring\u003e&quot;,&quot;last_set&quot;:&quot;\u003cinteger\u003e&quot;},&quot;accepted_user&quot;:&quot;\u003cstring\u003e&quot;,&quot;is_archived&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_frozen&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_general&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_member&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_moved&quot;:&quot;\u003cinteger\u003e&quot;,&quot;is_non_threadable&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_pending_ext_shared&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_read_only&quot;:&quot;\u003cboolean\u003e&quot;,&quot;is_thread_only&quot;:&quot;\u003cboolean\u003e&quot;,&quot;last_read&quot;:&quot;\u003cstring\u003e&quot;,&quot;latest&quot;:{},&quot;num_members&quot;:&quot;\u003cinteger\u003e&quot;,&quot;pending_shared&quot;:[&quot;\u003cstring\u003e&quot;],&quot;previous_names&quot;:[&quot;\u003cstring\u003e&quot;],&quot;priority&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unlinked&quot;:&quot;\u003cinteger\u003e&quot;,&quot;unread_count&quot;:&quot;\u003cinteger\u003e&quot;,&quot;unread_count_display&quot;:&quot;\u003cinteger\u003e&quot;}],&quot;next_cursor&quot;:&quot;\u003cstring\u003e&quot;}