---
title: "Download issue file"
method: GET
path: "/api/v1/issues/{code}/files/{fileId}/download"
tags: ["issues"]
---

# Download issue file

`GET /api/v1/issues/{code}/files/{fileId}/download`

## Request

- Base URL: `https://api.capy.ai`
- URL: `https://api.capy.ai/api/v1/issues/{code}/files/{fileId}/download`
- Auth: HTTP bearer

## Path parameters

- `code` string, required
- `fileId` string, required

## Response `200`

AttachmentDownload

- AttachmentDownloadEncoded
  - `url` string, required: A presigned GET for the file's bytes. Send it without an Authorization header; the signature is the credential.
  - `expiresAt` string, required

## Other responses

- `400`: capy/InvalidRequest
- `401`: capy/Unauthorized
- `403`: capy/Forbidden
- `404`: capy/FileNotFound | capy/IssueNotFound
- `429`: capy/RateLimited

## Changes

- **2026-10-31** `e3be47264feb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/issues/:code/files/:fileId/download/get.md)

---

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