curl --request GET \
--url https://statsigapi.net/console/v1/metrics/metric_source/list \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Metric sources listed successfully.",
"data": [
{
"name": "Log Events",
"description": "all app events including add to cart, purchase, page view, checkout",
"tags": [],
"sql": "SELECT *\nFROM shoppy-sales.logging.events\nwhere DATE(ts) between {statsig_start_date} and {statsig_end_date}\n",
"timestampColumn": "ts",
"timestampAsDay": false,
"idTypeMapping": [
{
"statsigUnitID": "userID",
"column": "user_id"
},
{
"statsigUnitID": "deviceID",
"column": "device_id"
}
],
"tableName": "",
"customFieldMapping": [
{
"key": "",
"formula": ""
}
]
}
],
"pagination": {
"itemsPerPage": 1,
"pageNumber": 1,
"totalItems": 14,
"nextPage": "/console/v1/metrics/metric_source/list?page=2&limit=1",
"previousPage": null,
"all": "/console/v1/metrics/metric_source/list"
}
}
curl --request GET \
--url https://statsigapi.net/console/v1/metrics/metric_source/list \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Metric sources listed successfully.",
"data": [
{
"name": "Log Events",
"description": "all app events including add to cart, purchase, page view, checkout",
"tags": [],
"sql": "SELECT *\nFROM shoppy-sales.logging.events\nwhere DATE(ts) between {statsig_start_date} and {statsig_end_date}\n",
"timestampColumn": "ts",
"timestampAsDay": false,
"idTypeMapping": [
{
"statsigUnitID": "userID",
"column": "user_id"
},
{
"statsigUnitID": "deviceID",
"column": "device_id"
}
],
"tableName": "",
"customFieldMapping": [
{
"key": "",
"formula": ""
}
]
}
],
"pagination": {
"itemsPerPage": 1,
"pageNumber": 1,
"totalItems": 14,
"nextPage": "/console/v1/metrics/metric_source/list?page=2&limit=1",
"previousPage": null,
"all": "/console/v1/metrics/metric_source/list"
}
}
Optional header to respect review settings for mutation endpoints.
List metric source response
The response is of type object
.