View as Markdown
Mixpanel (Service Account) icon

Mixpanel (Service Account) ACTION

Get Profile Event Activity

Get the chronological event feed for one or more specific users - what they did, when, and with which event properties. This is the "what has this user been doing?" tool. Requires exact distinct_id values; it cannot search by email. Note that Mixpanel has placed the underlying /stream/query endpoint in maintenance mode. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mixpanel (Service Account) account once, then configure and run Get Profile Event Activity from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mixpanel_service_account-get-profile-event-activity",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mixpanel_service_account: { authProvisionId: "apn_xxxxxxx" },
    distinctIds: ["Distinct IDs"],
    fromDate: "From Date",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Profile Event Activity inputs
Property Type Description
distinctIds Distinct IDs string[]
One or more Mixpanel distinct_id values identifying the user profiles to look up. Use Query Profiles to find distinct_id values by email or any other profile property.
Required
fromDate From Date string
Start of the query window in YYYY-MM-DD format (for example, 2026-07-01). Inclusive, and interpreted in the project's timezone.
Required
toDate To Date string
End of the query window in YYYY-MM-DD format (for example, 2026-07-29). Inclusive, and interpreted in the project's timezone.
Required
workspaceId Workspace ID integer
The ID of the Data View to query. Only needed for projects that use Data Views; leave it empty otherwise. It is the segment after /view/ in a project URL such as https://mixpanel.com/project/1234/view/5678/app/boards.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
mixpanel_service_account-get-profile-event-activity
Version
0.0.1
App
Mixpanel (Service Account)
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes