Events
Import Events
post/import
Request
- Base URLhttps://mixpanel.com/api/query
- Auth
- HTTP basic
- or HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}Changes
No recorded changes to this operation across all 1 revision of this API.