cURL
curl --request GET \ --url https://statsigapi.net/console/v1/metrics/{name}/{type} \ --header 'STATSIG-API-KEY: <api-key>'
{ "message": "Metric read successfully.", "data": { "id": "TestMetricCapi::sum", "name": "TestMetricCapi", "directionality": "increase", "type": "sum", "description": "Capi Metric", "isPermanent": false, "isReadOnly": false, "isHidden": false, "isVerified": false, "tags": [], "creatorName": "CONSOLE API", "creatorEmail": null, "createdTime": 1720218271796, "owner": { "name": "John Doe", "ownerID": "user123", "ownerType": "USER", "ownerName": "John Doe", "ownerEmail": "owner123@test.com" }, "lineage": { "events": [ "add_to_cart" ], "metrics": [] }, "team": "Console Team", "unitTypes": [ "userID" ], "metricEvents": [ { "name": "add_to_cart", "type": "metadata", "criteria": [] } ], "permalink": "https://console.statsig.com/company_id/metrics/metrics_catalog/TestMetricCapi/sum" } }
Documentation IndexFetch the complete documentation index at: https://statsig-4b2ff144-docs-go-big-id-lists.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://statsig-4b2ff144-docs-go-big-id-lists.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
name
type
Get Metric Definition by name response
A simple string explaining the result of the operation.
A single result.
Show child attributes
Was this page helpful?