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"
}
]
}
}Was this page helpful?