---
title: "Get task by ID"
method: GET
path: "/v1/tasks/{taskId}"
tags: ["Tasks"]
---

# Get task by ID

`GET /v1/tasks/{taskId}`

Retrieve a specific task by its ID

## Path parameters

- `taskId` string, required

## Response `200`

Task retrieved successfully

- TaskResponseDto
  - `id` string, required — Unique identifier for the task
  - `title` string, required — Task title
  - `description` string — Task description
  - `status` 'todo' | 'in_progress' | 'done' | 'blocked', required — Task status
  - `createdAt` string, date-time, required — Task creation timestamp
  - `updatedAt` string, date-time, required — Task last update timestamp
  - `taskTemplateId` object, nullable — Task template ID

## Other responses

- `403` — Forbidden - Not assigned to this task
- `404` — Task not found

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/6e22489e33cb/schema)
