Skip to main content
New to Corsair? See API access, authentication, and error handling.

Annotations

create

annotations.create Create a chart annotation marking an event on a date Risk: write
Input Output

createTag

annotations.createTag Create an annotation tag Risk: write
Input Output

delete

annotations.delete Delete an annotation Risk: destructive · Irreversible
Input Output

get

annotations.get Get one annotation by id Risk: read
Input Output

list

annotations.list List the chart annotations in the project, optionally by date range Risk: read
Input Output

listTags

annotations.listTags List the annotation tags in the project Risk: read
Input: empty object Output

update

annotations.update Change an annotation’s description or tags Risk: write
Input Output

Audit Logs

query

auditLogs.query Query the organization’s audit log (who changed what, when), filtered by user, type, service and date Risk: read
Input Output

Cohorts

list

cohorts.list List every saved cohort with its id, member count, visibility and description Risk: read
Input POST /cohorts/list on the query host; Mixpanel answers a bare array, returned as { cohorts }. 402 on the free plan. Output

Data Definitions

create

dataDefinitions.create Create a Lexicon data definition (event, property, custom event, metric, behavior or cohort) Risk: write
Input
Output

delete

dataDefinitions.delete Delete a data definition Risk: destructive · Irreversible
Input Output

get

dataDefinitions.get Get one Lexicon data definition Risk: read
Input Output

list

dataDefinitions.list List Lexicon data definitions (events, properties, metrics, cohorts) with filters, paged by cursor Risk: read
Input Platform API (platform-<region>.mixpanel.com/v1). Pass workspace_id for the workspace-scoped routes; otherwise the project’s. Pages by cursor (pagination.next_cursor). Output

merge

dataDefinitions.merge Merge event or property definitions into one canonical definition Risk: write
Input Output

unmerge

dataDefinitions.unmerge Undo a merge of data definitions Risk: write
Input Output

update

dataDefinitions.update Update a data definition’s description, display name, tags, owners or hidden/blocked/verified flags; blocked: true drops its data at ingestion Risk: destructive
Input
Output

Data Definition Tags

create

dataDefinitionTags.create Create a data definition tag Risk: write
Input Output

delete

dataDefinitionTags.delete Delete a data definition tag (it is removed from every definition) Risk: destructive · Irreversible
Input Output: empty object

get

dataDefinitionTags.get Get one data definition tag Risk: read
Input Output

list

dataDefinitionTags.list List data definition tags with their usage counts Risk: read
Input Output

rename

dataDefinitionTags.rename Rename a data definition tag Risk: write
Input Output

Events

counts

events.counts Aggregate counts of one or more events over time Risk: read
Input Output

import

events.import Import up to 2000 server-side events (service account auth, any age), validated per event unless strict is 0 Risk: write
Input POST /import on the ingestion host with the service account and project_id. Every event needs time, distinct_id and $insert_id; Mixpanel deduplicates on those plus the event name, so a retried batch cannot double-count. With the default strict: '1' a 400 lists the rejected events in failed_records; the error quotes the first message.
Output

names

events.names The most common event names over the last 31 days Risk: read
Input Output

propertyCounts

events.propertyCounts Aggregate counts of an event broken down by the values of one property Risk: read
Input Output

top

events.top Today’s top events with counts and change against yesterday Risk: read
Input Output

topProperties

events.topProperties The top property names of an event with their counts Risk: read
Input Output: Record<string, any>

topPropertyValues

events.topPropertyValues The top values of one event property Risk: read
Input Output

track

events.track Track up to 2000 recent events (last 5 days) with the project token, the client-side ingestion route Risk: write
Input POST /track with the project token added to each event. Takes events from the last five days only; use events.import for older data.
Output

Experiments

archive

experiments.archive Archive an experiment Risk: write
Input Output

create

experiments.create Create a draft experiment Risk: write
Input
Output

decide

experiments.decide Record the decision on a concluded experiment (success and winning variant) Risk: destructive · Irreversible
Input Output

delete

experiments.delete Delete an experiment Risk: destructive · Irreversible
Input Output

forceConclude

experiments.forceConclude Stop a running experiment now, ending exposure to its variants Risk: destructive · Irreversible
Input Output

get

experiments.get Get one experiment Risk: read
Input Output

launch

experiments.launch Launch an experiment: live users start getting its variants Risk: destructive
Input Output

list

experiments.list List the experiments of a workspace Risk: read
Input Output

unarchive

experiments.unarchive Restore an archived experiment Risk: write
Input Output

update

experiments.update Update an experiment’s fields Risk: write
Input
Output

Export

events

export.events Export raw events for a date range as parsed objects, with optional event-name filter, expression filter and limit Risk: read
Input GET /export on the data host. The body is newline-delimited JSON; the plugin parses each line and fails, naming only the line number, on one it cannot parse. One request covers one date range, capped by limit. Output

Feature Flags

create

featureFlags.create Create a feature flag with variants and rollout rules Risk: write
Input
Output

