How do I rotate project api secrets?
Hi Denny J., 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
You can rotate (reset) a project’s API secret yourself from the Mixpanel UI:
Go to Settings → Personal Settings.
Open the Projects tab.
Under Your Projects, find the project whose secret you want to rotate.
Click Reset next to that project’s API Secret / API Key. [Find tokens]
This will generate a new project secret; you’ll then need to update any scripts or integrations that authenticate with the old secret.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Is there any overlap to retain the old key for some amount of time?
Let me check the knowledge base for you again. One moment! 📚
Let me check the knowledge base for you again. One moment! 📚
The knowledge sources do not mention any grace period or overlap where both the old and new project API secrets work at the same time.
All that’s documented is:
You can reset the API Secret/API Key from Settings → Personal Settings → Projects → Your Projects → Reset. [Find tokens]
Project Secret is powerful and should be kept secure; it’s passed via HTTP Basic Auth. [Project secret]
There is no explicit statement that the old secret remains valid after reset, nor that there is any overlap window. For an authoritative answer on behavior at the exact moment of rotation, you’d need to contact Mixpanel Support.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
