Mixpanel Community Icon

Troubleshooting Event Ingestion Issues with cURL and Dashboard Display

·
·

I can't get ingesting events with curl to work. I'm doing things exactly as the docs say, and my HTTP request gets this response: {"code":200,"num_records_imported":1,"status":"OK"} implying that it was successful. But no matter what I try, nothing ever appears in the events panel in my dashboard. What am I doing wrong?

  • Avatar of George
    George
    ·
    ·

    Here's a sample curl I've tried (with my project ID and token redacted)

    curl --request POST \
         --url 'https://api.mixpanel.com/import?strict=1&project_id=ID' \
         --header 'Content-Type: application/json' \
         --header 'accept: application/json' \
         --user 'TOKEN:' \
         --json '
    [{"event":"recipe_created","properties":{"time":1727771163,"distinct_id":"user-4","$insert_id":"created-recipe-331233"}}]]  

    I am 100% definitely using the right ID and token. And the request gets this response:

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

    So why doesn't an event appear in my dashboard?

  • Avatar of George
    George
    ·
    ·

    I have been stuck on this for hours and it is driving me insane