Skip to content

Mixpanel

Mixpanel

Mixpanel is a product analytics platform that tracks user interactions and engagement, providing cohort analysis, funnels, and A/B testing to improve user experiences. With the integration in SquadOS, your agents can query events, segment users, update profiles, and run advanced analytical queries without leaving the automated workflow.

This tool uses Basic auth (username/password) (BASIC) to connect. Mixpanel uses HTTP Basic Auth with service account credentials — the “username” field is the service account username and the “password” field is the secret generated at creation time.

You will need the following fields:

FieldRequiredDescription
usernameYesMixpanel service account username.
secretYesService account secret, shown only once at creation time.
  1. Go to the Mixpanel dashboard and sign in.
  2. Click your organization icon in the top-left and select Organization Settings.
  3. In the sidebar, click Service Accounts.
  4. Click Create Service Account.
  5. Set the name, role, and the projects the service account will have access to.
  6. Optionally configure an expiration date for credential rotation.
  7. Click Create — the screen will display the username and secret. Copy the secret immediately, as it cannot be recovered later.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Mixpanel.
  3. Click the card to open the details modal and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you enter the username and secret from the service account obtained above.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available to agents. (Connection-flow details in Organization Tools.)

Add Unique Values to Profile List Property

Section titled “Add Unique Values to Profile List Property”

MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY

Tool to add unique values to list properties on user profiles in Mixpanel using the $union operation. Use when you need to add items to list-type properties without creating duplicates. Unlike $append, $union ensures values are unique in the list. If the property doesn’t exist, it creates a new list with the provided values.

NameTypeRequiredDescription
ipintegerNoControls geolocation. Set to 0 to disable geolocation, 1 to enable. Default is 1.
dataarrayYesA list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates.
strictintegerNoEnables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.
verboseintegerNoReturns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.
callbackstringNoJSONP callback function name. Used for JSONP requests.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES

Get unique, total, or average data for a single event and property over days, weeks, or months. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
namestringYesThe name of the property you would like to get data for.
typestring (“general” | “unique” | “average”)YesThe analysis type you would like to get data for.
unitstring (“minute” | “hour” | “day” | “week” | “month”)YesThe level of granularity of the data.
eventstringYesThe event that you wish to get data for. Note: this is a single event name, not an array.
limitintegerNoThe maximum number of values to return.
formatstring (“json” | “csv”)NoData format options for Mixpanel responses.
valuesarrayNoThe specific property values that you would like to get data for. Example: [‘female’, ‘unknown’].
to_datestringNoThe date in yyyy-mm-dd format to query to (inclusive).
intervalintegerNoThe number of units to return data for. Specify either interval or from_date and to_date.
from_datestringNoThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_AGGREGATE_EVENT_COUNTS

DEPRECATED: Use MIXPANEL_AGGREGATE_EVENTS instead. Tool to get unique, total, or average data for events over N days, weeks, or months. Use when analyzing event trends and patterns over time with different aggregation methods.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average”)YesAnalysis type - determines the aggregation method for event data. Valid values: ‘general’, ‘unique’, ‘average’, ‘sum’.
unitstring (“minute” | “hour” | “day” | “week” | “month”)YesTime granularity for data aggregation - determines how data points are grouped.
eventstringYesThe event or events to get data for, encoded as a JSON array string (e.g., ’[“Event1”, “Event2”]’).
formatstring (“json” | “csv”)NoData format options for Mixpanel responses.
to_datestringNoEnd date in format YYYY-MM-DD (inclusive).
intervalintegerNoNumber of time units to return data for.
from_datestringNoStart date in format YYYY-MM-DD (inclusive). Strongly recommended; omitting both from_date and to_date may cause missing parameter errors.
project_idintegerYesProject identifier for authentication and project selection.
workspace_idintegerNoWorkspace identifier if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_AGGREGATE_EVENTS

