get
https://consent-api.onetrust.com/v2/preferences
Use this API to retrieve a list of all consent preferences for a data subject identifier. The response will include details such as the consent date, purpose preferences, and data subject's geolocation. The response will also include relevant information about data elements and last interaction date, along with the current status of consent for the purposes that the data subject has interacted with.
Things to Know
- This API uses a JSON Web Token (JWT) authorization token that will be passed to OneTrust servers to ensure authenticated access to a user's consent profile. This is not the OAuth 2.0 client credential or API key. This JWT authorization token is generated using the cross-device consent process. For more information, see Cross-Domain and Cross-Device Consent.
- This API does not require an intermediary server-server API call. It is optimized for client-side applications, maintaining security to make quick decisions based on data subject consent.
- The response of this API will not return updates made via the Update Data Subject's Preferences in a Preference Center API.
Recipes
🏃♂️
Real-Time Consent: Lightweight, Fast, and UI-Ready
Open Recipe
