---
title: "Fetch an attachment through a download link"
method: GET
path: "/downloads/{downloadId}"
tags: ["Messages"]
---

# Fetch an attachment through a download link

`GET /downloads/{downloadId}`

## Request

- Base URL: `https://anjal.app`
- URL: `https://anjal.app/downloads/{downloadId}`
- Auth: none required

The receiver for links from `download-url`. Not under `/v1` and takes no
API key: the `t` token in the query string is the credential. Every
failure, whether the token is wrong, the link expired, its uses ran out,
or the message is held, returns the same `404`, so a wrong guess learns
nothing about whether a link exists.

## Path parameters

- `downloadId` string, uuid, required

## Query parameters

- `t` string, required

## Response `200`

Attachment bytes, as a download

## Other responses

- `404`: Not valid, expired, used up, or held

---

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