Compliance APIs
GDPR & CCPA
Handle data retrieval and deletion requests
POST
GDPR & CCPA
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mixpanel/docs/llms.txt
Use this file to discover all available pages before exploring further.
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.Your project token
Array of distinct IDs to retrieve data for
Compliance regulation type:
GDPR or CCPADefault: GDPRCCPA 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.The task ID returned from the create request
Your project token
Example Request
Response
Overall API response status
Job status:
PENDING, STAGING, STARTED, SUCCESS, FAILURE, REVOKED, NOT_FOUND, UNKNOWNDownload link when job is complete, empty string if incomplete
Array of distinct IDs included in the retrieval
Create Data Deletion
Create a deletion job to remove user data from Mixpanel.Your project token
Array of distinct IDs to delete
Compliance type:
GDPR or CCPADefault: GDPRExample Request
Check Deletion Status
The task ID from the deletion request
Your project token
Example Request
Cancel Deletion
Cancel a deletion job that is still in progress.The task ID of the deletion to cancel
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