---
title: "Get a task"
method: GET
path: "/tasks/{id}"
tags: ["Tasks"]
---

# Get a task

`GET /tasks/{id}`

Retrieves a specified task.

## Path parameters

- `id` string, uuid, required

## Response `200`

When request is successful. Returns a 'Task' object.

- Task
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable
  - `self` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `matter` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `parentTask` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `createdBy` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `completedBy` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `lastUpdatedBy` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `assignees` Link[], nullable — The staff member(s) assigned to the task.
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `subTasks` Link[], nullable — The tasks associated to the task.
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `subject` string, nullable — The subject - a short description of the task.
  - `note` string, nullable — Notes on the task.
  - `categories` string[], nullable — Categories for the task.
  - `dueDate` string, date-time, nullable — **Deprecated.** Use `DueDateOnly` instead. The due date of the task in UTC.
  - `dueDateOnly` string, date-time, nullable — The due date of the task. The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
  - `completedDate` string, date-time, nullable — **Deprecated.** Use `CompletedDateOnly` instead. When the task was completed in UTC.
  - `completedDateOnly` string, date-time, nullable — The date when the task was completed. The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
  - `createdDate` string, date-time, nullable — **Deprecated.** Use `CreatedDateOnly` instead. When the task was created in UTC.
  - `createdDateOnly` string, date-time, nullable — The date when the task was created. The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
  - `isCompleted` boolean — True when the task is completed.
  - `isDeleted` boolean — True when the task is deleted.
  - `lastUpdated` integer — Last updated timestamp.
  - `duration` string, nullable — Duration of the task in ISO 8601 duration format.

## Other responses

- `403` — When task with specified id is not associated with authenticated client.
- `404` — When task with specified id does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
