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

# Get task by ID

`GET /v1/tasks/{taskId}`

Get task by ID in Comp AI. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

## 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
  - `integrationScheduleFrequency` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'yearly', required — Cadence for running the integration check attached to this task
  - `integrationLastRunAt` object, nullable — Last successful integration check run timestamp

## Other responses

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

---

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