v1

latestOpenAPI 3.1.0Apache 2.02026-07-245981,1853.0 MB
Scripts

Get Script for Domain

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

get/api/cmp/v1/domains/{domainId}/script-details

Path parameters

domainIdstring uuid required

Identifier of the domain to retrieve the latest script for.

Query parameters

scriptType'production' | 'test'

The type of script either production or test.

Response

OK

idstring

Unique identifier (UUID).

urlstring

URL assigned to this domain

cdnUrlstring

The CDN script to use for production

geoRuleIdstring uuid

Unique identifier of the geo rule.

geoRuleNamestring

Name of the geo rule.

publishStatus'DRAFT' | 'PUBLISHED' | 'PUBLISHING' | 'FAILED' | 'WAITING'

The status of the script publication

publishDatestring date-time

Date of this publish (timezone UTC)

publishVersionstring

Version of this script publish

publishBystring

Tenant who triggered this publish

webformIntegrationEnabledboolean

If webform integration is enabled

autoBlockingEnabledboolean

Is autoblocking enabled for this script

distinctSrcUrlboolean

Example response

{
  "id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
  "url": "onetrust.com",
  "cdnUrl": "https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",
  "geoRuleId": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
  "geoRuleName": "Europe Rule",
  "publishStatus": "PUBLISHED",
  "publishDate": "2024-01-15T14:30:45",
  "publishVersion": "202212.1.0",
  "publishBy": "Adithya H.",
  "autoBlockingEnabled": true
}