---
title: "Get task file attachment metadata"
method: GET
path: "/api/fs/tasks/{taskId}/files/{attachmentId}"
tags: ["FS"]
---

# Get task file attachment metadata

`GET /api/fs/tasks/{taskId}/files/{attachmentId}`

## Path parameters

- `taskId` string, uuid, required
- `attachmentId` string, uuid, required

## Response `200`

Task attachment metadata

- TaskAttachment
  - `id` string, uuid, required
  - `taskId` string, uuid, required
  - `agentId` string, nullable, required
  - `name` string, required
  - `kind` 'agent-fs' | 'url' | 'shared-fs' | 'page', required
  - `url` string
  - `path` string
  - `pageId` string
  - `providerId` string
  - `providerKey` string
  - `capabilities` object
  - `orgId` string
  - `driveId` string
  - `mimeType` string
  - `sizeBytes` integer
  - `sha256` string
  - `intent` string
  - `description` string
  - `isPrimary` boolean
  - `createdAt` string, date-time, required
  - `createdBy` string
  - `updatedBy` string

## Other responses

- `404` — Task or attachment not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/101e7a060651/schema)
