Compliance APIs
GDPR & CCPA
Handle data retrieval and deletion requests
POST
GDPR & CCPA
GDPR & CCPA API
Handle GDPR and CCPA compliance requests for data retrieval and deletion.Authentication
Use OAuth Token with Bearer authentication.Create Data Retrieval
Create a job to retrieve all data for specific users.string
required
Your project token
array
required
Array of distinct IDs to retrieve data for
string
Compliance regulation type:
GDPR or CCPADefault: GDPRstring
CCPA disclosure type (only if compliance_type is CCPA):
Data, Categories, or SourcesDefault: DataExample Request
Response
Check Retrieval Status
Check the status of a data retrieval job.string
required
The task ID returned from the create request
string
required
Your project token
Example Request
Response
string
Overall API response status
string
Job status:
PENDING, STAGING, STARTED, SUCCESS, FAILURE, REVOKED, NOT_FOUND, UNKNOWNstring
Download link when job is complete, empty string if incomplete
array
Array of distinct IDs included in the retrieval
Create Data Deletion
Create a deletion job to remove user data from Mixpanel.string
required
Your project token
array
required
Array of distinct IDs to delete
string
Compliance type:
GDPR or CCPADefault: GDPRExample Request
Check Deletion Status
string
required
The task ID from the deletion request
string
required
Your project token
Example Request
Cancel Deletion
Cancel a deletion job that is still in progress.string
required
The task ID of the deletion to cancel
string
required
Your project token
Example Request
Deletions can only be canceled while in
PENDING or STARTED status. Once SUCCESS, the deletion is complete and cannot be reversed.GDPR & CCPA