Consent & Preferences - Consent Management Platform (CMP)Log ConsentLog ConsentCopy Pagepost https://mobile-data.onetrust.io/cfw/cmp/v1/save-log-consentUse this API to log consent when a user interacts with a Banner or Preference Center.Body ParamsRequest body cannot be emptyinteractionTypestringenumThe type of interactions users can have with the interface.BANNER_ALLOW_ALLBANNER_ALLOW_ALLBANNER_REJECT_ALLBANNER_CLOSEBANNER_CONTINUE_WITHOUT_ACCEPTINGPREFERENCE_CENTER_ALLOW_ALLPREFERENCE_CENTER_REJECT_ALLPREFERENCE_CENTER_CONFIRMPREFERENCE_CENTER_CLOSEPREFERENCE_CENTER_CONTINUE_WITHOUT_ACCEPTINGUC_PREFERENCE_CENTER_CONFIRMVENDOR_LIST_ALLOW_ALLVENDOR_LIST_REJECT_ALLVENDOR_LIST_CONFIRMVENDOR_LIST_CONTINUE_WITHOUT_ACCEPTINGVENDOR_LIST_CLOSESDK_LIST_ALLOW_ALLSDK_LIST_REJECT_ALLSDK_LIST_CONFIRMSDK_LIST_CONTINUE_WITHOUT_ACCEPTINGSDK_LIST_CLOSEATT_CONFIRMATT_OPTOUTATT_NOTGIVENAGEGATE_RANGESYNC_PROFILETRUST_CENTER_PREFERENCE_CONSENTGOOGLE_ADS_CONFIRMGOOGLE_ADS_OPTOUTShow 28 enum valuesconsentobjectThe consent statuses for Purposes, IAB Vendors, Google Vendors, and SDKs.consent objectuserAgentstringThe browser details of the user that is accessing the app or website.ageGateobjectThe age range information for AgeGate consent. Required when interactionType is AGEGATE_RANGE.ageGate objectcustomDataElementsobjectThe additional information about the user provided during their consent interaction.customDataElements objectHeadersOT-CDN-LocationstringenumrequiredThe location of the CDN.cdn.cookielaw.orgcdn-apac.onetrust.comcdn.au.onetrust.comcdn-ukwest.onetrust.comcookie-cdn.cookiepro.comotcc-demo.otprivacy.comotcc-training.onetrust.comAllowed:cdn.cookielaw.orgcdn-apac.onetrust.comcdn.au.onetrust.comcdn-ukwest.onetrust.comcookie-cdn.cookiepro.comotcc-demo.otprivacy.comotcc-training.onetrust.comOT-App-Idstringrequired^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(-test)?$The unique identifier for the app or domain.OT-Device-TypestringenumrequiredThe type of device.mobilectvAllowed:mobilectvOT-SDK-Versionstringrequired^\d{6}\.\d+\.\d+$The published version of the app or domain.OT-SDK-Identificationstring | nullThe OT SDK identification.OT-Languagestring | nullThe language in which the user interface should be displayed.OT-Country-Codestring | nullThe country code from which the user is accessing the app or website.OT-Region-Codestring | nullThe region code from which the user is accessing the app or website.OT-Fetch-Typestring | nullenumThe type of data to download.APP_DATA_ONLYAPP_DATA_AND_PROFILEAPP_DATA_AND_SYNC_PROFILEAllowed:APP_DATA_ONLYAPP_DATA_AND_PROFILEAPP_DATA_AND_SYNC_PROFILEOT-Consent-Stringstring | nullThe encoded consent string that contains the interface's metadata.OT-Identifierstring | nullThe unique identifier for the data subject.OT-Identifier-Typestring | nullThe identifier type associated with the unique identifier in OT-Identifier headerOT-Identifier-UpdateTypestring | nullenumThe update type for the identifier. This header is used to specify how the identifier should be updated.Rename-IdentifierAllowed:Rename-IdentifierOT-Sync-Profile-Authstring | nullThe JSON Web Token (JWT) generated using Public Keys within the OneTrust application.OT-Platformstring | nullenumTo 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.AppleAndroidAllowed:AppleAndroidOT-Exclude-Html-Tagsboolean | nullThis is specifically to unbold the vendor numbers only.truefalseOT-Tcf-Eu2v2-Consent-Stringstring | nullThe IAB TCF string that contains information on consent preferences.OT-GPP-Stringstring | nullThe GPP string that contains information on consent preferences.OT-Explicit-Consentboolean | nullIf true, only the consent explicitly provided in the request body will be submitted.truefalseResponses 200Success 400Bad Request 403Forbidden 404Not Found 429Too Many Requests. \nFor more information, see API Rate Limits. 500Internal Server ErrorUpdated 2 months ago Get Banner DataPreference CenterDid this page help you?YesNo