Issues with Backfilling Events in Mixpanel Using /import API
·
I'm attempting to backfill some events using the /import API today and I'm not sure what I'm doing wrong. I've called the API and receive a successful response: { code: 200, num_records_imported: 2, status: 'OK' } . When I look for my imported events in Mixpanel they are not there. Has anyone had this issue before? I thought maybe there is a delay before events can be seen in the UI but it's been more than 30 minutes. My imported data looks something like this
[
{
event: 'Completed Session',
properties: {
distinct_id: '1c84b592-9b63-11ee-bc16-0a499a41197b',
'$insert_id': 'b24510e0-1006-11f0-ae7c-02466f607f67',
time: 1743631747,
sessionId: 'b24510e0-1006-11f0-ae7c-02466f607f67'
}
},
{
event: 'Completed Session',
properties: {
distinct_id: '0bfc1cc2-651d-11ef-ae55-02466f607f67',
'$insert_id': '3a9dcfb8-1002-11f0-a98d-02466f607f67',
time: 1743626369,
sessionId: '3a9dcfb8-1002-11f0-a98d-02466f607f67'
}
}
]