Reference
Fuselage
Channel List Joined
Lists all of the channels the calling user has joined. It supports the Offset, Count, and Sort Query Parameters along with just the Fields Query Parameter.
URL
Requires Auth
HTTP Method
/api/v1/channels.list.joined
yes
GET

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/channels.list.joined
Copied!

Example Result

1
{
2
"channels": [
3
{
4
"_id": "ByehQjC44FwMeiLbX",
5
"name": "invite-me",
6
"t": "c",
7
"usernames": [
8
"testing1"
9
],
10
"msgs": 0,
11
"u": {
12
"_id": "aobEdbYhXfu5hkeqG",
13
"username": "testing1"
14
},
15
"ts": "2016-12-09T15:08:58.042Z",
16
"ro": false,
17
"sysMes": true,
18
"_updatedAt": "2016-12-09T15:22:40.656Z"
19
}
20
],
21
"success": true
22
}
Copied!

Query Example Call

This example shows a list of Direct Messages' Rooms filtered by "customFields.field1" ended with "5" using a regular expression.
1
curl -H "X-Auth-Token: OKoJelLu8rYtbyc3c5YtTwxIE-UvT1FzWv9cdq1XPI1" \
2
-H "X-User-Id: hw5DThnhQmxDWnavu" \
3
http://localhost:3000/api/v1/channels.list.joined?query=%7B%20%22name%22%3A%20%7B%20%22%24regex%22%3A%20%22al%24%22%20%7D%20%7D
Copied!

Query Example Result

1
{
2
"channels": [
3
{
4
"_id": "GENERAL",
5
"ts": "2018-01-21T20:58:41.142Z",
6
"t": "c",
7
"name": "general",
8
"msgs": 1,
9
"default": true,
10
"_updatedAt": "2018-01-21T21:03:43.736Z",
11
"username": "user2"
12
}
13
],
14
"offset": 0,
15
"count": 1,
16
"total": 1,
17
"success": true
18
}
Copied!

Change Log

Version
Description
0.62.0
Add 'query' parameter support.
0.49.0
Count and offset query parameters supported.
0.48.0
Added
Last modified 8mo ago