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
A simple string explaining the result of the operation.
Array of results returned by pagination limit.
Show child attributes
ID
1000ID of the last modifier.
Time of the last modification.
Email of the last modifier.
Name of the last modifier.
Timestamp when the entity was created.
Name of the creator.
In Progress, Launched, Disabled, Archived TEMPORARY, PERMANENT, STALE, TEMPLATE 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 Show child attributes
The name of this rule.
Of the users that meet the conditions of this rule, what percent should return true.
0 <= x <= 100Must be a multiple of 0.01An array of Condition objects.
Show child attributes
app_version, browser_name, browser_version, country, custom_field, email, environment_tier, fails_gate, fails_segment, ip_address, locale, os_name, os_version, passes_gate, passes_segment, public, time, unit_id, user_id, url, javascript, device_model, target_app The environments this rule is enabled for.
The Statsig ID of this rule.
The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout
Optional name for the configuration.
Holdouts applied to this configuration.
Version number
Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ID of the owner
"abc123"
Type of the owner (e.g., SDK_KEY or USER)
"USER"
The name of the owner. This field is optional.
"John Doe"
The email of the owner. This field is optional.
{
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
}Show child attributes