Get aggregate event counts over time. Supports different types of aggregation: general, unique, average, sum.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average” | “sum”)NoType of aggregation.
unitstring (“minute” | “hour” | “day” | “week” | “month”)NoTime unit for grouping results.
eventstringNoName of the event to analyze. At least one of event or events must be provided per request.
limitintegerNoMaximum number of results to return.
wherestringNoExpression to filter events.
eventsarrayNoList of event names to analyze.
to_datestringYesEnd date for the query (inclusive).
intervalintegerNoTime interval for the results in seconds.
from_datestringYesStart date for the query (inclusive).
project_idintegerYesThe ID of the project to query.
workspace_idintegerNoThe ID of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_COHORTS_LIST

Tool to list all saved cohorts in a Mixpanel project. Use when you need to retrieve cohort metadata including name, id, count, description, creation date, and visibility. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
project_idintegerYesThe ID of the project to query. Required for listing cohorts.
workspace_idintegerNoThe ID of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_CREATE_ANNOTATION_TAG

Tool to create a new annotation tag in Mixpanel using the provided name. Use when you need to create tags for organizing and categorizing annotations. Requires a role of at least Analyst.

NameTypeRequiredDescription
namestringYesThe name of the annotation tag to create.
project_idstringYesThe project identifier where the annotation tag will be created.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_CREATE_IDENTITY

Tool to create an identity mapping in Mixpanel by linking an anonymous ID with an identified user ID. Use when you need to connect pre-login anonymous activity with post-login identified user activity. This operation is typically performed after user authentication to associate all previous anonymous events with the user’s identified profile.

NameTypeRequiredDescription
tokenstringYesProject authentication token for client-side authentication.
strictinteger (“0” | “1”)NoValidation mode for the request.
anon_idstringYesThe anonymous ID (UUID v4 format) to be linked with the identified user ID. This is typically the ID used before the user authenticated.
distinct_idstringNoOptional distinct ID. If provided, this will be used as the post-ID for the identity.
identified_idstringYesThe identified user ID to link with the anonymous ID. This is typically the user’s ID after they sign up or log in.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_CREATE_SERVICE_ACCOUNT

Tool to create a new service account for your organization and optionally add it to projects. Use when you need to generate API credentials for programmatic access. The response includes a token (secret) that cannot be recovered after creation. Requires service account with admin or owner role.

NameTypeRequiredDescription
rolestring (“owner” | “admin” | “analyst” | “consumer”)NoThe organization-level role for the service account. If not specified, service account will have no organization-level role.
expiresstringNoISO 8601 date-time format string indicating when the service account should expire. If not specified, the service account will have no expiration.
projectsarrayNoList of projects to add the service account to with specified roles.
usernamestringYesA descriptive name for the service account.
organization_idstringYesThe unique identifier for the organization.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_DELETE_GROUP

Tool to permanently delete a group profile from Mixpanel Group Analytics. Use when you need to completely remove a group profile and all of its properties. The deletion is permanent and cannot be undone. Note that group properties on historical events remain intact even after group deletion.

NameTypeRequiredDescription
timeintegerNoUnix timestamp in milliseconds for when the deletion should be recorded. If not provided, current time is used.
tokenstringYesYour Mixpanel project token for authentication.
group_idstringYesThe unique identifier for the specific group to permanently delete.
group_keystringYesThe group category/type identifier (e.g., ‘company’, ‘organization’, ‘team’).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_DELETE_PROFILE

Tool to permanently delete a user profile from Mixpanel, along with all of its properties. Use when you need to completely remove a profile. The deletion is permanent and cannot be undone. Note that this only deletes the profile, not the associated events. For duplicate profiles, use $ignore_alias: true to avoid deleting the original profile.

NameTypeRequiredDescription
ipstringNoIP address for request attribution. Set to ‘0’ to not update geolocation data.
tokenstringYesProject authentication token for API authentication.
distinct_idstringYesUnique identifier for the user profile to permanently delete.
ignore_timebooleanNoIf true, Mixpanel will not automatically update the ‘Last Seen’ property before deletion.
ignore_aliasbooleanNoIf true, prevents deletion of the original profile when deleting duplicates using an alias as distinct_id.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_DELETE_PROFILE_BATCH

