Get Universal Consent Purposes
Use this API to retrieve the required interface attributes to be rendered for Universal Consent Purposes.
Headers
The location of the CDN.
The location of the CDN.
The unique identifier for the app or domain.
The unique identifier for the app or domain.
The type of device.
The type of device.
The published version of the app or domain.
The published version of the app or domain.
The OT SDK identification.
The OT SDK identification.
The language in which the user interface should be displayed.
The language in which the user interface should be displayed.
The country code from which the user is accessing the app or website.
The country code from which the user is accessing the app or website.
The region code from which the user is accessing the app or website.
The region code from which the user is accessing the app or website.
The type of data to download.
The type of data to download.
The encoded consent string that contains the interface's metadata.
The encoded consent string that contains the interface's metadata.
The unique identifier for the data subject.
The unique identifier for the data subject.
The identifier type associated with the unique identifier in OT-Identifier header
The identifier type associated with the unique identifier in OT-Identifier header
The update type for the identifier. This header is used to specify how the identifier should be updated.
The JSON Web Token (JWT) generated using Public Keys within the OneTrust application.
The JSON Web Token (JWT) generated using Public Keys within the OneTrust application.
To handle platform-specific features like ATT (App Tracking Transparency for Apple) or GoogleAdId (for Android) in a structured way, you can send the platform type in the parameters of an API or request.
To handle platform-specific features like ATT (App Tracking Transparency for Apple) or GoogleAdId (for Android) in a structured way, you can send the platform type in the parameters of an API or request.
This is specifically to unbold the vendor numbers only.
This is specifically to unbold the vendor numbers only.
Response
Success
Example response
{
"errors": [
{
"code": "ERROR_CODE_BLOB_LOCATIONS_UNAVAILABLE",
"message": "Unable to fetch data for the specified Application ID. Please check your configurations."
}
],
"warnings": [
{
"code": "WARNING_CODE_PUBLISHED_VERSION_MISMATCH",
"message": "Requested data for the OT-SDK-Version does not match the published version on the OneTrust server. The latest published version will be returned instead."
}
],
"ucPurposesData": {
"general": {
"pageHeader": "Your Preferences",
"cpOptionsTitle": "Options"
},
"summary": {
"description": {
"text": "At Onetrust, we want you to fully understand and enjoy the product and services we offer. To help keep you informed, we encourage you to review and edit your preferences below. For more information about our Privacy Policy and how we manage your data, please review our Privacy Policy"
},
"title": {
"text": "Your Preferences"
}
},
"purposes": [
{
"id": "74d97f88-47ea-4088-ae5d-017b4be09f0c",
"label": "UCP",
"description": "UCP Descrtiption",
"consentStatus": 1,
"lastConsentedDate": "2022-06-22T07:40:06.203Z",
"version": 1,
"createdDate": "2022-06-22T07:40:06.203Z",
"lastModifiedDate": "2022-06-22T07:40:21.890Z",
"expiryDateType": "LAST_TRANSACTION_DATE",
"order": 1,
"customPreferences": [
{
"id": "aefd759c-faaa-4024-b114-d2cff6dbe9d8",
"name": "Preference",
"description": "Description of the preference",
"displayAs": "CHECKBOXES",
"options": [
{
"id": "92bcb92d-f48b-4e87-8b96-ce3b3080df6f",
"consentStatus": 1,
"label": "Option 1",
"order": 0,
"isDefault": false
}
]
}
],
"attributes": {
"purposeId": [
"11"
]
}
}
]
},
"storageKeys": {
"OT_GroupConsents": {
"C0001": 1
},
"OT_GroupLIConsents": {
"IAB2V2_1": 1
},
"OT_SdkConsents": {
"d5fe3c22-2266-40c0-91b7-35844fde37a1": 1
},
"OT_GeneralVendorsConsents": {
"V34": 1
},
"OT_UCPConsents": {
"6c105523-9b73-4ef0-8908-c99d8d63ecea": {
"consentStatus": 0,
"options": {
"638f54bd-6fc5-455d-aa87-8fe0c3a6eb47": 0
}
}
},
"OT_LastConsentedDate": "2024-11-19T04:59:48.059Z"
}
}