---
title: "Download All Consent Attachments"
method: GET
path: "/rest/api/preferences/v1/datasubjects/{identifier}/attachments"
tags: ["Consent Attachments"]
---

# Download All Consent Attachments

`GET /rest/api/preferences/v1/datasubjects/{identifier}/attachments`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/rest/api/preferences/v1/datasubjects/{identifier}/attachments`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `CONSENT`, `CONSENT_READ`

Use this API to retrieve all available file references attached to a given data subject. The files will be downloaded in .zip format.

## Path parameters

- `identifier` string, required

## Response `200`

ZIP file containing all attachments.

## 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/consent-preferences-universal-consent-preference-management.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-universal-consent-preference-management/revisions/fe4a0697ec9d?raw)