Tool to permanently delete multiple user profiles from Mixpanel in a single batch request. Use when you need to delete multiple profiles efficiently. The deletion is permanent and cannot be undone. This only deletes the profiles, not the associated events. For duplicate profiles, use $ignore_alias: true to avoid deleting the original profile.

NameTypeRequiredDescription
profilesarrayYesList of profile delete operations to execute. Each profile must include $token, $distinct_id, and $delete. Maximum 50 deletions per request recommended.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_DELETE_PROFILE_PROPERTY

Tool to permanently delete properties from a Mixpanel user profile using the $unset operation. Use when you need to remove specific properties and their values from a profile. Properties are permanently removed and cannot be recovered. Useful when cleaning up properties or approaching Mixpanel’s limit of 2000 properties per profile.

NameTypeRequiredDescription
ipstringNoIP address for request attribution. Set to ‘0’ to not update geolocation data.
timeintegerNoUnix timestamp for when the operation occurred.
tokenstringYesProject authentication token for API authentication.
unsetarrayYesList of property names to permanently remove from the profile. Properties are permanently deleted and cannot be recovered.
distinct_idstringYesUnique identifier for the user profile to update.
ignore_timebooleanNoIf true, Mixpanel will not automatically update the ‘Last Seen’ property.
ignore_aliasbooleanNoIf true, ignores alias processing and uses the distinct_id directly.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_GET_ALL_PROJECTS

Get all projects associated with the authenticated Mixpanel account. Returns project details including name, permissions, role, domain, and other configuration details. If a project appears inaccessible, verify the connection region matches the project’s cluster before assuming a permissions issue.

NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_GET_ANNOTATION_TAGS_ALT1

Tool to get all annotation tags from a Mixpanel project. Use when you need to retrieve tags that have been added to annotations. Requires a role of at least Analyst.

NameTypeRequiredDescription
project_idstringYesThe unique identifier for the Mixpanel project.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_GROUP_BATCH_UPDATE

Tool to send a batch of group profile updates to Mixpanel. Use when you need to update multiple group profiles in a single request. Supports operations like $set, $set_once, $union, $remove, $unset, and $delete. Note: $add is NOT supported for group profiles.

NameTypeRequiredDescription
dataarrayYesA list of group profile update objects. Each object contains the group identifiers and operations to perform.
response_formatstring (“IP” | “Strict” | “Verbose”)NoControls response format. IP: returns ‘1’ for valid data, Strict: returns error for any invalid records, Verbose: detailed response.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_GROUP_DELETE_PROPERTY

Tool to delete specific properties from a Mixpanel group profile. Use when you need to permanently remove unwanted properties from a group (company, organization, team, etc.). The operation uses the $unset operation to permanently remove the specified properties.

NameTypeRequiredDescription
tokenstringYesYour Mixpanel project authentication token.
group_idstringYesThe unique identifier for the specific group to update.
group_keystringYesThe group category/type identifier (e.g., ‘company’, ‘organization’, ‘team’).
propertiesarrayYesList of property names to delete/unset from the group profile.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_GROUP_SET_PROPERTY

DEPRECATED: Use MIXPANEL_GROUP_BATCH_UPDATE instead. Tool to send batch group profile updates to Mixpanel. Use when you need to update properties for one or more groups (companies, organizations, teams, etc.). Supports multiple operations: $set (update/add), $set_once (set if not exists), $unset (delete), $remove (remove from list), $union (add to list uniquely).

NameTypeRequiredDescription
groupsarrayYesList of group profile updates to send. Each update must include $token, $group_key, $group_id, and at least one operation ($set, $set_once, $unset, $remove, or $union).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_IDENTITY_CREATE_ALIAS

Tool to create an alias mapping between two distinct IDs in Mixpanel. Use when you need to link a new identifier with an existing one. This is only available for projects using the Original ID Merge system and Legacy ID Management System; it has no effect in the Simplified ID Merge system. Typically called once during user signup to connect anonymous pre-signup events with post-signup activity. Each alias can only map to one distinct_id.

