Skip to main content

Mixpanel ExecModule

Overview​

MixpanelModule reads one saved Mixpanel Insights report and returns its aggregate series to a workflow. A product team can maintain the metric definition, date range, and breakdown in Mixpanel while using the same report in a recurring review or monitoring step.

Usage​

  1. Save an Insights report in Mixpanel. Identify its bookmark ID and the project it belongs to.
  2. Create a Mixpanel connection in the Integration Account Console. In Workflow Studio, add a Mixpanel step and select the connection under General > Connection.
  3. Set the region that hosts the project and enter the report's bookmarkId. Provide the workspace ID if the report requires one.
  4. Run the step and check status before using the series. Use the returned date range when comparing snapshots, especially if the saved report uses a rolling window.

Inputs​

InputTypePurpose
bookmarkIdstringRequired saved Insights report ID.
workspaceIdstringOptional Mixpanel workspace ID.

Use positive decimal strings within the signed 64-bit range, with no leading zeros. Keep IDs as strings in mapped inputs to avoid rounding large integers. You can save these IDs on the step or map them from earlier steps. Mapped inputs take precedence.

Outputs​

OutputTypeMeaning
statusstringsuccess or error.
headersarrayReport headers returned by Mixpanel.
seriesobjectReport series keyed by provider labels, with nested breakdowns and numeric or null values.
computedAtstringOptional timestamp indicating when Mixpanel computed the report.
dateRangeobjectOptional report dates under fromDate and toDate.
httpStatusintegerProvider HTTP status when available.
attemptsintegerNumber of provider request attempts.
errorobjectOn failure, a sanitized code, message, and retryable flag.

Use the report's labels to find the desired series and keep null samples distinct from zero. A report edit can change its labels or series structure.

IntegrationAccount Requirements​

Select an authorized, saved READY IntegrationAccount for the mixpanel provider. Use a Mixpanel service account with access to the target project. Store the numeric project ID as accountId, the service account username as username, and its secret in the protected password field. The connector uses the username and secret for HTTPS Basic authentication. Limit the service account to the project and access the workflow needs, and keep credentials out of step inputs and downstream messages.

Configuration​

Set the saved step's region to the project's data region. The workflow network policy must allow the corresponding host.

RegionHTTPS host
us (default)mixpanel.com
eueu.mixpanel.com
inin.mixpanel.com

Operations​

The step sends one read-only GET /api/query/insights with the saved project ID, bookmark ID, and workspace ID when provided. Mixpanel supplies the report's metrics, date range, filters, and breakdowns. The connector limits the response to 2 MiB and refuses redirects.

Errors and Failure Modes​

ConditionWhat to check
Invalid IDs or regionVerify the saved settings and mapped inputs.
Integration account missing or unavailableCheck the selected connection, project ID, and service account credentials.
Destination deniedCheck the network policy for the project's region.
HTTP 401 or 403Confirm the service account is authorized for the saved report's project and the region is correct.
HTTP 429Space out workflows that query the same project.
Oversized or invalid responseReduce the report's date range or breakdown size and inspect the sanitized step error.

The connector can retry once for transient network and provider failures. It honors a provider retry delay of up to five seconds. Schedule another run later if Mixpanel asks for a longer delay. Error messages omit authentication material and raw provider responses.

Example​

A weekly adoption review uses a saved report for the First Project Completed event. The report already defines the weekly metric and time window. The workflow supplies its bookmark ID.

{
"bookmarkId": "123456"
}

An illustrative result shows two weekly buckets.

{
"status": "success",
"headers": ["week"],
"series": {
"First Project Completed": {
"2026-10-19T00:00:00": 71,
"2026-10-26T00:00:00": 86
}
},
"httpStatus": 200,
"attempts": 1
}

A following step can compare those buckets and include the result in a review. Confirm the metric and date window in the saved report before interpreting a change.

Notes​

  • Pagination. Insights returns one bounded report response. Reduce the date range or breakdown in Mixpanel if the result exceeds the response limit.
  • Rate limits. Mixpanel documents up to 60 Query API requests per hour and five concurrent queries per project. Spread out schedules that share a project.
  • API limits. This operation reads existing Insights reports. Configure ad hoc queries, report changes, and event ingestion through their respective Mixpanel surfaces.
  • Idempotency and destructive behavior. The request leaves the report and project data unchanged. A rolling window, late events, or a report edit can change the result between runs.
  • Provider verification. Test with an authorized project and a small saved report before enabling a production schedule.

See the Mixpanel Insights Query API reference.