Docs
Tracking
How Tos
API Credentials

API Credentials

Project Token

You need your Project Token to track events to Mixpanel. Mixpanel uses Project Token to ensure that events that you send are routed to your project.

You can find it in the Project Settings (opens in a new tab) page under "Access Keys"

image

You can then use your token to track events to Mixpanel. See our guides for Javascript, Server, and Mobile.

Note: Project Token does not let you read any data from your Mixpanel project. It only lets you track. This is intentional because your Project Token is public and shipped to client devices as part of your website's Javascript code. or shared with 3rd parties, like CDPs.

API Secret

The API Secret is used to export data out of your project via our Export APIs. You can find it in the Project Settings (opens in a new tab) page under "Access Keys", right below Project Token.

You should not share your API Secret, since it can be used to export data from your Mixpanel project.

Service Accounts

Service Accounts (opens in a new tab) are a more advanced form of authentication that is used to grant temporary access to a subset of Mixpanel projects within your organization for certain APIs.

Service Accounts are not necessary to send data to Mixpanel or export data out of Mixpanel.