Request a list of channels of a team. The response contains the channel ID and display name. The channel ID can be used for subsequent requests to fetch details and messages from the channel.
Returns a list of channels available to the user in the following form:
[ { "id": "<ID of the channel>", "displayName": "<Name of the channel>" }, ... ]
RESPONSE Fields | Value Type | Description |
---|---|---|
id | String | The GUID of the channel, used for details and further operations |
displayName | String | The display name value of the channel, as displayed in the interface |
# Request # Use user:password for authorization GET /api/cowork/teams/3n1ytbwme7ngfyn9g9guwwurt/channels HTTP/1.1 Accept: */* Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json [ { "id": "epmlsh7trr535mrs9z7xcfn1w", "displayName": "First Level" }, { "id": "7x9brvwhsm3gi3xnl0otdk8y3", "displayName": "Second Level" } ]