NameTypeRequiredDescription
aliasstringYesA new distinct_id value that will be interpreted as the existing distinct_id. Each alias can only map to one distinct_id.
tokenstringYesProject authentication token for client-side authentication.
distinct_idstringYesThe existing distinct ID to be merged with the alias. This is the original identifier that the alias will map to.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_JQL_QUERY

Execute a custom JQL (JavaScript Query Language) query against Mixpanel’s Query API. Key Constraints: 60 queries/hour, max 5 concurrent queries; 2-minute execution timeout; 5 GB data processing limit, 2 GB output limit; no remote network requests (XMLHttpRequest) are allowed inside the JQL script.

NameTypeRequiredDescription
paramsobjectNoA JSON-encoded object that will be made available in the script as params. Use this to pass dynamic date ranges, event names, or other parameters into your JQL query.
scriptstringYesA fully valid JavaScript code snippet for Mixpanel’s JQL engine. MUST define exactly one top-level function main() { ... } that returns the final dataset.
project_idintegerYesRequired if using service account credentials or an API secret for authentication.
workspace_idintegerNoThe ID of the Mixpanel workspace, if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_LIST_COHORTS

DEPRECATED: Use MIXPANEL_MIXPANEL_COHORTS_LIST instead. Get list of all cohorts in a Mixpanel project. Returns cohort details including name, id, count, description, creation date, and visibility. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
project_idintegerYesThe ID of the project to query. Required if using service account authentication.
workspace_idintegerNoThe ID of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_LIST_FUNNELS

Get the names and funnel_ids of your funnels. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_LIST_SAVED_COHORTS

DEPRECATED: Use MIXPANEL_MIXPANEL_COHORTS_LIST instead. Tool to list all saved cohorts in a Mixpanel project. Use when you need to retrieve cohort metadata including name, id, count, description, creation date, and visibility for every cohort in the project.

NameTypeRequiredDescription
project_idintegerYesThe ID of the project to query. Required for listing cohorts.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_LIST_SERVICE_ACCOUNTS

Tool to list all service accounts for an organization. Use when you need to retrieve service accounts, check when they were last used, or see when they expire. Requires service account with admin or owner role.

NameTypeRequiredDescription
organization_idstringYesThe unique identifier for the organization.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_APPEND_TO_LIST_PROPERTY

Tool to append values to list properties on user profiles in Mixpanel. Use when you need to add items to list-type properties. Unlike $union, $append allows duplicate values. If the property doesn’t exist, it creates a new list with the value as the first element.

NameTypeRequiredDescription
dataarrayYesA list of profile update objects. Each object must contain $token, $distinct_id, and $append properties.
verboseintegerNoWhen set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_BATCH_UPDATE

Tool to update multiple user profiles in Mixpanel in a single batch request. Use when you need to update properties for multiple users efficiently. Supports operations: $set (update/add), $set_once (set if not exists), $add (increment), $union (add to list uniquely), $append (append to list), $remove (remove from list), $unset (delete property), $delete (delete profile). Maximum 50 updates per request. Always check the response status and failed_records for individual update failures.

NameTypeRequiredDescription
profilesarrayYesList of profile updates to send. Maximum 50 updates per request. Each profile must include $token and either $distinct_id or $user_id, plus at least one operation.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_DELETE_PROPERTY

DEPRECATED: Use MIXPANEL_DELETE_PROFILE_PROPERTY instead. Tool to permanently delete properties from a user profile in Mixpanel. Use when you need to remove specific properties and their values from a profile. This operation uses $unset and permanently removes properties that cannot be recovered.

NameTypeRequiredDescription
ipstringNoIP address for request attribution. Set to ‘0’ to not update geolocation data.
timeintegerNoUnix timestamp for when the operation occurred.
tokenstringYesProject authentication token for API authentication.
unsetarrayYesJSON list of property names to permanently remove from the profile. Properties are permanently deleted and cannot be recovered.
distinct_idstringYesUnique identifier for the user profile to update.
ignore_timebooleanNoIf true, Mixpanel will not automatically update the ‘Last Seen’ property.
ignore_aliasbooleanNoIf true, ignores alias processing and uses the distinct_id directly.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_EVENT_ACTIVITY

