---
title: "Get Script for Domain"
method: GET
path: "/api/cmp/v1/domains/{domainId}/script-details"
tags: ["Scripts"]
---

# Get Script for Domain

`GET /api/cmp/v1/domains/{domainId}/script-details`

Use this API to retrieve script details for the specified website.

## Path parameters

- `domainId` string, uuid, required

## Query parameters

- `scriptType` 'production' | 'test'

## Response `200`

OK

- DomainScriptDetailsPublicDto
  - `id` string — Unique identifier (UUID).
  - `url` string — URL assigned to this domain
  - `cdnUrl` string — The CDN script to use for production
  - `geoRuleId` string, uuid — Unique identifier of the geo rule.
  - `geoRuleName` string — Name of the geo rule.
  - `publishStatus` 'DRAFT' | 'PUBLISHED' | 'PUBLISHING' | 'FAILED' | 'WAITING' — The status of the script publication
  - `publishDate` string, date-time — Date of this publish (timezone UTC)
  - `publishVersion` string — Version of this script publish
  - `publishBy` string — Tenant who triggered this publish
  - `webformIntegrationEnabled` boolean — If webform integration is enabled
  - `autoBlockingEnabled` boolean — Is autoblocking enabled for this script
  - `distinctSrcUrl` boolean

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