---
title: "Get Domain Data"
method: GET
path: "/domaindata"
tags: ["Domain Data"]
---

# Get Domain Data

`GET /domaindata`

Use this API to retrieve a list of all templates, cookie consent models, and vendor lists data for the specified domain in JSON format.

## Headers

- `location` 'cdn.cookielaw.org' | 'otcc-training.onetrust.com' | 'otcc-demo.otprivacy.com' | 'cookie-cdn.cookiepro.com' | 'cdn-ukwest.onetrust.com' | 'cdn-au.onetrust.com', required
- `domain` string, required
- `lang` string, required
- `OT-Country-Code` string
- `OT-Region-Code` string
- `sdkVersion` string
- `fetchHtmlAndCss` boolean

## Response `200`

OK

- DomainResponse
  - `domain` Domain
    - `CookieSPAEnabled` boolean — Indicates if tenant has a CookieSPA feature toggle enabled.
    - `UseV2` boolean — Indicates if data is formatted to support new cookies flow.
    - `MobileSDK` boolean — Indicates if data was built as a Mobile Application or Website.
    - `SkipGeolocation` boolean — If false, only one geolocation rule exists so no need to call. geolocation API
    - `ScriptType` string — Indicates if the script is a Test Script or Production Script.
    - `Version` string — Current OneTrust platform version. This does not indicate the version of this data.
    - `OptanonDataJSON` string — The Domain or Application ID. This should match the value passed into the header when making this call.
    - `GeolocationUrl` string — API that can be used to determine the user's geographic location based on IP lookup.
    - `RuleSet` Rule[]
      - `Id` string, UUID
      - `Name` string
      - `Countries` string[]
      - `States` object
      - `LanguageSwitcherPlaceholder` object
      - `BannerPushesDown` boolean
      - `Default` boolean
      - `Global` boolean
    - `IabData` IabData
      - `cookieVersion` string
      - `createdTime` string
      - `updatedTime` string
      - `cmpId` string
      - `cmpVersion` string
      - `consentScreen` string
      - `consentLanguage` string
      - `vendorListVersion` integer
      - `maxVendorId` integer
      - `encodingType` string
      - `iabVendorJson` string
      - `globalVendorListUrl` string
    - `ConsentIntegration` ConsentIntegration
      - `ConsentApi` string
      - `RequestInformation` string
  - `culture` Culture
    - `DomainData` DomainData
      - `cctId` string — The Domain or Application ID. This should match the value passed into the header when making this call.
      - `MainText` string — The value entered for Preference Center Title.
      - `MainInfoText` string — The value entered for the Preference Center's Your Privacy Text
      - `AboutText` string — The value entered for Policy Link text.
      - `AboutCookiesText` string — The value entered for preference center privacy title.
      - `ConfirmText` string — The value entered for the Preference Center accept All button.
      - `AllowAllText` string — The value entered for the Preference Center Allow All button.
      - `CookiesUsedText` string — The value entered for the Preference Center Cookies Used label.
      - `AboutLink` string — The value entered for the Preference Center cookie policy url.
      - `HideToolbarCookieList` boolean — The value entered in the cookie list to whether hide the toolbar.
      - `ActiveText` string — The value entered for the Preference Center active text.
      - `AlertNoticeText` string — The value entered for the banner description.
      - `AlertCloseText` string — The value entered for the banner close button.
      - `AlertMoreInfoText` string — The value entered for the banner more info button.
      - `CookieSettingButtonText` string — The value entered for the banner cookie settings button.
      - `AlertAllowCookiesText` string — The value entered for the banner allow all button.
      - `CloseShouldAcceptAllCookies` boolean — Accept all cookies on clincking close banner button.
      - `LastReconsentDate` integer — Last time publish with force consent on.
      - `BannerTitle` string — The value entered for the banner title.
      - `ForceConsent` boolean — Determine if user has to interact with banner.
      - `InactiveText` string — The value entered for the preference center inactive text.
      - `CookiesText` string — The value entered for the cookie list cookies text.
      - `CategoriesText` string — The value entered for the cookie list categories text.
      - `IsLifespanEnabled` boolean
      - `LifespanText` string
      - `VendorLevelOptOut` boolean
      - `HasScriptArchive` boolean
      - `BannerPosition` string
      - `PreferenceCenterPosition` string
      - `PreferenceCenterConfirmText` string
      - `VendorListText` string
      - `ThirdPartyCookieListText` string — The value entered for the preference center third party cookies button.
      - `PreferenceCenterManagePreferencesText` string — The value entered for the preference center title
      - `PreferenceCenterMoreInfoScreenReader` string — The value entered for the preference center screen reader text.
      - `CookieListTitle` string — The value entered for the cookie list title.
      - `CookieListDescription` string — The value entered for the cookie list description.
      - `Groups` object[]
      - `Language` object
      - `ShowPreferenceCenterCloseButton` boolean
      - `FooterDescriptionText` string
      - `CustomJS` string
      - `LifespanTypeText` string
      - `LifespanDurationText` string
      - `CloseText` string
      - `BannerCloseButton` string
      - `AddLinksToCookiepedia` boolean
      - `showBannerCloseButton` boolean
      - `AlertLayout` string
      - `IsDntEnable` boolean
      - `ShowAlertNotice` boolean
      - `IsConsentLoggingEnabled` boolean
      - `IsIabThirdPartyCookieEnabled` boolean
      - `ScrollCloseBanner` boolean
      - `OnClickCloseBanner` boolean
      - `NextPageCloseBanner` boolean
      - `AcceptAllCookies` boolean
      - `ConsentModel` string
      - `Vendors` object[]
      - `ScrollAcceptAllCookies` boolean
      - `OnClickAcceptAllCookies` boolean
      - `NextPageAcceptAllCookies` boolean
      - `IsConsentIntegration` boolean
      - `IsIABEnabled` boolean
      - `ShowAlert` boolean
      - `ShowSubgroupToggles` boolean
      - `CookieListEnabled` boolean
      - `Flat` boolean
      - `FloatingFlat` boolean
      - `FloatingRoundedCorner` boolean
      - `FloatingRoundedIcon` boolean
      - `FloatingRounded` boolean
      - `CenterRounded` boolean
      - `Center` boolean
      - `Panel` boolean
      - `List` boolean
      - `Tab` boolean
      - `BannerIABPartnersLink` string
      - `BannerPurposeTitle` string
      - `BannerPurposeDescription` string
      - `BannerFeatureTitle` string
      - `BannerFeatureDescription` string
      - `BannerInformationTitle` string
      - `BannerInformationDescription` string
      - `BannerShowRejectAllButtonText` boolean
      - `BannerRejectAllButtonText` string
      - `BannerSettingsButtonDisplayLink` boolean
      - `PCFirstPartyCookieListText` string
    - `CommonData` CommonData
      - `IabThirdPartyCookieUrl` string
      - `OptanonHideAcceptButton` string
      - `OptanonStyle` string
      - `OptanonStaticContentLocation` string
      - `BannerCustomCSS` string
      - `PCCustomCSS` string
      - `PcTextColor` string
      - `PcButtonColor` string
      - `PcButtonTextColor` string
      - `PcBacgroundTextColor` string
      - `PcMenuColor` string
      - `PcMenuHighLightColor` string
      - `TextColor` string
      - `ButtonColor` string
      - `ButtonTextColor` string
      - `BackgroundColor` string
      - `OptanonLogo` string
      - `OptanonCookieDomain` string — This is the name of the Domain or Application
      - `OptanonGroupIdPerformanceCookies` string
      - `OptanonGroupIdFunctionalityCookies` string
      - `OptanonGroupIdTargetingCookies` string
      - `OptanonGroupIdSocialCookies` string
      - `ShowSubGroupCookies` boolean
      - `ShowSubGroupDescription` boolean
      - `LegacyBannerLayout` string
      - `OptanonHideCookieSettingsButton` string
      - `UseRTL` boolean
      - `ShowBannerAcceptButton` boolean
      - `ShowBannerCookieSettings` boolean
      - `ShowCookieList` boolean
      - `PCShowCookieHost` boolean
      - `PCShowCookieDuration` boolean
      - `PCShowCookieType` boolean
      - `PCShowCookieCategory` boolean
      - `PCShowCookieDescription` boolean
      - `AllowHostOptOut` boolean
      - `CookieListTitleColor` string
      - `CookieListGroupNameColor` string
      - `CookieListTableHeaderColor` string
      - `CookieListPrimaryColor` string
      - `CookieListCustomoCss` string

## Other responses

- `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` — The Domain or Application hasn't been published yet.

---

[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/revisions/21de3aa0b170/schema)
