---
title: "Download an uploaded file by attachment ID"
method: GET
path: "/api/v1/file"
tags: ["Open API"]
---

# Download an uploaded file by attachment ID

`GET /api/v1/file`

**Required scope:** `file`

## Query parameters

- `attachment_id` string, required

## Response `200`

File content or an error envelope

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/4463c5ffdb9c/schema)
