Skip to content

API: Files

geoffwhittington edited this page Feb 7, 2015 · 4 revisions

Table of Contents

GET /files

Retrieve all files in a JSON list

Query Parameters
Param Example Default Description
room 54bff621a1e1aedf3ccd41e4 Room ID
skip 100 0 Specifies the number of rooms to skip
take 100 500 Specifies the number of rooms to return (Max: 5000)
Example
GET /files
[
  {
    "id": "54b881cc1d0e11af0e0180f9",
    "type":"image/jpeg",
    "size": "134kb",
    "name": "raptor.jpg",
    "url":"files/4fc2d9cadf78932542000003/1310.jpg",
    "uploaded": "2015-01-16T03:13:16.588Z",
    "owner": "54b78f39ab48031b077e1f80"
  }
]

GET /rooms/:room/files

An alias for GET /files, that overrides the room query parameter using the room path parameter.

Path Parameters
Parameter Description
room Room ID or slug