List all Metrics
Reference for the GET /console/v1/metrics/list endpoint of the Statsig API.
https://statsigapi.net/console/v1/metrics/listAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Query parameters
showHiddenMetricsstringShould hidden metrics be returned: Allowed values are "true" or "false".
truefalsetagsoneOfFilter metrics based on a given tagID, found on /tags endpoint. Can be a single string or an array of strings.
stringstring[]filtersstringAdditional filters for metrics. Can be a string or an object with tags filter.
limitintegerResults per page
10stringnumberpageintegerPage number
1stringnumberResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
namestringrequiredThe name of the metric, serving as its primary identifier.
metricNametypestringrequiredThe type of the metric, defining its aggregation method and characteristics.
ratiosumcompositemeanevent_count_customevent_userevent_user_windowfunnelundefinedsetup_incompletecomposite_sumimport_windowuser_warehousehybrid_warehousecount_distinctads_segment_active_usersads_segment_exposed_user_dayspercentilelatest_valuesumisVerifiedbooleanMarks the metric as verified, indicating trustworthiness within the organization.
falseisReadOnlybooleanSet to true to make the metric definition editable only through the Console API.
falseunitTypesstring[]Array of unit types associated with the metric, such as stableID or userID.
["stableID","userID"]metricEventsobject[]An array of event definitions used to compute the metric. For ratio metrics, each event must use count or count_distinct aggregation.
[{"name":"event1","type":"value"}]namestringrequiredThe name of the metric event.
typestringAggregation type for the metric event. Allowed values: count, count_distinct, value, metadata. For ratio metrics, only count and count_distinct are valid. Do not confuse with criteria[].type, which is a filter condition type.
countcount_distinctvaluemetadatanullablemetadataKeystringThe key for associated metadata, if applicable.
criteriaobject[]Filtering criteria for the metric event, including conditions and values to refine the event data.
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
metricComponentMetricsobject[]List of input metrics used to calculate the new metric for composite types.
[]namestringrequiredtypestringrequireddescriptionstringAn optional description providing additional context about the metric.
the description of this metricdirectionalitystringrequiredSpecifies the desired directionality for the metric, indicating whether an increase or decrease is favorable.
increasedecreaseincreasetagsstring[]Optional tags for categorizing the metric and improving searchability.
["tag1","tag2"]isPermanentbooleanIndicates whether the metric is permanent and should not be deleted.
falserollupTimeWindowstringTime window for the metric rollup. Specify "custom" for a customized time window.
customcustomRollUpStartnumberCustom time window start date in days since exposure.
1format: doublecustomRollUpEndnumberCustom time window end date in days since exposure.
1format: doublepercentilenumberPercentile value for percentile metrics.
0.95format: doublemin: 0.001max: 0.999funnelEventListobject[]List of events used to create funnel metrics.
namestringrequiredThe name of the funnel event used in the metric.
event1typestringrequiredThe type of funnel event, specifying how the event is tracked.
event_dauevent_userevent_countevent_count_customevent_daufunnelCountDistinctstringSpecifies whether to count events or distinct users for the funnel metric.
eventsuserswarehouseNativeobjectDefines warehouse native metrics for advanced configurations.
aggregationstringAllowed: count┃sum┃mean┃daily_participation┃ratio┃funnel┃count_distinct┃percentile
countsummeandaily_participationratiofunnelcount_distinctpercentilefirst_valuelatest_valueretentionmaxmincompositemetricSourceNamestringDeprecated: use metricSources instead. If provided, this will overwrite all metric sources. For Count, Sum, Mean, User Count aggregation types: the name of metric source
criteriaobject[]Deprecated: use metricSources instead. If provided with metricSourceName, this will overwrite all metric sources. Filtering criteria for the metric source
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
metricSourcesobject[]List of metric sources for this metric.
metricSourceNamestringrequiredcriteriaobject[]requiredFiltering criteria for the metric source
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
valueColumnstringwaitForCohortWindowbooleandenominatorCriteriaobject[]Filtering criteria for the denominator metric source for a ratio, or the start event for a retention metric if useSecondaryRetentionEvent is set
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
denominatorAggregationstringAllowed: count┃sum┃mean┃daily_participation┃ratio┃funnel┃count_distinct┃percentile
countsummeandaily_participationratiofunnelcount_distinctpercentilefirst_valuelatest_valueretentionmaxmincompositedenominatorCustomRollupEndnumberCustom end window for ratio denominator unit count metrics with "custom" rollup time window. Measured in days or minutes depending on the "denominatorCustomRollupMeasureInMinutes" flag.
format: doubledenominatorCustomRollupStartnumberCustom start window for ratio denominator unit count metrics with "custom" rollup time window. Measured in days or minutes depending on the "denominatorCustomRollupMeasureInMinutes" flag.
format: doubledenominatorMetricSourceNamestringName of the metric source for the denominator of a ratio, or the start event for a retention metric if useSecondaryRetentionEvent is set
denominatorRollupTimeWindowstringRollup-mode for ratio denominator unit count metrics. Allowed values: "daily" for daily participation rate, "max" for one-time event, "custom" for a custom attribution window
denominatorValueColumnstringColumn name for the denominator’s value.
funnelCalculationWindownumberDuration for counting funnel events in days.
format: doublefunnelCountDistinctstringAllowed: users┃sessions for distinct count method in funnel events.
sessionsusersfunnelEventsobject[]List of funnel events with associated criteria and identifiers.
criteriaobject[]Optional array of criteria to filter the funnel events, defined by various types and conditions.
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
metricSourceNamestringOptional name of the metric source associated with the funnel event.
namestringOptional step name for the funnel event, can be null if not specified.
nullablesessionIdentifierFieldstringName of column which being used as session identifier. Funnel event with the same metric source
nullablefunnelStartCriteriastringAllowed: start_event┃exposure to determine funnel start criteria.
start_eventexposuremetricDimensionColumnsstring[]Specify metadata columns for breaking down metric analysis.
metricDimensionLimitsobject[]Per-dimension breakdown limits; values beyond the limit are grouped into OTHER.
namestringrequiredName of the metadata dimension to apply a breakdown limit.
limitintegerrequiredMaximum number of values to retain for this dimension (0-100).
10min: 0max: 100metricBakeDaysnumberNumber of days for metric baking; specify duration for analysis.
format: doubleloadingWindownumberLookback window in days for loading metric data. Defaults to 90 days.
90format: doublenumeratorAggregationstringAggregation type for numerator; Allowed: count┃sum┃mean┃daily_participation┃ratio┃funnel┃count_distinct┃percentile.
countsummeandaily_participationratiofunnelcount_distinctpercentilefirst_valuelatest_valueretentionmaxmincompositevalueColumnstringDeprecated: use metricSources instead. If provided with metricSourceName, this will overwrite all metric sources. Column name representing the metric’s value.
valueThresholdnumberThreshold value for filtering metrics.
format: doubleallowNullRatioDenominatorbooleanInclude units which do not have a denominator. Only applicable to ratios.
funnelStrictOrderingbooleanfunnelUseExposureAsFirstEventbooleanfunnelTimestampAllowanceMsnumberformat: doublefunnelTimeToConvertbooleanwinsorizationHighnumberHigh threshold for winsorization; must be between 0 and 1.
format: doublemin: 0max: 1winsorizationLownumberLow threshold for winsorization; must be between 0 and 1.
format: doublemin: 0max: 1winsorizationHighDenominatornumberformat: doublemin: 0max: 1winsorizationLowDenominatornumberformat: doublemin: 0max: 1cupedAttributionWindownumberAttribution window for CUPED adjustments in days.
format: doublenullablerollupTimeWindowstringRollup-mode for unit count metrics. Allowed values: "daily" for daily participation rate, "max" for one-time event, "custom" for a custom attribution window
customRollUpStartnumberCustom start window for unit count metrics with "custom" rollup time window, or for other metrics with the "Use Cohort Window in Experiments" option on enabled. Measured in days or minutes depending on the "customRollupMeasureInMinutes" flag.
format: doublecustomRollUpEndnumberCustom end window for unit count metrics with "custom" rollup time window, or for other metrics with the "Use Cohort Window in Experiments" option on enabled. Measured in days or minutes depending on the "customRollupMeasureInMinutes" flag.
format: doubleonlyIncludeUsersWithConversionEventbooleanFlag to include only users with a conversion event in the metric.
denominatorCustomRollupMeasureInMinutesbooleanFlag to measure the denominator custom rollup window in minutes instead of days.
customRollupMeasureInMinutesbooleanFlag to measure the custom rollup window in minutes instead of days.
percentilenumberPercentile value for statistical calculations.
format: doubleuseLogTransformbooleanUse log transform for the metric.
useSecondaryRetentionEventbooleanUse a different start and completion event for retention calculations.
retentionEndnumberRetention end in days.
format: doubleretentionLengthnumberRetention lookback window in days.
format: doublelogTransformBasenumberLog transform base to be used for the metric.
format: doublenullablecapnumberMaximum cap for metric values.
format: doublesurrogateMetricMSEnumberMean Squared Error for surrogate metric.
format: doublenullablecomponentsobject[]Components for composite metrics, defining each component of the formula
operatorstringrequiredOperator for this component
+-aggregationstringAggregation type for this component
countsummeandaily_participationratiofunnelcount_distinctpercentilefirst_valuelatest_valueretentionmaxmincompositemetricSourceNamestringMetric source name for this component
namestringOptional name for this component
nullablecriteriaobject[]Optional filtering criteria for this component
typestringrequiredType of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
valuemetadatauseruser_customcolumnstringOptional column specifying which data attribute to filter on.
conditionstringrequiredsql_filter, start_withs, ends_with, after_exposure, and before_exposure are only applicable in Warehouse Native
innot_in=><>=<=is_nullnon_nullcontainsnot_containssql_filterstarts_withends_withafter_exposurebefore_exposureis_trueis_falsevaluesstring[]Optional array of values for the criterion to match against.
nullVacuousOverridebooleanIf true, overrides null values in criterion evaluation.
valueColumnstringValue column for this component
teamstringThe team associated with the metric, applicable for enterprise environments.
nullableteamIDstringThe team ID associated with the metric, applicable for enterprise environments.
nullabledryRunbooleanSkips persisting the metric (used to validate that inputs are correct)
idstringrequiredUnique identifier for the metric, used for referencing within the system.
metricIdisHiddenbooleanIndicates if the metric is hidden from the user interface.
falselineageobjectrequiredeventsstring[]requiredList of event names that contribute to the metric’s calculation.
["event1","event2"]metricsstring[]requiredList of metric names that are part of this metric’s lineage.
["metric1","metric2"]creatorNamestringName of the person who created the metric, if available.
creatorNamenullablecreatorEmailstringEmail address of the metric creator for contact purposes.
creatorEmailnullablecreatedTimenumberTimestamp indicating when the metric was created.
1716230400format: doublelastModifierIDstringID of the last modifier.
nullablelastModifiedTimenumberTime of the last modification to this metric.
format: doublenullablelastModifierEmailstringEmail of the last modifier.
nullablelastModifierNamestringName of the last modifier.
nullablescheduledReloadHourintegerWarehouse Native only - UTC hour at which to run scheduled metric reloads.
format: int64nullablemin: 0max: 23scheduledReloadDaysinteger[]Warehouse Native only - days on which to run scheduled metric reloads from 0 to 6, 0 meaning Sunday. Null to run reloads on all days.
nullableownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
{"ownerID":"user123","ownerType":"USER","ownerName":"John Doe","ownerEmail":"owner123@test.com"}ownerIDstringID of the owner
abc123ownerTypestringType of the owner (e.g., SDK_KEY or USER)
USERownerNamestringThe name of the owner. This field is optional.
John DoeownerEmailstringThe email of the owner. This field is optional.
permalinkstringrequiredA permalink to this metric in the Statsig Console.
format: uripaginationobjectrequiredPagination metadata for checking if there is next page for example.
Show child attributes
itemsPerPagenumberrequiredformat: doublepageNumbernumberrequiredformat: doublenextPagestringrequirednullablepreviousPagestringrequirednullabletotalItemsnumberformat: doubleallstringstatusintegerrequired401messagestringrequiredWas this helpful?