Get Domain Data

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
string
enum
required

The blob location where the JSON data is stored.

Allowed:
string
required

The hexadecimal domain Id in OneTrust Admin Portal. This string is obtained from the URL on the specific pages in OneTrust Admin Portal relating to that domain. (Example- The script page or the scan results page for that domain.)

string
required

The ISO 639-1 language code to return the back translated text for the Banner and Preference Center UI properties.This is the two letter ISO language code for the language you would like returned.

string

This is the optional value for passing a ISO 3166-2 country code to return a geolocation rule that matches this country code instead of the country code auto-determined by the server.

string

This is the optional value for passing a ISO 3166-2:US code to return a geolocation rule that matches this region code instead of the region code auto-determined by the server. For this to work at the US state level, the OT-Country-Code parameter will also need to be passed as "us".

string

The sdk version number in OneTrust Admin Portal. This string is related to version number by which the domain was published. You can refer the version number for the published domain in OneTrust Admin Portal relating to that domain. (Example - The script page for that domain.)

boolean

This is an optional value for passing a ISO 3166-2:US code to return HTML and CSS content for the given domain. When passed as True, SSR feature needs to be enabled to dsiplay Html and CSS content in the API response.

Responses

401

Unauthorized

403

Forbidden

500

The Domain or Application hasn't been published yet.

Language
Response
Choose an example:
application/json
*/*