---
title: "Generate a temporary download link for a document"
method: GET
path: "/documents/{id}/download_link"
tags: ["Documents"]
---

# Generate a temporary download link for a document

`GET /documents/{id}/download_link`

Generates a temporary pre-signed URL that can be used to download the document directly from the storage backend without authentication.

## Path parameters

- `id` string, uuid, required

## Response `200`

Successfully generated download link

- object
  - `data` object, required
    - `url` string, uri, required — Pre-signed temporary URL for downloading the document

## Other responses

- `404` — Resource not found
- `422` — Unprocessable entity. Check the 'detail' field in response for details.
- `default` — Unexpected error

## Changes

- **2026-08-17** `1571b0380bd7` — 2 breaking
  - the `errors/items/code` response's property type/format changed from `integer`/`int32` to `string`/`` for status `422`
  - the `errors/items/code` response's property type/format changed from `integer`/`int32` to `string`/`` for status `default`
- **2026-08-04** `8f5f4e537994` — 2 breaking
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `422`
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `default`

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/documents/:id/download_link/get.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
