---
title: "Get Download Token"
method: GET
path: "/api/document/v4/attachments/token/{attachmentId}"
tags: ["Attachments V4"]
---

# Get Download Token

`GET /api/document/v4/attachments/token/{attachmentId}`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/document/v4/attachments/token/{attachmentId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `ATTACHMENT`, `ATTACHMENT_READ`

Use this API to obtain a short-lived download token for an attachment. The token must be presented to the document-gateway to download the file content.

## Path parameters

- `attachmentId` string, uuid, required

## Response `200`

Download token generated successfully

- PlatformDocumentsTokenResponse
  - `attachmentId` string, uuid
  - `token` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `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)
