---
title: "Get a download URL for a memory's attachment."
method: GET
path: "/v1/memories/{id}/attachment"
---

# Get a download URL for a memory's attachment.

`GET /v1/memories/{id}/attachment`

## Request

- Base URL: `https://api.cortexplus.io`
- URL: `https://api.cortexplus.io/v1/memories/{id}/attachment`
- Auth: HTTP bearer

Return a short-lived download URL for the memory attachment. The URL expires after expiresIn seconds. Returns 404 when the memory has no stored attachment.

## Path parameters

- `id` string, required

## Query parameters

- `variant` 'thumb' | 'original'

## Response `200`

Successful response.

- object
  - `url` string, uri, required
  - `expiresIn` number, required

## Other responses

- `default`: Request failed.

---

[API](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api.md) · [All operations](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/revisions/2d04f1593663?raw)
