Skip to main content
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: GDPR
string
CCPA disclosure type (only if compliance_type is CCPA): Data, Categories, or SourcesDefault: Data

Example 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, UNKNOWN
string
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: GDPR

Example Request

Data deletion is permanent and cannot be undone. Ensure you have the correct distinct IDs before proceeding.

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.