definitions

featureFlags.definitions Get the definitions of every flag, for local evaluation in server SDKs Risk: read
Input: empty object Output

delete

featureFlags.delete Delete a feature flag Risk: destructive · Irreversible
Input Output

evaluate

featureFlags.evaluate Evaluate every enabled feature flag for one user and return the assigned variants Risk: read
Input Output

get

featureFlags.get Get one feature flag with its ruleset Risk: read
Input Output

list

featureFlags.list List the feature flags of a workspace Risk: read
Input Output

update

featureFlags.update Replace a feature flag (full PUT: send every field); changes what live users are served Risk: write
Input
Output

Funnels

list

funnels.list List the saved funnels with their ids and names Risk: read
Input Output

query

funnels.query Query a saved funnel for a date range, with optional segmentation and conversion window Risk: read
Input Output

Gdpr

cancelDeletion

gdpr.cancelDeletion Cancel a GDPR deletion job that has not started yet Risk: write
Input Output

createDeletion

gdpr.createDeletion Start a GDPR/CCPA deletion job that permanently deletes all events and profile data of the given users Risk: destructive · Irreversible
Input Needs gdpr_token and project_token. Deletes every event and profile of the users; Mixpanel runs it as a job you can cancel with gdpr.cancelDeletion until it starts. Output

createRetrieval

gdpr.createRetrieval Start a GDPR/CCPA data retrieval job that exports everything stored about the given users Risk: write
Input Output

getDeletion

gdpr.getDeletion Check a GDPR deletion job Risk: read
Input Output

getRetrieval

gdpr.getRetrieval Check a GDPR data retrieval job Risk: read
Input Output

Groups

batchUpdate

groups.batchUpdate Apply up to 200 mixed group profile updates in one request; unsetandunset and delete entries remove data Risk: destructive
Input
Output

delete

groups.delete Permanently delete a group profile and its properties Risk: destructive · Irreversible
Input Output

remove

groups.remove Remove a value from list properties on a group profile Risk: write
Input Output

set

groups.set Set properties on a group profile, creating it if needed Risk: write
Input Output

setOnce

groups.setOnce Set properties on a group profile only where they are not set yet Risk: write
Input Output

union

groups.union Merge values into list properties on a group profile, skipping duplicates Risk: write
Input Output

unset

groups.unset Delete properties from a group profile Risk: destructive
Input Output

Identity

createAlias

identity.createAlias Send a $create_alias event so a new id resolves to an existing distinct_id (legacy ID management) Risk: write
Input Output

createIdentity

identity.createIdentity Send an $identify event linking an anonymous id to an identified id (original ID merge API) Risk: write
Input Output

merge

identity.merge Merge two distinct_ids into one user with a $merge event (original ID merge API); cannot be undone Risk: destructive · Irreversible
Input A $merge event through /import. Projects on Simplified ID Merge (every project created since 2023) refuse it: 400 “identity events are not allowed when project is using simplified identity management”. identity.createIdentity and identity.createAlias are accepted there but have no effect. Output

Insights

query

insights.query Read the data behind one saved Insights report by its bookmark id Risk: read
Input Output

run

insights.run Run an ad hoc Insights query (events, funnels, retention, cohorts, formulas) without a saved report Risk: read
Input POST /insights/query: an ad hoc report from metrics, time, filters and breakdowns, in Mixpanel’s Insights query format.
Output: empty object

Jql

run

jql.run Run a JQL script (custom JavaScript query) over events and profiles; JQL is in maintenance mode at Mixpanel Risk: read
Input Output

Lexicon

delete

lexicon.delete Delete the Lexicon schema of one event or profile type Risk: destructive · Irreversible
Input Output

deleteAll

lexicon.deleteAll Delete every Lexicon schema in the project Risk: destructive · Irreversible
Input: empty object Output

deleteForEntity

lexicon.deleteForEntity Delete every Lexicon schema for events or for profiles Risk: destructive · Irreversible
Input Output

get

lexicon.get Get the Lexicon schema of one event or profile type Risk: read
Input Output: empty object

list

lexicon.list List every Lexicon schema in the project Risk: read
Input: empty object Output

listForEntity

lexicon.listForEntity List the Lexicon schemas for events or for profiles Risk: read
Input Output

upsert

lexicon.upsert Create or replace the Lexicon schema of one event or profile type; metadata dropped: true makes Mixpanel drop that event at ingestion Risk: destructive
Input
Output

upsertMany

lexicon.upsertMany Create or replace many Lexicon schemas at once; truncate deletes every schema not uploaded Risk: destructive
Input
Output

Lookup Tables

list

lookupTables.list List the lookup tables in the project with their ids Risk: read
Input: empty object Output

replace

lookupTables.replace Replace every row of a lookup table with new CSV content (max 100 MB); the old rows are gone Risk: destructive
Input Output

Pipelines

create

