---
title: "Get attachment file"
method: GET
path: "/attachments/{attachment_id}/file"
tags: ["Messages"]
---

# Get attachment file

`GET /attachments/{attachment_id}/file`

Redirects to a signed URL where the attachment file can be downloaded. URL is short-lived, so redirect should be followed immediately.

## Path parameters

- `attachment_id` string, required — The ID of the attachment.

## Response `default`

Error

- ErrorResponse — An error response
  - `error` Error, required — An error response
    - `detail` object — Additional details about the error.
    - `message` string, required — A human-readable error message.
    - `type` string, required — A unique error code.

## Other responses

- `302` — Redirect to the attachment file

## Changes

- **2026-04-22** `2c4f52b7491a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/surgeapi/apis/surge/changes/attachments/:attachment_id/file/get.md)

---

[API](https://skmtc.dev/surgeapi/apis/surge.md) · [All operations](https://skmtc.dev/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/surgeapi/surge/revisions/844ecbfa0d5b/schema)