Get event activity feed for specified users from Mixpanel Query API. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
to_datestringYesEnd date for the query (inclusive, format: YYYY-MM-DD).
from_datestringYesStart date for the query (inclusive, format: YYYY-MM-DD).
project_idintegerYesThe ID of the project to query. Required if using service account authentication.
distinct_idsarrayYesList of distinct_ids to return activity feeds for.
workspace_idintegerNoThe ID of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_NUMERICAL_ADD

Tool to increment or decrement numerical properties on user profiles in Mixpanel. Use when you need to add values to existing numerical properties (e.g., login counts, points, credits). Properties are incremented by the specified amount. If a property doesn’t exist, the value is added to zero. Use negative values to decrement properties.

NameTypeRequiredDescription
ipstringNoIP address for geolocation. Set to 0 or ‘0’ to avoid updating location data. Defaults to the request IP address if not provided.
addobjectYesA JSON object containing property names as keys and numerical increment values. Properties will be incremented by the specified amount. If a property doesn’t exist, the value is added to zero. Use negative values to decrement.
timeintegerNoUnix timestamp to override the time of the update. If not provided, uses current server time.
tokenstringYesYour Mixpanel project authentication token.
verboseintegerNoWhen set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).
distinct_idstringYesThe unique identifier for the user profile.
ignore_timebooleanNoIf true, prevents updating the ‘Last Seen’ property. Defaults to false.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_REMOVE_FROM_LIST_PROPERTY

Tool to remove values from list properties on user profiles in Mixpanel. Use when you need to remove specific items from list-type properties. If the value doesn’t exist in the list, no updates are made. If the property doesn’t exist or is not list-valued, the operation is ignored.

NameTypeRequiredDescription
dataarrayYesA list of profile update objects. Each object must contain $token, $distinct_id, and $remove properties.
verboseintegerNoWhen set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_PROFILE_SET

Tool to set user profile properties in Mixpanel using the $set operation. Use when you need to create or update properties on a user profile. Properties specified will be created if they don’t exist, or overwritten if they do. If the profile doesn’t exist, it will be created with these properties.

NameTypeRequiredDescription
ipstringNoIP address for geolocation enrichment. Set to ‘0’ to prevent updating geolocation data. If not provided, Mixpanel uses the request IP.
timeintegerNoUnix timestamp (seconds since epoch) indicating when the profile update occurred. Defaults to the current server time if not provided.
tokenstringYesYour Mixpanel project authentication token. Required for authenticating the request.
distinct_idstringYesThe unique identifier for the user profile to update. This determines which profile will be modified.
ignore_timebooleanNoIf true, prevents Mixpanel from automatically updating the ‘Last Seen’ property. Defaults to false.
set_propertiesobjectYesA dictionary of properties to set on the user profile. These properties will be created if they don’t exist, or overwritten if they do. Common properties include ‘name’, ‘email’, ‘status’, etc.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_FREQUENCY_REPORT

Get data about how frequently users are performing events. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
onstringNoThe property expression to segment the second event on.
unitstring (“day” | “week” | “month”)YesThe overall time period to return frequency of actions for.
eventstringNoThe event to generate returning counts for.
limitintegerNoReturn the top limit segmentation values.
wherestringNoAn expression to filter the returning events by.
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive).
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
addiction_unitstring (“hour” | “day”)YesThe granularity to return frequency of actions at.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_FUNNEL

Get data for a funnel. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
onstringNoThe property expression to segment the event on.
unitstring (“day” | “week” | “month”)NoMedium range time units for Mixpanel operations.
limitintegerNoReturn the top property values. Maximum value 10,000.
wherestringNoAn expression to filter events by.
lengthintegerNoThe number of units each user has to complete the funnel. May not be greater than 90 days.
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive).
intervalintegerNoThe number of days you want each bucket to contain.
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
funnel_idintegerYesThe funnel that you wish to get data for.
project_idintegerYesRequired if using service account to authenticate request.
length_unitstring (“second” | “minute” | “hour” | “day”)NoExtended time units including seconds for funnel analysis.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_INSIGHT

