TurboFiles

File Conversion

To convert files, set the format.output field to the MIME type of your desired output format when creating a task. You can select an input format and see the available output formats for conversion.

Input

Output

POST /tasks HTTP/1.1
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json

{
  "data": {
    "type": "tasks",
    "attributes": {
      "format": {
        "input": "png",
        "output": null,
      },
      "settings": {}
    },
    "relationships": {
      "input": {
        "data": {
          "type": "files",
          "id": "a8fhd83jpk.{inputFormat}"
        }
      }
    }
  }
}