---
title: "Get one attachment."
method: GET
path: "/tasks/{id}/attachments/{attachmentID}"
tags: ["task"]
---

# Get one attachment.

`GET /tasks/{id}/attachments/{attachmentID}`

Get one attachment for download. **Returns json on error.**

## Path parameters

- `id` integer, required
- `attachmentID` integer, required

## Query parameters

- `preview_size` string

## Response `200`

The attachment file.

## Other responses

- `403` — No access to this task.
- `404` — The task does not exist.
- `500` — Internal error

---

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