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
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
}