TurboFiles

The Task Object

A task represents conversion or optimization processing.

Attributes
format.input
The format of the input file.
format.output
The format of the output file.
settings
The settings used for the processing. Depends on input_formatand output_format.
processing_metadata
Metadata about the processing.
status
The status of the task.
Available values:
PENDING
PROCESSING
COMPLETED
FAILED
started_at
Optional
The time the task started.
processed_at
Optional
The time the task completed.
created_at
The time the task was created.
updated_at
The time the task was last updated.
{
  "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"
  }
}