Get Task

Get a task by ID.


GET
/tasks/{id}

Authorization

AuthorizationRequiredBearer <token>

See API Security for more details.

In: header

Path Parameters

idRequiredstring

Response Body

Success

TypeScript Definitions

Use the response body type in TypeScript.

metaobject
dataobject
errorobject | null | null
linksobject
fetch("https://api.ittybit.com/tasks/task_abcdefgh1234", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
{
  "meta": {
    "request_id": "req_abcdefghij1234567890",
    "org_id": "org_abcdefgh1234",
    "project_id": "prj_abcdefgh1234",
    "version": "2025-01-01",
    "type": "object"
  },
  "data": {
    "id": "task_abcdefgh1234",
    "object": "task",
    "kind": "image",
    "input": {
      "id": "file_abcdefgh1234",
      "object": "source",
      "kind": "video",
      "type": "video/mp4",
      "width": 1920,
      "height": 1080,
      "duration": 123.45,
      "filesize": 12345678,
      "url": "https://you.ittybit.net/file_abcdefgh1234",
      "ref": "original"
    },
    "options": {
      "width": 320,
      "format": "png",
      "ref": "thumbnail"
    },
    "output": {
      "id": "file_abcdefgh5678",
      "object": "source",
      "kind": "image",
      "type": "image/png",
      "width": 320,
      "height": 180,
      "filesize": 12345,
      "url": "https://you.ittybit.net/file_abcdefgh5678",
      "ref": "thumbnail"
    },
    "status": "completed",
    "created": "2025-01-01T01:23:45Z",
    "updated": "2025-01-01T01:23:46Z"
  },
  "links": {
    "self": "https://api.ittybit.com/tasks/task_abcdefgh1234",
    "parent": "https://api.ittybit.com/tasks"
  }
}