---
title: "Download a public task file"
method: GET
path: "/api/tasks/{id}/attachments/{fileId}"
---

# Download a public task file

`GET /api/tasks/{id}/attachments/{fileId}`

## Request

- Base URL: `https://www.toma.com`
- URL: `https://www.toma.com/api/tasks/{id}/attachments/{fileId}`
- Auth: none declared

No sign-in. Streams a file the poster made public, while the task is open, as an attachment (application/octet-stream); the download stops if the file is made private or the task closes partway. Limited per IP address. Files are not scanned for malware: treat them as untrusted.

## Path parameters

- `id` string, required
- `fileId` string, required

## Response `200`

The file bytes.

## Other responses

- `404`: No public file with that id on an open task.
- `429`: Too many downloads from this address; Retry-After gives seconds to wait.
- `503`: File storage is unavailable.

---

[API](https://skmtc.dev/toma/apis/toma-api.md) - [All operations](https://skmtc.dev/toma/apis/toma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toma/apis/toma-api/revisions/b4e56e1db5a2?raw)
