TurboFiles

List All Tasks

Retrieves a paginated list of all tasks.

GET
/ v1 / tasks

Returns

Returns a paginated list of Task objects ordered by created_at field in descending order.
curl "https://api.turbofiles.io/v1/tasks" \
  -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/tasks?page[after]=2023-01-01T00:00:00.000000Z"
  },  
  "data": [
    {
      "type": "tasks",
      "id": "vjhd09hfl2",
      "attributes": {
        "format": {
          "input": "png",
          "output": "webp"
        },
        "settings": {},
        "processing_metadata": {},
        "status": "completed",
        "started_at": "2023-01-03T00:00:00.000000Z",
        "processed_at": "2023-01-04T00:00:00.000000Z",
        "created_at": "2023-01-01T00:00:00.000000Z",
        "updated_at": "2023-01-02T00:00:00.000000Z"
      },
      "relationships": {
        "input": {
          "data": {
            "type": "files",
            "id": "a8fhd83jpk.png"
          },
          "links": {
            "self": "https://api.turbofiles.io/v1/tasks/vjhd09hfl2/relationships/input",
            "related": "https://api.turbofiles.io/v1/tasks/vjhd09hfl2/input"
          }
        },
        "output": {
          "data": {
            "type": "files",
            "id": "ud3k2pif9f.webp"
          },
          "links": {
            "self": "https://api.turbofiles.io/v1/tasks/vjhd09hfl2/relationships/output",
            "related": "https://api.turbofiles.io/v1/tasks/vjhd09hfl2/output"
          }
        }
      }
    },
    {...},
    {...}
  ],
  "included":[
    {
      "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/a8fhd83jpk.png"
      }
    },
    {...},
    {...}
  ]
}