---
title: "Get all attachments of a task"
method: GET
path: "/v1/tasks/{taskId}/attachments"
tags: ["Task Attachments"]
---

# Get all attachments of a task

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

Fetch every file attached to the task, oldest first. Files still uploading carry their progress in completedBytes and totalSize.

## Path parameters

- `taskId` integer, required

## Headers

- `X-Org-Id` integer, required

## Response `200`

Attachments fetched successfully

- ApiSuccessResponseListAttachmentWithStateDto — Standard API success response structure
  - `success` boolean — Indicates if the operation was successful
  - `message` string — Message describing the result of the operation
  - `code` integer — HTTP status code of the response
  - `data` AttachmentWithStateDto[] — Payload containing the response data
    - `attachment` AttachmentDto
      - `tenantId` integer
      - `attachmentId` integer
      - `attachmentName` string
      - `attachmentUrl` string
      - `attachmentType` string
      - `size` integer
      - `projectId` integer
      - `spaceId` integer
      - `taskId` integer
      - `parentTaskId` integer
      - `commentId` integer
      - `createdBy` UserMinimalDto
        - `userId` integer
        - `firstName` string
        - `email` string
        - `profilePicURL` string
        - `profilePicColor` string
        - `provider` string
        - `role` OrgRoleDto
          - `orgRoleId` integer
          - `roleName` string
      - `createdTime` string, date-time
      - `taskName` string
      - `projectName` string
      - `spaceName` string
      - `chatAttachment` boolean
      - `isChatAttachment` boolean
    - `completedBytes` integer
    - `totalSize` integer
    - `lastUpdated` string, date-time
  - `timestamp` string, date-time — Timestamp of the response

---

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