How do I create a Service account in mixpanel that used for Raw Data Export API?
Hi Auston T., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> 👋
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Let me check the knowledge base for you again. One moment! 📚
Yes, Mixpanel still supports using Project Secret for API authentication, including for exporting data, but it is deprecated and new or updated integrations should use Service Accounts instead.
Project Secret auth is described as “in the process of being deprecated” but will continue to be supported for legacy customers so existing scripts don’t break. [Project secret]
For the Raw Data Export API, Project Secret is explicitly listed as a supported authentication method, with a note to migrate to Service Accounts. [Raw export auth (workspaces); Raw export auth]
Project Secret is used via HTTP Basic Auth, with the secret as the username and an empty password:
curl 'https://data.mixpanel.com/api/2.0/export?from_date=2026-01-10&to_date=2026-01-11' \
-u '<project_secret>:' \
--header 'accept: text/plain'
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Let me check the knowledge base for you again. One moment! 📚
You can view a project’s Project Secret in the same place as other access keys:
In Mixpanel, click the Settings gear.
Go to Project settings for the project.
Under the Access Keys section, you’ll see both the project token and the API secret / project secret listed. [Managing projects; Project secret]
You need to have sufficient project permissions (typically Project Owner or Admin) to view access keys. [Project roles]
Note that Project Secret is deprecated for new integrations; Mixpanel recommends using Service Accounts instead. [Project secret]
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
