Use Amplitude to send events, update user and group properties, and query product analytics from a workflow. The HTTP and Dashboard REST APIs use API-key and secret-key authentication.
Track events, identify users and groups, search for users, query analytics, analyze funnels and retention, and retrieve revenue data.
Track an event in Amplitude using the HTTP V2 API.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key userIdstring No User ID (required if no device_id) deviceIdstring No Device ID (required if no user_id) eventTypestring Yes Name of the event (e.g., "page_view", "purchase") eventPropertiesstring No JSON object of custom event properties userPropertiesstring No JSON object of user properties to set (supports $set, $setOnce, $add, $append, $unset) timestring No Event timestamp in milliseconds since epoch sessionIdstring No Session start time in milliseconds since epoch insertIdstring No Unique ID for deduplication (within 7-day window) appVersionstring No Application version string platformstring No Platform (e.g., "Web", "iOS", "Android") countrystring No Two-letter country code languagestring No Language code (e.g., "en") ipstring No IP address for geo-location pricestring No Price of the item purchased quantitystring No Quantity of items purchased revenuestring No Revenue amount productIdstring No Product identifier revenueTypestring No Revenue type (e.g., "purchase", "refund") dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description codenumber Response code (200 for success) eventsIngestednumber Number of events ingested payloadSizeBytesnumber Size of the payload in bytes serverUploadTimenumber Server upload timestamp
Set user properties in Amplitude using the Identify API. Supports $set, $setOnce, $add, $append, $unset operations.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key userIdstring No User ID (required if no device_id) deviceIdstring No Device ID (required if no user_id) userPropertiesstring Yes JSON object of user properties. Use operations like $set, $setOnce, $add, $append, $unset. dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description codenumber HTTP response status code messagestring Response message
Set group-level properties in Amplitude. Supports $set, $setOnce, $add, $append, $unset operations.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key groupTypestring Yes Group classification (e.g., "company", "org_id") groupValuestring Yes Specific group identifier (e.g., "Acme Corp") groupPropertiesstring Yes JSON object of group properties. Use operations like $set, $setOnce, $add, $append, $unset. dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description codenumber HTTP response status code messagestring Response message
Search for a user by User ID, Device ID, or Amplitude ID using the Dashboard REST API.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key userstring Yes User ID, Device ID, or Amplitude ID to search for dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description matchesarray List of matching users ↳ amplitudeId number Amplitude internal user ID ↳ userId string External user ID typestring Match type (e.g., match_user_or_device_id)
Get the event stream for a specific user by their Amplitude ID.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key amplitudeIdstring Yes Amplitude internal user ID offsetstring No Offset for pagination (default 0) limitstring No Maximum number of events to return (default 1000, max 1000) directionstring No Sort direction: "latest" or "earliest" (default: latest) dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description eventsarray List of user events ↳ eventType string Type of event ↳ eventTime string Event timestamp ↳ eventProperties json Custom event properties ↳ userProperties json User properties at event time ↳ sessionId number Session ID ↳ platform string Platform ↳ country string Country ↳ city string City userDatajson User metadata ↳ userId string External user ID ↳ canonicalAmplitudeId number Canonical Amplitude ID ↳ numEvents number Total event count ↳ numSessions number Total session count ↳ platform string Primary platform ↳ country string Country ↳ firstUsed string Date the user first appeared ↳ lastUsed string Date of most recent user activity
Get a user profile including properties, cohort memberships, and computed properties. Not available for EU data-residency projects.
Inputs and outputsParameter Type Required Description secretKeystring Yes Amplitude Secret Key userIdstring No External user ID (required if no device_id) deviceIdstring No Device ID (required if no user_id) getAmpPropsstring No Include Amplitude user properties (true/false, default: false) getCohortIdsstring No Include cohort IDs the user belongs to (true/false, default: false) getComputationsstring No Include computed user properties (true/false, default: false)
Parameter Type Description userIdstring External user ID deviceIdstring Device ID ampPropsjson Amplitude user properties (library, first_used, last_used, custom properties) cohortIdsarray List of cohort IDs the user belongs to computationsjson Computed user properties
Query event analytics data with segmentation. Get event counts, uniques, averages, and more.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key eventTypestring Yes Event type name to analyze startstring Yes Start date in YYYYMMDD format endstring Yes End date in YYYYMMDD format metricstring No Metric type: uniques, totals, pct_dau, average, histogram, sums, value_avg, or formula (default: uniques) intervalstring No Time interval: 1 (daily), 7 (weekly), or 30 (monthly) groupBystring No Property name to group by (prefix custom user properties with "gp:") groupBy2string No Second property name to group by (prefix custom user properties with "gp:") limitstring No Maximum number of group-by values (max 1000) filtersstring No JSON array of filter objects applied to the event, e.g. [{"subprop_type":"event","subprop_key":"city","subprop_op":"is","subprop_value":["San Francisco"]}] formulastring No Required when metric is "formula", e.g. "UNIQUES(A)/UNIQUES(B)" segmentstring No JSON segment definition(s) applied to the query dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description seriesjson Time-series data arrays indexed by series seriesLabelsarray Labels for each data series seriesCollapsedjson Collapsed aggregate totals per series xValuesarray Date values for the x-axis
Get active or new user counts over a date range from the Dashboard REST API.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key startstring Yes Start date in YYYYMMDD format endstring Yes End date in YYYYMMDD format metricstring No Metric type: "active" or "new" (default: active) intervalstring No Time interval: 1 (daily), 7 (weekly), or 30 (monthly) groupBystring No Property name to group by segmentstring No JSON segment definition(s) applied to the query dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description seriesjson Array of data series with user counts per time interval seriesMetaarray Metadata labels for each data series (e.g., segment names) xValuesarray Date values for the x-axis
Get real-time active user counts at 5-minute granularity for the last 2 days.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description seriesjson Array of data series with active user counts at 5-minute intervals seriesLabelsarray Labels for each series (e.g., "Today", "Yesterday") xValuesarray Time values for the x-axis (e.g., "15:00", "15:05")
List all event types in the Amplitude project with their weekly totals and unique counts.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description eventsarray List of event types in the project ↳ value string Event type name ↳ displayName string Event display name ↳ totals number Weekly total count ↳ hidden boolean Whether the event is hidden ↳ deleted boolean Whether the event is deleted ↳ nonActive boolean Whether the event is excluded from active user calculations ↳ flowHidden boolean Whether the event is hidden from user flow charts
Get revenue LTV data including ARPU, ARPPU, total revenue, and paying user counts.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key startstring Yes Start date in YYYYMMDD format endstring Yes End date in YYYYMMDD format metricstring No Metric: 0 (ARPU), 1 (ARPPU), 2 (Total Revenue), 3 (Paying Users) intervalstring No Time interval: 1 (daily), 7 (weekly), or 30 (monthly) groupBystring No Property name to group by (limit: one) segmentstring No JSON segment definition(s) applied to the query dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description seriesarray Revenue data series [{dates: [YYYY-MM-DD], values: {<date>: {r1d..r90d, count, paid, total_amount}}}] ↳ dates array Dates covered by this series ↳ values json Per-date metric values keyed by date (r1d..r90d, count, paid, total_amount) seriesLabelsarray Labels for each data series
Analyze conversion rates and drop-off between a sequence of events.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key eventsstring Yes JSON array of event objects, one per funnel step in order, e.g. [{"event_type":"signup"},{"event_type":"purchase"}] startstring Yes Start date in YYYYMMDD format endstring Yes End date in YYYYMMDD format modestring No Funnel ordering: "ordered", "unordered", or "sequential" (default: ordered) userTypestring No User type: "new" or "active" (default: active) intervalstring No Time interval: -300000 (real-time), -3600000 (hourly), 1 (daily), 7 (weekly), or 30 (monthly) conversionWindowSecondsstring No Conversion window in seconds (default: 2592000, i.e. 30 days) groupBystring No Property to group by (limit: one; prefix custom properties with "gp:") limitstring No Maximum number of group-by values (default: 100, max: 1000) segmentstring No JSON segment definition(s) applied to the query dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description funnelsarray Funnel results, one entry per segment ↳ stepByStep json Conversion count at each step ↳ cumulative json Cumulative conversion percentage at each step ↳ cumulativeRaw json Cumulative conversion count at each step ↳ medianTransTimes json Median transition time between steps (ms) ↳ avgTransTimes json Average transition time between steps (ms) ↳ events json Event names for each funnel step ↳ dayFunnels json Daily funnel breakdown {series, xValues}
Measure how many users return to perform an action after a starting action.
Inputs and outputsParameter Type Required Description apiKeystring Yes Amplitude API Key secretKeystring Yes Amplitude Secret Key startEventstring Yes JSON starting event object, e.g. {"event_type":"_new"} or {"event_type":"_active"} returnEventstring Yes JSON returning event object, e.g. {"event_type":"_all"} or {"event_type":"_active"} startstring Yes Start date in YYYYMMDD format endstring Yes End date in YYYYMMDD format retentionModestring No Retention type: "bracket", "rolling", or "n-day" (default: n-day) retentionBracketsstring No Required when Retention Mode is "bracket". Day ranges, e.g. [[0,4]] intervalstring No Time interval: 1 (daily), 7 (weekly), or 30 (monthly) groupBystring No Property to group by (limit: one; prefix custom properties with "gp:") segmentstring No JSON segment definition(s) applied to the query dataResidencystring No Data residency region: "us" (default) or "eu"
Parameter Type Description seriesarray Retention data series [{dates, values: {<date>: [{count, outof, incomplete}]}, combined: [{count, outof, incomplete}]}] ↳ dates array Cohort dates ↳ values json Per-cohort-date retention counts keyed by date ↳ combined json Deduplicated aggregate retention across all cohorts seriesMetaarray Segment/event index metadata for each series entry