GDPR / CCPA API ensures all the rights of users are created or updated for GDPR / CCPA compliance. You can erase the personal data of specific users as defined under GDPR using the Erase API.
For more details on GDPR Compliance with MoEngage, refer to GDPR-Implementation.
For more details on CCPA Compliance with MoEngage, refer to CCPA-Implementation.
The APP_ID for your MoEngage account is available on the MoEngage Dashboard in Settings > Account > APIs > Workspace ID (earlier app id).
Erase API uses basic authentication to control access to your data.
The API request will be authenticated through Basic Authentication. Basic Authentication sends a Base64-encoded string containing your username and password with every API request. It encodes a 'username:password' string in Base64 and appends the encoded string with 'Basic '. This string is included in the authorization header as shown below:
{"Authorization: Basic Base64_ENCODED_APPKEY_APIKEY=="}
You can obtain the username and password details from the MoEngage Dashboard.
Set the Content-Type header to application/json.
This is your MoEngage account's Workspace ID that must be included in the request. You can find your Workspace ID in the following navigation on the dashboard: Revamped UI: Settings > Account > APIs > Workspace ID
The GDPR/CCPA request payload, containing the type of request and the user identities. The maximum payload size is 100kb.
The main object representing a GDPR or CCPA compliance request.
This is used to request for GDPR details or request to erase the GDPR details
"erasure"
This identifies the time when the request was sent.
"2018-10-05T15:00:00Z"
This provides the details of the user, such as email address, phone number, and so on.
This identifies the API version used to send the GDPR request.
"1.0"
Success. This response is returned when the request is processed successfully.
Standard successful response object for a submitted GDPR request.