curl --request GET \
--url https://statsigapi.net/console/v1/gates \
--header 'STATSIG-API-KEY: <api-key>'{
"message": "Gates listed successfully.",
"data": [
{
"id": "a_gate",
"name": "A Gate",
"description": "description",
"idType": "userID",
"lastModifierID": "4R5PV7mvYdW6NLCwK8ocoz",
"lastModifiedTime": 1705439406750,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4R5PV7mvYdW6NLCwK8ocoz",
"createdTime": 1705439406615,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"isEnabled": true,
"status": "In Progress",
"rules": [],
"checksPerHour": 0,
"type": "PERMANENT",
"typeReason": "NONE",
"team": null,
"reviewSettings": {
"requiredReview": false,
"allowedReviewers": []
},
"measureMetricLifts": true,
"owner": {
"ownerID": "user123",
"ownerName": "CONSOLE API",
"ownerType": "SDK_KEY",
"ownerEmail": ""
},
"monitoringMetrics": [],
"version": 1
}
],
"pagination": {
"all": "",
"itemsPerPage": 100,
"nextPage": null,
"pageNumber": 1,
"previousPage": null,
"totalItems": 1
}
}curl --request GET \
--url https://statsigapi.net/console/v1/gates \
--header 'STATSIG-API-KEY: <api-key>'{
"message": "Gates listed successfully.",
"data": [
{
"id": "a_gate",
"name": "A Gate",
"description": "description",
"idType": "userID",
"lastModifierID": "4R5PV7mvYdW6NLCwK8ocoz",
"lastModifiedTime": 1705439406750,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4R5PV7mvYdW6NLCwK8ocoz",
"createdTime": 1705439406615,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"isEnabled": true,
"status": "In Progress",
"rules": [],
"checksPerHour": 0,
"type": "PERMANENT",
"typeReason": "NONE",
"team": null,
"reviewSettings": {
"requiredReview": false,
"allowedReviewers": []
},
"measureMetricLifts": true,
"owner": {
"ownerID": "user123",
"ownerName": "CONSOLE API",
"ownerType": "SDK_KEY",
"ownerEmail": ""
},
"monitoringMetrics": [],
"version": 1
}
],
"pagination": {
"all": "",
"itemsPerPage": 100,
"nextPage": null,
"pageNumber": 1,
"previousPage": null,
"totalItems": 1
}
}Optional header to respect review settings for mutation endpoints.
Filter by idType
Filter by type
TEMPORARY, PERMANENT, STALE, TEMPLATE Filter by typeReason
NONE, STALE_PROBABLY_LAUNCHED, STALE_PROBABLY_UNLAUNCHED, STALE_PROBABLY_FORGOTTEN, STALE_NO_RULES, STALE_PROBABLY_DEAD_CHECK, STALE_EMPTY_CHECKS, STALE_ALL_TRUE, STALE_ALL_FALSE Filter by pass rate of the gates, as determined by a sampling of overall true/false values returned: 0, 100, or INBETWEEN (pass rate greater than zero but less than 100)
0, 100, INBETWEEN Filter by rollout rate of the gates: 0 (all rules are set to pass 0%), 100 (all rules pass 100% including an "everyone" catch all rule), or INBETWEEN (at least one rule has a pass rate greater than 0 but less than 100)
0, 100, INBETWEEN Name of the creator.
ID of the user who created the entity.
Filter by tags
Results per page
10
Page number
1
List gates success