Mixpanel · Arazzo Workflow

Mixpanel Resolve Identity and Track

Version 1.0.0

Link an anonymous ID to a known user, track an event, then segment that event.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub AnalyticsData AnalysisEvent TrackingProduct AnalyticsUser BehaviorArazzoWorkflows

Provider

mixpanel

Workflows

identity-resolve-and-track
Create an identity mapping, track an event for the user, then segment it.
Calls /identity/create to link an anonymous ID to an identified ID, sends an event for the identified ID via /track, then queries /segmentation for that event.
3 steps inputs: anonId, eventName, fromDate, identifiedId, projectId, projectToken, toDate outputs: identityStatus, trackStatus, values
1
createIdentity
Create an identity mapping linking the anonymous device ID to the known user ID. The project token is carried in the $token body field.
2
trackForUser
Send an event for the now-identified user. Authentication uses the project token passed as the query parameter.
3
segmentEvent
Query event segmentation for the tracked event to confirm activity is attributed to the resolved identity. Uses service account basic auth.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mixpanel Resolve Identity and Track
  summary: Link an anonymous ID to a known user, track an event, then segment that event.
  description: >-
    The post-login identity-resolution loop. The workflow first creates an
    identity mapping between an anonymous device ID and a known user ID, then
    sends an event for the identified user, and finally reads the event back from
    the Segmentation endpoint to confirm activity is attributed to the resolved
    identity. Each step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: eventsApi
  url: ../openapi/mixpanel-events-api-openapi.yml
  type: openapi
- name: identityApi
  url: ../openapi/mixpanel-identity-api-openapi.yml
  type: openapi
- name: segmentationApi
  url: ../openapi/mixpanel-segmentation-api-openapi.yml
  type: openapi
workflows:
- workflowId: identity-resolve-and-track
  summary: Create an identity mapping, track an event for the user, then segment it.
  description: >-
    Calls /identity/create to link an anonymous ID to an identified ID, sends an
    event for the identified ID via /track, then queries /segmentation for that
    event.
  inputs:
    type: object
    required:
    - projectToken
    - projectId
    - identifiedId
    - anonId
    - eventName
    - fromDate
    - toDate
    properties:
      projectToken:
        type: string
        description: Mixpanel project token used for ingestion and identity auth.
      projectId:
        type: integer
        description: The Mixpanel project ID used by the Query API.
      identifiedId:
        type: string
        description: The known user ID to link the anonymous activity to.
      anonId:
        type: string
        description: The anonymous device ID to link.
      eventName:
        type: string
        description: Event name to track for the identified user and then segment.
      fromDate:
        type: string
        description: Segmentation start date (YYYY-MM-DD).
      toDate:
        type: string
        description: Segmentation end date (YYYY-MM-DD).
  steps:
  - stepId: createIdentity
    description: >-
      Create an identity mapping linking the anonymous device ID to the known
      user ID. The project token is carried in the $token body field.
    operationId: createIdentity
    requestBody:
      contentType: application/json
      payload:
        $identified_id: $inputs.identifiedId
        $anon_id: $inputs.anonId
        $token: $inputs.projectToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      identityStatus: $response.body#/status
  - stepId: trackForUser
    description: >-
      Send an event for the now-identified user. Authentication uses the project
      token passed as the query parameter.
    operationId: trackEvent
    parameters:
    - name: token
      in: query
      value: $inputs.projectToken
    - name: verbose
      in: query
      value: 1
    requestBody:
      contentType: application/json
      payload:
        data:
          event: $inputs.eventName
          properties:
            distinct_id: $inputs.identifiedId
            token: $inputs.projectToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      trackStatus: $response.body#/status
  - stepId: segmentEvent
    description: >-
      Query event segmentation for the tracked event to confirm activity is
      attributed to the resolved identity. Uses service account basic auth.
    operationId: querySegmentation
    parameters:
    - name: project_id
      in: query
      value: $inputs.projectId
    - name: event
      in: query
      value: $inputs.eventName
    - name: from_date
      in: query
      value: $inputs.fromDate
    - name: to_date
      in: query
      value: $inputs.toDate
    - name: type
      in: query
      value: unique
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      values: $response.body#/data/values
  outputs:
    identityStatus: $steps.createIdentity.outputs.identityStatus
    trackStatus: $steps.trackForUser.outputs.trackStatus
    values: $steps.segmentEvent.outputs.values

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/mixpanel-identity-resolve-and-track-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.