Skip to main content

Amplitude ExecModule

Overview​

AmplitudeModule reads aggregate event metrics from one Amplitude project through the Dashboard REST API. It returns dated series that a workflow can use to monitor feature adoption, compare two instrumented events, or break down activity by platform or country. Use a short, consistent observation window to make recurring reports easier to compare.

Usage​

  1. Identify the project and its data region. Obtain that project's API key and secret key from an authorized administrator.
  2. Create a saved Amplitude connection in the Integration Account Console. Add an Amplitude step in Workflow Studio and select the connection under General > Connection.
  3. Set the step's region to match the project. Enter an event name exactly as it appears in Amplitude and test with a narrow date window.
  4. Check status before using the series. Pair each value with its corresponding date and handle missing samples before calculating changes or applying a threshold.

Inputs​

InputTypePurpose
eventNamestringRequired Amplitude event name. Use Amplitude's ce: prefix for a named custom event.
comparisonEventNamestringOptional second event to query with the same dates and metric.
startDatestringRequired first day of the window in YYYY-MM-DD format, interpreted in the project's time zone.
endDatestringRequired last day in the same format. Both endpoints are included and the full window may span up to 30 calendar days.
granularitystringday (default), week, or month.
metricstringuniques (default), totals, pct_dau, or average.
groupBystringOptional platform or country breakdown.

Choose uniques for the number of users who performed an event, totals for occurrence volume, pct_dau for the share of active users who performed the event, and average for the average number of occurrences per user who performed it. Compare metrics using the same settings and project time zone.

Outputs​

OutputTypeMeaning
statusstringsuccess or error.
datesarrayDate labels returned by Amplitude, in provider order.
seriesarrayObjects with a provider label and a values array aligned with dates.
countintegerNumber of returned series.
httpStatusintegerProvider HTTP status when available.
attemptsintegerNumber of provider request attempts.
errorobjectSanitized failure details with a code, message, and retryability flag.

Keep null samples distinct from zero when mapping the series. A successful response can have no matching data. Compare the project, event definition, date window, and granularity before interpreting a difference between two results.

IntegrationAccount Requirements​

Use an authorized, saved READY IntegrationAccount for the amplitude provider. Save the project API key in the encrypted apiKey field and the project secret key in the encrypted password field. The connector uses them as the Basic authentication username and password, respectively, over HTTPS. Credentials belong to one project. Choose a connection whose project access fits the workflow and keep both values out of step inputs, logs, and downstream messages.

Configuration​

Set the step's saved region to select the project's fixed HTTPS endpoint. The deployment's guarded network policy must permit the corresponding hostname. The module refuses redirects.

RegionDashboard REST API endpoint
us (default)https://amplitude.com/api/2/events/segmentation
euhttps://analytics.eu.amplitude.com/api/2/events/segmentation

Save the query fields with the step or map them from prior workflow steps. Start with a single event and a daily window when verifying a new connection.

Operations​

The step sends a read-only GET /api/2/events/segmentation with encoded event definitions and date parameters. Each successful request returns one JSON response for the chosen metric, period, and optional breakdown. The connector limits results to 100 series and the response to 2 MiB.

Errors and Failure Modes​

ErrorWhat to check
VALIDATION_ERRORVerify the event, dates, metric, granularity, and grouping.
INTEGRATION_ACCOUNT_REQUIRED, INTEGRATION_ACCOUNT_NOT_READYSelect an authorized connection with both credential fields and check its status.
DESTINATION_DENIEDCheck that the deployment policy permits the fixed host for the saved region.
AMPLITUDE_HTTP_400Verify the event and query settings against the project.
AMPLITUDE_HTTP_401, AMPLITUDE_HTTP_403Verify the project's credentials, selected region, and account access.
AMPLITUDE_HTTP_429Reduce the query frequency or cost, and stagger workflows that share the project.
RESPONSE_TOO_LARGEShorten the window or remove the comparison event or breakdown.
INVALID_PROVIDER_RESPONSEReview the sanitized failure before passing data to downstream steps.

Transient network errors and eligible provider errors can retry once within the step. Use workflow scheduling or retry controls when the provider calls for a longer delay. Failure details omit credentials, submitted event names, and raw provider bodies.

Example​

A rollout review checks how many users completed their first project each day after a new onboarding flow shipped. It groups the event by platform so reviewers can see whether usage moved differently on web and iOS.

{
"eventName": "First Project Completed",
"startDate": "2026-10-26",
"endDate": "2026-10-28",
"granularity": "day",
"metric": "uniques",
"groupBy": "platform"
}

An illustrative response shows two platform series with three samples each.

{
"status": "success",
"dates": ["2026-10-26", "2026-10-27", "2026-10-28"],
"series": [
{"label": "Web", "values": [71, 86, 102]},
{"label": "iOS", "values": [28, 32, 33]}
],
"count": 2,
"httpStatus": 200,
"attempts": 1
}

Use the three dated values in a release review, and run the same query for an earlier window to compare the trend. Daily unique counts can include the same user on several days. Use weekly or monthly series for distinct users within the buckets Amplitude returns.

Notes​

  • Pagination. Event Segmentation returns one bounded response. Narrow the window or remove the breakdown when the output is too large.
  • Rate limits. Amplitude applies concurrent and query-cost limits to requests that share a project. A longer window and grouping can increase query cost. Space out scheduled steps that use the same connection.
  • API limits. The connector covers aggregate Event Segmentation for one project. Funnels, formulas, property metrics, raw events, and ingestion require other API operations.
  • Idempotency and destructive behavior. Requests leave Amplitude data unchanged. Late data, instrumentation changes, and provider processing can change the result of a repeated query.
  • Provider verification. Use an authorized test project to confirm its event names, date interpretation, and returned series before scheduling a production workflow.

See the Amplitude Dashboard REST API reference.