I am making a request to the https://mixpanel.com/api/query/jql endpoint, but get the error "request failed with error: invalid project id for cluster. project_id: 123456"
Based on the error message you're receiving, it appears that there might be an issue with the project ID you're using in your request to the JQL endpoint. Let's go through some potential solutions:1. Ensure you're including the correct project_id
parameter in your request. According to the Query API documentation, the project_id
is a required parameter when using service account authentication Query API - JQL.2. Verify that the project ID you're using is correct. You can find your project ID by following these steps:
- Go to your Mixpanel project settings
- Look for the "Project ID" field in the project details section
Managing Projects3. Make sure you're using the correct authentication method. The preferred authentication method for the Query API is Service Account authentication Query API Authentication.4. If you're using a development or test environment, ensure you're not accidentally using a production project ID or vice versa. It's recommended to have separate projects for development and production Development and Production Project Setup.5. If you're working with a project that has Data Views, make sure to include the workspace_id
parameter in addition to the project_id
 Query API Authentication.If you've verified all of the above and are still encountering the error, you may want to double-check your project settings or contact Mixpanel support for further assistance.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.