Skip to content

API: Files

Simon Bartlett edited this page Feb 6, 2015 · 4 revisions

Table of Contents

GET /rooms

Retrieve all files in a JSON list

Query Parameters
Param Example Default Description
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