Get data from your Insights reports. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
project_idintegerYesRequired if using service account to authenticate request. Must match the configured connection region/cluster; a mismatch returns ‘invalid project id for cluster’.
bookmark_idintegerYesThe ID of your Insights report.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

Get Top Event Names (Last 31 Days) (Deprecated)

Section titled “Get Top Event Names (Last 31 Days) (Deprecated)”

MIXPANEL_QUERY_MONTHS_TOP_EVENT_NAMES

DEPRECATED: Use MIXPANEL_TOP_EVENTS instead. Get a list of the most common event names over the last 31 days. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Use when you need to discover what events are being tracked most frequently in your project.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average”)YesThe analysis type for the query - general, unique, or average.
limitintegerNoMaximum number of event names to return. Default is 255.
project_idintegerYesThe project identifier. Required if using service account to authenticate request.
workspace_idintegerNoThe workspace identifier. Required only for projects with Data Views enabled.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_NUMERIC_AVERAGE

Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
onstringYesThe numeric expression to average per unit time (should evaluate to a number).
unitstring (“hour” | “day”)NoShorter time units for certain Mixpanel operations.
eventstringYesThe event to get data for (single event name).
wherestringNoAn expression to filter events by.
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive).
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_NUMERIC_SUM

Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
onstringYesThe numeric expression to sum per unit time (should evaluate to a number).
unitstring (“hour” | “day”)NoShorter time units for certain Mixpanel operations.
eventstringYesThe event to get data for (single event name).
wherestringNoAn expression to filter events by.
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive).
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_PROFILES

Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
pageintegerNoWhich page of results to retrieve (starts at 0).
wherestringNoAn expression to filter users (or groups) by.
behaviorsintegerNoRequired when using event selector for user profiles.
project_idintegerYesThe ID of the project to query. Required if using service account authentication.
session_idstringNoSession ID from a previous query for pagination.
distinct_idstringNoA unique identifier used to distinguish an individual profile.
distinct_idsarrayNoA list of distinct_ids to retrieve profiles for.
workspace_idintegerNoThe ID of the workspace if applicable.
data_group_idstringNoThe ID of the group key, used when querying group profiles.
as_of_timestampintegerNoUsed with behaviors parameter for large exports.
filter_by_cohortobjectNoFilter by cohort ID. Example: {‘id’: 12345}.
include_all_usersbooleanNoWhen using filter_by_cohort, whether to include all distinct_ids even without profiles.
output_propertiesarrayNoList of property names to return in the response.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_RETENTION_REPORT

Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the ‘unit’ parameter to control cohort interval granularity (‘day’, ‘week’, ‘month’); defaults to ‘day’.

NameTypeRequiredDescription
onstringNoProperty expression for segmentation (segments results by specified property).
unitstring (“day” | “week” | “month”)NoMedium range time units for Mixpanel operations.
eventstringNoThe target event to measure retention against.
limitintegerNoMaximum number of top segmentation values to return (only valid with ‘on’ parameter).
wherestringNoFilter expression for event.
to_datestringYesEnd date for the query range in YYYY-MM-DD format (inclusive).
from_datestringYesStart date for the query range in YYYY-MM-DD format (inclusive).
born_eventstringNoThe initial event that defines the cohort entry (required when retention_type=‘birth’).
born_wherestringNoFilter expression for born_event.
project_idintegerYesProject identifier (required when using service account authentication).
workspace_idintegerNoWorkspace identifier if applicable.
interval_countintegerNoNumber of individual buckets/intervals to return.
retention_typestring (“birth” | “compounded”)NoType of retention analysis: ‘birth’ for first-time retention or ‘compounded’ for recurring retention.
unbounded_retentionbooleanNoWhen true, uses accumulation method where values accumulate from right to left.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_SEGMENTATION

