Submit Global Opt-Out Request
Use this API to submit a global opt-out Data Subject Access Request (DSAR) on behalf of a data subject.
Request
- Base URLhttps://mobile-data.onetrust.io
- URLhttps://mobile-data.onetrust.io/cfw/cmp/v1/dsar
- Authnone declared. Required headers: OT-CDN-Location, OT-App-Id, OT-Device-Type, OT-SDK-Version
Headers
The location of the CDN.
The unique identifier for the app or domain.
The type of device.
The published version of the app or domain.
The OT SDK identification.
The language in which the user interface should be displayed.
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 type of data to download.
The encoded consent string that contains the interface's metadata.
The unique identifier for the data subject.
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.
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 flag indicates whether the request is anonymous. When true, profile creation is skipped.
Request body
Example request
{
"globalOptOut": {
"identifier": "john@gmail.com",
"purposes": [
"C0001"
]
}
}Response
Created
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."
}
],
"storageKeys": {
"OT_GlobalOptOut": {
"C0001": {
"lastOptedOut": "2025-10-15T10:30:00Z",
"identifier": "test@example.com"
}
}
},
"otConsentString": "eyJMYXN0TGF1bmNoRGF0ZSI6MTcwNDczNzM3OTY1MSwiU2hvdWxkU2hvd0Jhbm5lciI6MSwiRFNJRCI6InN1cC1uZXdsa2diIn0="
}Changes
No recorded changes to this operation across all 1 revision of this API.