Mixpanel Community Icon

Troubleshooting Invalid Project ID Error for Mixpanel JQL API

·
·

Hi all. I'm trying to make a request to the /api/query/jql endpoint, but I get the error request failed with error: invalid project id for cluster. project_id: [xxxx]" Anyone have any what I might be doing wrong? This is my curl request:

curl --request POST \
     --url 'https://mixpanel.com/api/query/jql?project_id=redacted' \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --header 'authorization: Basic redacted:redacted' \
     --data-urlencode 'script=function main(){
  return Events(params)
    .filter(function(e) { return ["4991a4f8-59da-402d-9aef-171aee84a9c6","2adb870b-15dd-49c2-b45e-b255e1cdc0b3", ....].includes(e.properties.product_id); })
}' \
     --data-urlencode 'params={
  "from_date": "2024-10-11",
  "to_date": "2024-10-27",
  "event_selectors": [{"event": "add_to_cart"}]
}'

The product id is copied from the project settings page on eu.mixpanel.com. There, it also says: Data Residency: EU and Timezone: Europe/Amsterdam