Skip to main content
POST
/
v1
/
check_gate
curl --request POST \
--url https://api.statsig.com/v1/check_gate \
--header 'Content-Type: application/json' \
--header 'statsig-api-key: <api-key>' \
--data '{
"gateName": "new_user_onboarding",
"user": {
"userID": "user-123",
"email": "user@example.com"
}
}'
{
"name": "new_user_onboarding",
"value": true,
"rule_id": "2RamGsERWbWMIMnSfOlQuX",
"group_name": "Test Group"
}

Authorizations

statsig-api-key
string
header
required

Body

application/json
  • Option 1
  • Option 2
gateName
string
required
Required string length: 2 - 100
gateNames
string[]
Required array length: 1 - 100 elements
user
object
statsigMetadata
object
Example:

Response

200 - application/json
  • Option 1
  • Option 2
name
string
required
value
boolean
required
rule_id
string | null
required
group_name
string | null
required