Get data for an event, segmented and filtered by properties with daily/time-series breakdown. Use the ‘unit’ parameter to control time bucketing (‘minute’, ‘hour’, ‘day’, ‘month’). The Query API has a rate limit of 60 queries per hour and 5 concurrent queries, shared across related tools; bursts of concurrent calls return 429.

NameTypeRequiredDescription
onstringNoThe property expression to segment the event on. Properties unset for many events produce ‘undefined’ segment buckets; interpret as missing instrumentation, not zero traffic.
typestring (“general” | “unique” | “average”)NoAnalysis types for Mixpanel event aggregation.
unitstring (“minute” | “hour” | “day” | “month”)NoTime units for segmentation queries.
eventstringYesThe event to get data for (single event name).
limitintegerNoReturn the top N property values (max 10000).
wherestringNoAn expression to filter events by.
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive). Use project timezone to avoid off-by-one-day range errors.
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request. Region mismatch returns ‘invalid project id for cluster’.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_QUERY_TOP_EVENTS

Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today’s event performance compared to yesterday.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average”)YesThe analysis type - general, unique, or average.
limitintegerNoMaximum number of events to return.
project_idintegerYesThe project identifier. Required if using service account to authenticate request.
workspace_idintegerNoThe workspace identifier if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_REMOVE_FROM_GROUP_LIST_PROPERTY

Tool to remove values from list properties on group profiles in Mixpanel. Use when you need to remove specific items from list-type properties on groups (companies, organizations, etc.). If the value doesn’t exist in the list, no updates are made. If the property doesn’t exist or is not list-valued, the operation is ignored.

NameTypeRequiredDescription
dataarrayYesA list of group profile update objects. Each object must contain $token, $group_key, $group_id, and $remove properties.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_REMOVE_FROM_LIST_PROPERTY

Tool to remove values from list properties on user profiles in Mixpanel using the $remove operation. Use when you need to remove specific items from list-type properties. If the value doesn’t exist in the list, no action is taken. The profile will be created if it doesn’t exist.

NameTypeRequiredDescription
ipstringNoIP address for geolocation enrichment. Set to ‘0’ to prevent updating geolocation data. If not provided, Mixpanel uses the request IP.
timeintegerNoUnix timestamp (seconds since epoch) indicating when the profile update occurred. Defaults to the current server time if not provided.
tokenstringYesYour Mixpanel project authentication token. Required for authenticating the request.
distinct_idstringYesThe unique identifier for the user profile to update. This determines which profile will be modified.
ignore_timebooleanNoIf true, prevents Mixpanel from automatically updating the ‘Last Seen’ property. Defaults to false.
remove_propertiesobjectYesA dictionary of list properties and values to remove. Each key is a property name and each value is the item to remove from that list property. If the value doesn’t exist in the list, no action is taken.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_SEGMENTATION_NUMERIC_QUERY

Tool to get event data numerically bucketed by property values. Use when you need to analyze distributions of numeric properties like revenue, session duration, or counts with automatic bucketing.

NameTypeRequiredDescription
onstringYesThe numeric property expression to bucket by. Use format like ‘number(property_name)’ or numeric expressions.
typestring (“general” | “unique” | “average”)NoAnalysis types for Mixpanel event aggregation.
unitstring (“hour” | “day” | “week” | “month”)NoLonger time units for certain analytics.
eventstringYesThe event name to get data for.
wherestringNoAn expression to filter events by (e.g., ‘properties[“country”] == “US”’).
to_datestringYesThe date in yyyy-mm-dd format to query to (inclusive).
from_datestringYesThe date in yyyy-mm-dd format to begin querying from (inclusive).
project_idintegerYesRequired if using service account to authenticate request.
bucket_sizeintegerNoSize of numeric buckets for grouping values. If not specified, Mixpanel will automatically determine bucket size.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_SET_GROUP_PROPERTY_ONCE

