List metric source
Reference for the GET /console/v1/metrics/metric_source/list endpoint of the Statsig API.
https://statsigapi.net/console/v1/metrics/metric_source/listAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Query parameters
limitintegerResults per page
10stringnumberpageintegerPage number
1stringnumberResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
namestringrequiredThe name of the source, serving as its primary identifier.
descriptionstringrequiredA detailed description of the source, providing context and usage information.
tagsstring[]Optional tags for categorizing the source and improving searchability.
sqlstringrequiredThe SQL query or statement used to extract data from the source.
timestampColumnstringrequiredThe name of the column containing timestamp data for the source.
timestampAsDaybooleanIndicates whether the timestamp should be treated as a day-level granularity.
idTypeMappingobject[]requiredArray defining the mapping between Statsig unit IDs and their respective source columns.
statsigUnitIDstringrequiredThe identifier mapping for Statsig units.
columnstringrequiredThe corresponding column name in the source that relates to the Statsig unit ID.
sourceTypestringThe type of source, indicating whether it is a database table or a custom query.
tablequerytableNamestringThe name of the database table if the source type is "table".
datePartitionColumnstringThe name of the date partition column if the source type is "table". Can be undefined.
customFieldMappingobject[]Optional array defining mappings for custom fields using specific formulas.
keystringrequiredThe identifier for the custom field mapping.
formulastringrequiredThe formula or expression used to compute the custom field value.
isReadOnlybooleanSpecifies if the source can only be edited via the Console API.
isVerifiedbooleanMarks the metric source as verified, indicating trustworthiness within the organization.
falsedisableCUREbooleanDisable CURE for all metrics built from this metric source
ownerobjectSchema 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"}nullableownerIDstringID 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.
teamstringOptional field indicating the team name responsible for the metric, aiding in accountability and management.
nullableteamIDstringOptional field indicating the team ID responsible for the metric, aiding in accountability and management.
nullablepaginationobjectrequiredPagination metadata for checking if there is next page for example.
Show child attributes
itemsPerPagenumberrequiredformat: doublepageNumbernumberrequiredformat: doublenextPagestringrequirednullablepreviousPagestringrequirednullabletotalItemsnumberformat: doubleallstringstatusintegerrequired400messagestringrequiredstatusintegerrequired401messagestringrequiredWas this helpful?