---
title: "Download raw task file bytes"
method: GET
path: "/api/fs/tasks/{taskId}/files/{attachmentId}/raw"
tags: ["FS"]
---

# Download raw task file bytes

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

Streams raw bytes. File content is not secret-scrubbed.

## Path parameters

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

## Response `200`

Raw file bytes

## Other responses

- `404` — Task, attachment, or provider object not found

## Changes

- **2026-07-02** `5ed7f876c9c4` — 1 info
  - endpoint added
- **2026-07-02** `0c910612f9ac` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/fs/tasks/:taskId/files/:attachmentId/raw/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
