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.
Let me check the knowledge base for you again. One moment! 📚
Let me check the knowledge base for you again. One moment! 📚
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.
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
The docs are explicit about when events can be attributed to groups, but they do not say that group_set timing affects that attribution.
What is documented:
Events are attributed to groups only if:
The group key is already configured in Project Settings, and
The event itself contains that group_key (e.g. company_id) as an event property. [Tracking events]
Mixpanel does not backfill events that were ingested before the group key was implemented in Project Settings, even if those events had the property. [Group FAQ]
Group profiles are created/updated only when you perform a group profile operation (e.g. group_set) or upload via CSV; events alone don’t create profiles. [Updating profiles]
The docs do not state that you lose attribution for events that:
were sent after the group key was configured in Project Settings, and
already had the group key on them as an event property,
just because group_set was added later. In other words, as long as the group key existed in Project Settings at ingestion time and the events carried that property, those events should already be attributed to the group; adding group_set later just creates/enriches the profile object.
What you can do now:
Bulk-create group profiles for that key (for all existing group IDs you care about) using:
group_set via SDK or /groups#group-set API, or
CSV upload in the Users report. [Updating profiles]
Once profiles exist, check a few:
Open a group profile for that key and confirm that historical events (from after the group key was configured) appear in the activity feed.
Because the docs don’t explicitly describe any limitation tied to late group_set (only to late group key setup), I can’t point to a statement that says those events will or won’t be back-attributed based on when you start calling group_set. The only hard cutoff the docs guarantee is the date the group key was added to Project Settings.
ℹ️ 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’re correct: based on the docs, you cannot retroactively attribute past events to groups if the group key wasn’t fully set up.
Two separate constraints apply:
Group key must be configured in Project Settings Mixpanel only attributes events to groups from the date the group key is set up in Project Settings. Historical events that contain the group key as an event property but were sent before the group key was configured will not be attributed to a group. [Group FAQ]
Group profiles are created/updated only via group profile operations (or CSV) A group_set (or similar) call creates/updates the group profile; events alone don’t create profiles. [Group impl]
Putting those together:
If events were sent before the group key existed in Project Settings → those events can’t be back-attributed to groups, even if you now create group profiles.
If the group key did exist in Project Settings at the time, but you just hadn’t called group_set yet → you can create the group profiles now (via group_set or CSV), and they will exist going forward, but the docs do not describe any mechanism to “backdate” those profiles so that past events gain group attribution they didn’t have at the time. The FAQ explicitly says Mixpanel “does not backfill historical data to groups before the group key was implemented,” and there’s no mention of backfilling based on late profile creation. [Group FAQ]
So, as far as the documentation shows, there is no supported way to backdate group profiles to retroactively attach past events that were not already attributed to a group at ingestion time.
ℹ️ 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! 📚
