TurboFiles

Retrieve a File

Retrieves the file with the given ID.

GET
/ v1 / files / :id
Returns
Returns a File object
curl "https://api.turbofiles.io/v1/files/a8fhd83jpk.png" \
  -H 'Accept: application/vnd.api+json' \
  -H 'Content-Type: application/vnd.api+json' \
  -H 'Authorization: Bearer {api_key}' 
{
  "jsonapi": {
    "version": "1.1"
  },
  "links": {
    "self": "https://api.turbofiles.io/v1/files/a8fhd83jpk.png"
  },
  "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"
    }
  }
}