pipelines.create Create a data pipeline that exports project data to a bucket or warehouse (a paid add-on that bills while it runs) Risk: destructive
Input Output: object \| any[]

delete

pipelines.delete Delete (cancel) a data pipeline Risk: destructive · Irreversible
Input Output: object \| any[]

edit

pipelines.edit Change a pipeline’s event filter or settings Risk: write
Input Output: object \| any[]

list

pipelines.list List the data pipelines of the project Risk: read
Input: empty object Output

pause

pipelines.pause Pause a data pipeline Risk: write
Input Output: object \| any[]

resume

pipelines.resume Resume a paused data pipeline Risk: write
Input Output: object \| any[]

status

pipelines.status Get a pipeline’s export jobs by status Risk: read
Input Output

timeline

pipelines.timeline List the dates a pipeline has synced Risk: read
Input Output

Profiles

activity

profiles.activity Return the event activity stream of one or more users’ profiles for a date range Risk: read
Input Output

append

profiles.append Append a value to list properties on a user profile Risk: write
Input Output

batchUpdate

profiles.batchUpdate Apply up to 2000 mixed profile updates in one request; unsetandunset and delete entries remove data Risk: destructive
Input
Output

delete

profiles.delete Permanently delete a user profile and its properties (events stay) Risk: destructive · Irreversible
Input Output

increment

profiles.increment Add to (or subtract from) numeric properties on a user profile Risk: write
Input Output

query

profiles.query Query user or group profiles with an expression, a cohort filter or exact distinct_ids, paged via session_id and next_page Risk: read
Input POST /engage on the query host. To page, pass the response’s next_page as page with the same session_id and the same filters; stop when next_page is null. Output

remove

profiles.remove Remove a value from list properties on a user profile Risk: write
Input Output

set

profiles.set Set properties on a user profile, creating the profile if needed Risk: write
Input POST /engage with the project token. Every profile operation takes distinct_id and its Mixpanel operator field ($set, $set_once, $add, $union, $append, $remove, $unset). Mixpanel answers status 1 even for a wrong token, so check the project with profiles.query. Output

setOnce

profiles.setOnce Set properties on a user profile only where they are not set yet Risk: write
Input Output

union

profiles.union Merge values into list properties on a user profile, skipping values already present Risk: write
Input Output

unset

profiles.unset Delete properties from a user profile Risk: destructive
Input Output

Retention

frequency

retention.frequency Frequency (addiction) report: how many users did an event on how many hours or days of each period Risk: read
Input Output

query

retention.query Run a birth or compounded retention query for a date range, per day, week or month Risk: read
Input Output: Record<string, any>

Segmentation

average

segmentation.average Average a numeric property of an event per time unit Risk: read
Input Output

numeric

segmentation.numeric Segment an event by numeric ranges of a property Risk: read
Input Output

query

segmentation.query Count an event over time, optionally segmented by a property (Segmentation report) Risk: read
Input Output

sum

segmentation.sum Sum a numeric property of an event per time unit Risk: read
Input Output

Service Accounts

addToProjects

serviceAccounts.addToProjects Grant service accounts access to projects with a role Risk: write
Input
Output

create

serviceAccounts.create Create a service account and return its secret once; this mints a new credential with the given role Risk: destructive
Input Returns the new account’s secret once, in results.token. Organization calls need an organization admin or owner service account.
Output

delete

serviceAccounts.delete Delete a service account; anything using its secret stops working (including this connection, if it is this one) Risk: destructive · Irreversible
Input Output: empty object

get

serviceAccounts.get Get one service account of the organization Risk: read
Input Output

list

serviceAccounts.list List the organization’s service accounts Risk: read
Input Output

listForProject

serviceAccounts.listForProject List the service accounts that can reach this project, with their roles Risk: read
Input: empty object Output

removeFromProjects

serviceAccounts.removeFromProjects Remove service accounts from projects; they lose access at once Risk: destructive
Input
Output

Warehouse Imports

createEventStream

warehouseImports.createEventStream Create an import that loads events from a warehouse table Risk: write
Input
Output

createGroups

warehouseImports.createGroups Create an import that loads group profiles from a warehouse table Risk: write
Input
Output

createLookupTable

warehouseImports.createLookupTable Create an import that loads a lookup table from a warehouse table Risk: write
Input
Output

createPeople

warehouseImports.createPeople Create an import that loads user profiles from a warehouse table Risk: write
Input
Output

delete

warehouseImports.delete Delete a warehouse import, and with delete_data the data it imported Risk: destructive · Irreversible
Input Output

get

warehouseImports.get Get one warehouse import with its settings Risk: read
Input Output

history

warehouseImports.history List the past sync runs of a warehouse import Risk: read
Input Output

list

warehouseImports.list List the warehouse imports of the project Risk: read
Input: empty object Output

run

warehouseImports.run Start a sync of a warehouse import now Risk: write
Input Output

update

warehouseImports.update Pause, resume or reschedule a warehouse import Risk: write
Input
Output