v1

latestOpenAPI 3.0.3MIT2026-07-26104113247.1 KB
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

eventstring required

The name of the event.

Response

A 200 response indicates all records were successfully ingested.

codeinteger
num_records_importedinteger
statusstring

Example response

{
  "code": 200,
  "num_records_imported": 2000,
  "status": "OK"
}