TurboFiles

List All Files

Retrieves a paginated list of all files.

GET
/ v1 / files

Returns

Returns a paginated list of File objects ordered by created_at field in descending order.
curl "https://api.turbofiles.io/v1/files" \
  -H 'Accept: application/vnd.api+json' \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Authorization: Bearer {api_key}'
{
  "meta": {
    "rangeTruncated": true
  },
  "jsonapi": {
    "version": "1.1"
  },
  "links": {
    "prev": null,
    "next": "https://api.turbofiles.io/v1/files?page[after]=2023-11-07T05:31:56Z"
  },
  "data": [
    {
      "type": "files",
      "id": "a8fhd83jpk.png",
      "attributes": {
        "format": "png",
        "size": 1901020,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      },
      "links": {
        "self": "https://api.turbofiles.io/v1/files/a8fhd83jpk.png",
        "download": "https://cdn.turbofiles.io/public/ud3k2pif.png"
      }
    },
    {...},
    {...}
  ]
}