Skip to main content

Gates

A feature gate is a mechanism for teams to configure what system behavior is visible to users without changing application code. This page describes how gates can be created and modified through the Console API.

For more detail on creating user targeting based on Statsig-derived environment attributes such as location, client device, browser type, and client app version, see the Console API Rules page where all conditions are listed.

Gate API functions

  • Create a new gate
  • Read data from existing gates
  • Update properties of a gate
  • Delete a gate
  • Update gate overrides

Authorization

All requests must include the STATSIG-API-KEY field in the header. The value should be a Console API Key which can be created in 'Project Settings'->'API Keys' tab.
To use the 'try it' section on this page, enter your Console API into the box below.


Warning! You will be directly modifying the project connected to the api-key provided.

We suggest creating a temporary project when testing our API below.