HTTP API
Console API
Alerts
Audit Logs
Autotunes
Company
Dynamic Configs
- GETList Dynamic Configs
- POSTCreate Dynamic Config
- GETGet Dynamic Config
- POSTFully Update Dynamic Config
- DELDelete Dynamic Config
- PATCHPartially Update Dynamic Config
- PUTDisable Dynamic Config
- PUTEnable Dynamic Config
- POSTAdd Dynamic Config Rule
- GETGet Specific Dynamic Config Rule
- DELDelete Dynamic Config Rule
- PATCHUpdate Dynamic Config Rule By Id
- DELDelete Dynamic Config Rule By Name
- PATCHUpdate Dynamic Config Rule By Name
- GETGet Dynamic Config Rules
- POSTAdd Dynamic Config Rules
- PATCHUpdate List of Dynamic Config Rules
- GETList Dynamic Config Versions
Experiments
- GETList Experiments
- POSTCreate Experiment
- GETGet Experiment
- POSTFully Update Experiment
- DELDeleted Experiment
- PATCHPartially Update Experiment
- PUTAbandon Experiment
- PUTArchive Experiment
- GETRetrieve cumulative exposures
- POSTDisable Experiment Groups
- POSTEnable Experiment Groups
- PUTFinish Experiment Early
- GETGet Experiment Overrides
- POSTUpdate Experiment Overrides
- DELDelete Experiment Overrides
- PATCHPartially Update Experiment Overrides
- GETRetrieve Pulse Results (Beta)
- PUTReset Experiment
- PUTStart Experiment
- PUTUnarchive Experiment
Experiments (Warehouse Native)
- POSTLoad Pulse (Warehouse Native)
- GETPulse Load History (Warehouse Native)
- POSTPost Assignment Source
- DELDelete Assignment Source
- PATCHPatch Assignment Source
- GETList Assignment Sources
- POSTCreate Assignment Source
- GETList Entity Property Sources
- POSTCreate Entity Property Source
- GETGet Entity Property Source
- POSTPost Entity Property Source
- DELDelete Entity Property Source
- PATCHPatch Entity Property Source
Configs
Gates
- GETList Gates
- POSTCreate Gate
- GETRead Gate
- POSTFully Update Gates
- DELDelete Gates
- PATCHPartially Update Gates
- PUTArchive Gate
- PUTDisable Gate
- PUTEnable Gate
- PUTLaunch Gate
- POSTLoad Pulse Gate
- GETGet Gate Override
- POSTUpdate Gate Overrides
- DELDelete Gate Overrides
- PATCHAdd Gate Overrides
- POSTAdd Gate Rule
- GETRead Gate Rules
- POSTAdd Multiple Gate Rule
- PATCHUpdate list of current Gate Rules settings
- DELDelete Gate Rule
- PATCHUpdate Gate Rules
- GETPulse Load History (Warehouse Native)
- GETRetrieve Pulse Results (Beta)
- GETList Gate Versions
Holdouts
Ingestions
- GETRead Ingestion
- POSTCreate Ingestion Source
- DELDelete Ingestion Source
- PATCHUpdate Ingestion Source
- POSTBackfill Ingestion
- POSTCreate Ingestion Databricks
- GETGet Ingestion Event Count
- GETGet Ingestion Event Delta Ledger
- GETList Ingestion Runs
- GETRead Ingestion Run
- GETRead Ingestion Schedule
- POSTUpdate Ingestion Schedule
- GETList Ingestions Status
Keys
Layers
Metrics
Metrics (Warehouse Native)
Project
Reports
Segments
Target App
Users
- GETList Users
- GETGet user by email
- POSTUpdate user
- POSTInvite user. To avoid spamming, invitation emails are not sent. Invitee will see invitation notification in-app after logging in.
- GETList Teams
- POSTCreate Team
- GETGet Team
- DELDelete Team
- PATCHUpdate Team. Ops: Replace. Use GET for current data if you intent to Add.
Metrics
List all Metrics
GET
/
console
/
v1
/
metrics
/
list
Copy
Ask AI
curl --request GET \
--url https://statsigapi.net/console/v1/metrics/list \
--header 'STATSIG-API-KEY: <api-key>'
Copy
Ask AI
{
"message": "Metrics listed successfully.",
"data": [
{
"id": " ::sum",
"name": " ",
"directionality": "increase",
"type": "sum",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709580516933,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart"
],
"metrics": []
},
"team": "test",
"unitTypes": [
"room_id"
],
"metricEvents": [
{
"name": "add_to_cart",
"type": "value",
"criteria": []
}
]
},
{
"id": " ::ratio",
"name": " ",
"directionality": "increase",
"type": "ratio",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709580027061,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart",
"."
],
"metrics": []
},
"team": "test",
"unitTypes": [
"namespace_id"
],
"metricEvents": [
{
"name": "add_to_cart",
"type": "count",
"criteria": []
},
{
"name": ".",
"type": "count",
"criteria": []
}
]
},
{
"id": "[LOCAL] Time Spent over 500ms::event_count_custom",
"name": "[LOCAL] Time Spent over 500ms",
"directionality": "increase",
"type": "event_count_custom",
"description": "Creating my first Local Metric! How exciting!! ",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [
"★ Core",
"dashboard_test",
"test_owner_4"
],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709594132514,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"time_spent_on_page"
],
"metrics": []
},
"team": null,
"unitTypes": [
"userID"
],
"metricEvents": [
{
"name": "time_spent_on_page",
"criteria": [
{
"type": "value",
"column": "!statsig_value",
"condition": ">",
"values": [
"500"
]
}
]
}
]
},
{
"id": "___RENAME_FAILED___::composite_sum",
"name": "rename_test_success",
"directionality": "increase",
"type": "composite_sum",
"description": "This metric will be renamed from something aggressive and capital, to \"rename_test_success\", to help determine where metric renaming worked",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [
"dashboard_test"
],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1704923273872,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [],
"metrics": [
"add_to_cart_games::event_count_custom",
"Appliance Purchases::event_count_custom",
"test-test::event_count_custom"
]
},
"team": null,
"unitTypes": [
"userID",
"stableID",
"room_id",
"server_id"
],
"metricEvents": [],
"metricComponentMetrics": [
{
"name": "add_to_cart_games",
"type": "event_count_custom"
},
{
"name": "Appliance Purchases",
"type": "event_count_custom"
},
{
"name": "Test User",
"type": "event_count_custom"
}
]
},
{
"id": "A metric for testing teams::event_count_custom",
"name": "A metric for testing teams",
"directionality": "increase",
"type": "event_count_custom",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1706640947812,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart"
],
"metrics": []
},
"team": null,
"unitTypes": [
"userID"
],
"metricEvents": [
{
"name": "add_to_cart",
"criteria": [
{
"type": "value",
"column": "",
"condition": "in",
"values": [
"sports"
]
}
]
}
]
}
],
"pagination": {
"itemsPerPage": 5,
"pageNumber": 1,
"totalItems": 2699,
"nextPage": "/console/v1/metrics/list?page=2&limit=5",
"previousPage": null,
"all": "/console/v1/metrics/list"
}
}
Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Query Parameters
Should hidden metrics be returned: Allowed values are "true" or "false".
Available options:
true
, false
Filter metrics based on a given tagID, found on /tags endpoint. Can be a single string or an array of strings.
Additional filters for metrics. Can be a string or an object with tags filter.
Results per page
Example:
10
Page number
Example:
1
Response
200
application/json
List all metrics in the project response
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://statsigapi.net/console/v1/metrics/list \
--header 'STATSIG-API-KEY: <api-key>'
Copy
Ask AI
{
"message": "Metrics listed successfully.",
"data": [
{
"id": " ::sum",
"name": " ",
"directionality": "increase",
"type": "sum",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709580516933,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart"
],
"metrics": []
},
"team": "test",
"unitTypes": [
"room_id"
],
"metricEvents": [
{
"name": "add_to_cart",
"type": "value",
"criteria": []
}
]
},
{
"id": " ::ratio",
"name": " ",
"directionality": "increase",
"type": "ratio",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709580027061,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart",
"."
],
"metrics": []
},
"team": "test",
"unitTypes": [
"namespace_id"
],
"metricEvents": [
{
"name": "add_to_cart",
"type": "count",
"criteria": []
},
{
"name": ".",
"type": "count",
"criteria": []
}
]
},
{
"id": "[LOCAL] Time Spent over 500ms::event_count_custom",
"name": "[LOCAL] Time Spent over 500ms",
"directionality": "increase",
"type": "event_count_custom",
"description": "Creating my first Local Metric! How exciting!! ",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [
"★ Core",
"dashboard_test",
"test_owner_4"
],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1709594132514,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"time_spent_on_page"
],
"metrics": []
},
"team": null,
"unitTypes": [
"userID"
],
"metricEvents": [
{
"name": "time_spent_on_page",
"criteria": [
{
"type": "value",
"column": "!statsig_value",
"condition": ">",
"values": [
"500"
]
}
]
}
]
},
{
"id": "___RENAME_FAILED___::composite_sum",
"name": "rename_test_success",
"directionality": "increase",
"type": "composite_sum",
"description": "This metric will be renamed from something aggressive and capital, to \"rename_test_success\", to help determine where metric renaming worked",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [
"dashboard_test"
],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1704923273872,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [],
"metrics": [
"add_to_cart_games::event_count_custom",
"Appliance Purchases::event_count_custom",
"test-test::event_count_custom"
]
},
"team": null,
"unitTypes": [
"userID",
"stableID",
"room_id",
"server_id"
],
"metricEvents": [],
"metricComponentMetrics": [
{
"name": "add_to_cart_games",
"type": "event_count_custom"
},
{
"name": "Appliance Purchases",
"type": "event_count_custom"
},
{
"name": "Test User",
"type": "event_count_custom"
}
]
},
{
"id": "A metric for testing teams::event_count_custom",
"name": "A metric for testing teams",
"directionality": "increase",
"type": "event_count_custom",
"description": "",
"isPermanent": false,
"isReadOnly": false,
"isHidden": false,
"isVerified": false,
"tags": [],
"creatorName": "Test User",
"creatorEmail": "test@statsig.com",
"createdTime": 1706640947812,
"owner": {
"name": "Test User"
},
"lineage": {
"events": [
"add_to_cart"
],
"metrics": []
},
"team": null,
"unitTypes": [
"userID"
],
"metricEvents": [
{
"name": "add_to_cart",
"criteria": [
{
"type": "value",
"column": "",
"condition": "in",
"values": [
"sports"
]
}
]
}
]
}
],
"pagination": {
"itemsPerPage": 5,
"pageNumber": 1,
"totalItems": 2699,
"nextPage": "/console/v1/metrics/list?page=2&limit=5",
"previousPage": null,
"all": "/console/v1/metrics/list"
}
}
Assistant
Responses are generated using AI and may contain mistakes.