Events
Import Events
post/import
Query parameters
strict'0' | '1' required
When set to 1 (recommended), Mixpanel will validate the batch and return errors per event that failed.
project_idstring required
The Mixpanel project_id, used to authenticate service account credentials.
Headers
Content-Type'application/json' | 'application/x-ndjson'
Content-Encoding'gzip'
Request body
Response
A 200 response indicates all records were successfully ingested.
Example response
{
"code": 200,
"num_records_imported": 2000,
"status": "OK"
}