Skip to main content
Amplitude logo

Overview

Add Amplitude to any ModuleX agent or workflow. Track events, identify users and groups, search for users, query analytics, and retrieve revenue data from Amplitude via its HTTP V2, Identify, Dashboard REST, and User Profile APIs.
Categories: Analytics & Data · Product Analytics · Marketing · Auth: Amplitude API Key + Secret Key · Actions: 11

Authentication

Amplitude API Key + Secret Key

Authenticate with your Amplitude project’s API Key (used to send events and identify users) and Secret Key (required for the Dashboard REST API and User Profile analytics endpoints).
1

Step 1

Sign in to Amplitude and open the project you want to use.
2

Step 2

Go to Settings -> Projects -> (your project) -> General.
3

Step 3

Copy the ‘API Key’ and the ‘Secret Key’ shown for the project.
4

Step 4

Provide the API Key for event tracking; the Secret Key is also needed for analytics/dashboard queries.

Required Credentials

Available Actions

Parameters

string
required
Name of the event (e.g., “page_view”, “purchase”).
string
User ID (required if no device_id).
string
Device ID (required if no user_id).
object
Custom event properties as a JSON object.
object
User properties to set (supports set,set, setOnce, add,add, append, $unset).
integer
Event timestamp in milliseconds since epoch.
integer
Session start time in milliseconds since epoch (-1 for no session).
string
Unique ID for deduplication (within a 7-day window).
string
Application version string.
string
Platform (e.g., “Web”, “iOS”, “Android”).
string
Two-letter country code.
string
Language code (e.g., “en”).
string
IP address for geo-location (use “$remote” for request IP).
number
Price of the item purchased.
integer
Quantity of items purchased.
number
Revenue amount.
string
Product identifier.
string
Revenue type (e.g., “purchase”, “refund”).

Response

Parameters

object
required
User properties to set. Use operations like set,set, setOnce, add,add, append, $unset.
string
User ID (required if no device_id).
string
Device ID (required if no user_id).

Response

Parameters

string
required
Group classification (e.g., “company”, “org_id”).
string
required
Specific group identifier (e.g., “Acme Corp”).
object
required
Group properties as a JSON object. Use operations like set,set, setOnce, add,add, append, $unset.

Response

Parameters

string
required
User ID, Device ID, or Amplitude ID to search for.

Response

Parameters

string
required
Amplitude internal user ID.
integer
Offset for pagination (default 0).
integer
Maximum number of events to return (default 1000, max 1000).
string
Sort direction: “latest” or “earliest” (default: latest).

Response

Parameters

string
External user ID (required if no device_id).
string
Device ID (required if no user_id).
boolean
Include Amplitude user properties (default: false). (Default: false)
boolean
Include cohort IDs the user belongs to (default: false). (Default: false)
boolean
Include computed user properties (default: false). (Default: false)

Response

Parameters

string
required
Event type name to analyze.
string
required
Start date in YYYYMMDD format.
string
required
End date in YYYYMMDD format.
string
Metric type: uniques, totals, pct_dau, average, histogram, sums, value_avg, or formula (default: uniques).
string
Time interval: 1 (daily), 7 (weekly), or 30 (monthly).
string
Property name to group by (prefix custom user properties with “gp:”).
integer
Maximum number of group-by values (max 1000).

Response

Parameters

string
required
Start date in YYYYMMDD format.
string
required
End date in YYYYMMDD format.
string
Metric type: “active” or “new” (default: active).
string
Time interval: 1 (daily), 7 (weekly), or 30 (monthly).

Response

Response

Response

Parameters

string
required
Start date in YYYYMMDD format.
string
required
End date in YYYYMMDD format.
string
Metric: 0 (ARPU), 1 (ARPPU), 2 (Total Revenue), 3 (Paying Users).
string
Time interval: 1 (daily), 7 (weekly), or 30 (monthly).

Response

Limits & Quotas

  • HTTP V2 ingestion: limit uploads to 100 batches/second and 1000 events/second.
  • Dashboard REST API analytics endpoints are subject to per-project rate limits and cost thresholds.
  • user_activity returns at most 1000 events per call (use offset to page).
  • Error model: non-2xx responses (and missing credentials) are returned as success=False + error rather than raising.

Google Analytics

Google Tag Manager

Mixpanel