curl --request GET \
--url https://statsigapi.net/console/v1/gates/{id}/rules \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Gate rules read successfully.",
"data": {
"rules": [
{
"name": "NA",
"passPercentage": 90,
"conditions": [
{
"type": "country",
"operator": "any",
"targetValue": [
"CA"
]
}
],
"environment": "production",
"id": "LcDWo6mFrWaS3DtoKtEAfg1"
}
]
}
}
curl --request GET \
--url https://statsigapi.net/console/v1/gates/{id}/rules \
--header 'STATSIG-API-KEY: <api-key>'
{
"message": "Gate rules read successfully.",
"data": {
"rules": [
{
"name": "NA",
"passPercentage": 90,
"conditions": [
{
"type": "country",
"operator": "any",
"targetValue": [
"CA"
]
}
],
"environment": "production",
"id": "LcDWo6mFrWaS3DtoKtEAfg1"
}
]
}
}
Optional header to respect review settings for mutation endpoints.
id
Get gate rules response
The response is of type object
.