Reference
Fuselage
Channel Files
Retrieves the files from a channel. It supports the Offset, Count, and Sort Query Parameters along with Query and Fields Query Parameters.
URL
Requires Auth
HTTP Method
/api/v1/channels.files
yes
GET

Query Parameters

Argument
Example
Required
Description
roomId roomName
ByehQjC44FwMeiLbX test
Required
The room id. The room name.

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/channels.files?roomId=ByehQjC44FwMeiLbX
Copied!
1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/channels.files?roomName=test
Copied!

Example Result

1
{
2
"files": [
3
{
4
"_id": "S78TNnvaWGwdYRaCD",
5
"name": "images.jpeg",
6
"size": 9778,
7
"type": "image/jpeg",
8
"rid": "GENERAL",
9
"description": "",
10
"store": "GridFS:Uploads",
11
"complete": true,
12
"uploading": false,
13
"extension": "jpeg",
14
"progress": 1,
15
"user": {
16
"_id": "ksKsKmrjvxzkzxkww",
17
"username": "rocket.cat",
18
"name": "Rocket Cat"
19
},
20
"_updatedAt": "2018-03-08T14:47:37.003Z",
21
"instanceId": "uZG54xuoKauKHykbQ",
22
"etag": "jPaviS9qG22xC5sDC",
23
"path": "/ufs/GridFS:Uploads/S78TNnvaWGwdYRaCD/images.jpeg",
24
"token": "28cAb868d9",
25
"uploadedAt": "2018-03-08T14:47:37.295Z",
26
"url": "/ufs/GridFS:Uploads/S78TNnvaWGwdYRaCD/images.jpeg"
27
}
28
],
29
"count": 1,
30
"offset": 0,
31
"total": 1,
32
"success": true
33
}
Copied!

Change Log

Version
Description
0.64.0
Change userId to user object in response
0.59.0
Added
Last modified 8mo ago
Export as PDF
Copy link
Edit on GitHub