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

# Get task attachments

`GET /v1/tasks/{taskId}/attachments`

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

## Path parameters

- `taskId` string, required

## Response `200`

Attachments retrieved successfully

- AttachmentResponseDto[]
  - `id` string, required — Unique identifier for the attachment
  - `name` string, required — Original filename
  - `type` string, required — File type/MIME type
  - `size` number, required — File size in bytes
  - `downloadUrl` string, required — Signed URL for downloading the file (temporary)
  - `createdAt` string, date-time, required — Upload timestamp

## Other responses

- `401` — Unauthorized - Invalid authentication
- `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)
