---
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

---

[API](https://skmtc.net/surgeapi/apis/surge.md) · [All operations](https://skmtc.net/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surgeapi/surge/versions/b5b0b6f62245/schema)
