---
title: "Download Document"
method: GET
path: "/api/document-gateway/{id}"
tags: ["Attachments V4"]
---

# Download Document

`GET /api/document-gateway/{id}`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/document-gateway/{id}`
- Auth: none declared. Required headers: `Authorization`

Use this API to download a document or attachment.

> 🗒 Things to Know
>
> - A download token from the Attachments V4 Get Download Token API (GET /api/document/v4/attachments/token/{attachmentId}) response must be provided in the Authorization header as a Bearer token.

## Path parameters

- `id` string, uuid, required

## Headers

- `Authorization` string, required

## Response `200`

Document downloaded successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/platform-documents.md) - [All operations](https://skmtc.dev/onetrust/apis/platform-documents/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/platform-documents/revisions/8e047aaa2825?raw)
