Set up credentials
Find your project token
In Mixpanel, open the settings gear and go to Project Settings > Access
Keys. Copy the Project Token. Note that the token is used for data
ingestion, not for reading data.
Find your project ID
Go to Organization Settings > Projects, open your project, and copy the
Project ID.
Create a service account
With Owner or Admin permissions, go to Organization Settings > Service
Accounts and create a new service account. Assign it a role with access to
your project.
To read analytics data (events, funnels, retention, segmentation), Adapt uses
Mixpanel’s Query API, which requires the service account username and
secret plus the project ID. The project token on its own is for
ingestion and cannot query data, so provide the service account and project ID
even though they are listed as optional below.
Connect to Adapt
Add your credentials
Enter the values you gathered above, then click Add connection:
You can rename the connection and choose whether it is shared with your
organization or kept personal to you.
| Secret Name | Value |
|---|---|
MIXPANEL_TOKEN | Your project token |
MIXPANEL_PROJECT_ID | Your project ID (optional) |
MIXPANEL_SERVICE_ACCOUNT_USERNAME | Service account username (optional) |
MIXPANEL_SERVICE_ACCOUNT_SECRET | Service account secret (optional) |
Security
- Credentials are encrypted at rest with AES-256
- Give the service account only the project access and role it needs
- Optionally set an expiration on the service account to support credential rotation
- The service account secret is shown only once; store it securely and delete the account to revoke access
- Never share your credentials or commit them to source control