---
title: "Download Script File"
method: GET
path: "/api/cmp/v1/domains/{domainId}/scripts"
tags: ["Scripts"]
---

# Download Script File

`GET /api/cmp/v1/domains/{domainId}/scripts`

Use this API to download the script files for the specified domain. The files will be downloaded within a folder in blob format.

> 🗒 Things to Know
> 
> - The domain must be in **Published** status.

> 👍 
> 
> For more information, see [Downloading and Deploying Scripts from Local Hosting](https://my.onetrust.com/s/article/UUID-3e2923d6-8364-c2fa-0625-7897395f4cd2).

## Path parameters

- `domainId` string, uuid, required

## Response `200`

OK

## 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.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
