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

# Get a subtask

`GET /tasks/{taskId}/subtasks/{id}`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/tasks/{taskId}/subtasks/{id}`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

Retrieves a specified subtask.

## Path parameters

- `taskId` string, uuid, required
- `id` string, uuid, required

## Response `200`

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

- SubTask: Subtask resource.
  - `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
  - `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
  - `subject` string, nullable: The subject - a short description of the subtask.
  - `completedDate` string, date-time, nullable: **Deprecated.** Use `CompletedDateOnly` instead. When the subtask was completed in UTC.
  - `completedDateOnly` string, date-time, nullable: The date when the subtask 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 subtask was created in UTC.
  - `createdDateOnly` string, date-time, nullable: The date when the subtask 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 subtask is completed.
  - `isDeleted` boolean: True when the subtask is deleted.
  - `lastUpdated` integer: Last updated timestamp.

## Other responses

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

---

[API](https://skmtc.dev/smokeball/apis/smokeball-api.md) - [All operations](https://skmtc.dev/smokeball/apis/smokeball-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smokeball/apis/smokeball-api/revisions/6e350cf667d4?raw)
