---
title: "Get File Location"
method: GET
path: "/api/document/v3/attachments/{attachmentId}/content"
tags: ["Attachments"]
---

# Get File Location

`GET /api/document/v3/attachments/{attachmentId}/content`

## Request

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

Use this API to obtain the location of an uploaded file. The location can be identified by the `downloadUrl` parameter included in the response.

## Path parameters

- `attachmentId` string, uuid, required

## Response `201`

OK

- PlatformDocumentsAttachmentProcessInitResponse
  - `requestType` 'CREATED' | 'RENEWED' | 'OVERRIDE' | 'RETRY' | 'DIRECTORY': The status of the request.
  - `uploadParams` PlatformDocumentsSharedAccessParams
    - `storageAccountName` string: The name of the storage account for the file.
    - `containerName` string: The name of the container where the file is stored.
    - `fileName` string: The name of the file in storage.
    - `signature` string: The access token for the file.
  - `statusUrl` string: The URL to check the status of the request.
  - `downloadUrl` string: The URL to download the file.

## 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)