Tool to set properties on a Mixpanel group profile only if they don’t already exist. Use when you need to set initial properties for a group without overwriting existing values. Ideal for setting default values or tracking when a group was first created. Properties that already exist will not be modified.

NameTypeRequiredDescription
tokenstringYesProject authentication token for Mixpanel API authentication.
group_idstringYesUnique identifier for the specific group instance.
group_keystringYesGroup type identifier (e.g., ‘Company’, ‘Organization’, ‘Team’). This defines the category of the group.
propertiesobjectYesKey-value pairs of properties to set on the group profile. Properties will only be set if they don’t already exist on the group.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_SET_PROFILE_PROPERTY_ONCE

Tool to set user profile properties in Mixpanel using the $set_once operation. Use when you need to set properties that should only be recorded on their initial value. Properties specified will be created only if they don’t already exist on the profile. If a property already has a value, it will not be overwritten. Ideal for tracking first-time values like signup source, initial referrer, or first login date.

NameTypeRequiredDescription
ipstringNoIP address for geolocation enrichment. Set to ‘0’ to prevent updating geolocation data. If not provided, Mixpanel uses the request IP.
timeintegerNoUnix timestamp (seconds since epoch) indicating when the profile update occurred. Defaults to the current server time if not provided.
tokenstringYesYour Mixpanel project authentication token. Required for authenticating the request.
distinct_idstringYesThe unique identifier for the user profile to update. This determines which profile will be modified.
ignore_timebooleanNoIf true, prevents Mixpanel from automatically updating the ‘Last Seen’ property. Defaults to false.
set_once_propertiesobjectYesA dictionary of properties to set on the user profile only if they don’t already exist. If a property already has a value, it will not be overwritten. Useful for tracking initial values like ‘First Login’, ‘Signup Source’, ‘Initial Referrer’, etc.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_TODAYS_TOP_EVENTS

DEPRECATED: Use MIXPANEL_QUERY_TOP_EVENTS instead. Get the top events for today, with their counts and the normalized percent change from yesterday. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average”)YesThe analysis type you would like to get data for - such as general, unique, or average events.
limitintegerNoThe maximum number of events to return.
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_TOP_EVENT_PROPERTIES

Get the top property names for an event. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
eventstringYesThe event that you wish to get data for. Note: this is a single event name, not an array.
limitintegerNoThe maximum number of properties to return.
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_TOP_EVENT_PROPERTY_VALUES

Tool to get the top values for a property ordered by frequency. Use when you need to understand the most common values for a specific property on an event. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. This limit is shared across all Query API tools; on a 429 response, apply exponential backoff.

NameTypeRequiredDescription
namestringYesThe name of the property you would like to get data for.
eventstringYesThe event that you wish to get data for. Note: this is a single event name, not an array.
limitintegerNoThe maximum number of values to return.
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_TOP_EVENTS

Get a list of the most common events over the last 31 days. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.

NameTypeRequiredDescription
typestring (“general” | “unique” | “average”)YesThe analysis type you would like to get data for - such as general, unique, or average events.
limitintegerNoThe maximum number of values to return.
project_idintegerYesRequired if using service account to authenticate request.
workspace_idintegerNoThe id of the workspace if applicable.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.

MIXPANEL_UPDATE_GROUP_LIST_PROPERTY

Tool to add unique values to list properties on group profiles in Mixpanel. Use when you need to add items to list-type group properties without creating duplicates. The $union operation ensures that values are only added if they don’t already exist in the list.

NameTypeRequiredDescription
ipintegerNoControls geolocation parsing. Set to 0 to disable, 1 to enable. If not provided, defaults to request IP.
dataarrayYesA list of group union update objects. Each object must contain $token, $group_key, $group_id, and $union properties.
strictintegerNoEnables validation with error messages. Set to 1 to enable strict mode, 0 to disable.
verboseintegerNoReturns detailed operation success/failure information. Set to 1 for detailed response, 0 for simple response.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError if any occurred during the execution of the action.
successfulbooleanYesWhether or not the action execution was successful.