Hi team, I am having serious problems in using mix...
# questions
Hi team, I am having serious problems in using mix-panel import api. I was originally using this request:
Copy code
curl --location '<https://api.mixpanel.com/import?strict=1&project_id=><my_project_id>' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'authorization: Basic <Base_64_encoded_project_token>' \
--data '[
        "event": "shivam's happy path scenario event",
        "properties": {
            "time": 1618716477000,
            "distinct_id": "$device:18c80f769e8292a-00d4a38d16dbdb-30667d00-75300-18c80f769e9292a",
            "$insert_id": "29fc2962-6d9c-455d-95ad-95b84f09b9e4"
This was actually working until today when it started failing all of a sudden:
Copy code
  "error": "Unauthorized, invalid project secret. See docs for more information: <https://developer.mixpanel.com/reference/authentication#project-secret>",
  "status": 0
I find multiple inconsistencies in the documentation. Here it is written that this format should be used for authentication. But here it is mentioned that api-secret should be used. It is also specified here
is not mandatory but later in the doc. it is mentioned as required. As of now, I used api-secret approach and it worked. This approach using non-encoded
also seems to work. Please tell a me single way to do this and why all of sudden the api started failing with this error. It was completely working fine a few days ago when I checked.