statsig Layers API

Manage layers that enable sharing parameters across multiple experiments while maintaining mutual exclusivity.

Operations 19

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /layers List layers in the project · List all layers #
Ask an LLM
“Which layers exist in my Statsig project?”
“Can I page through all our experiment layers?”
Tell an agent
List all layers in my project.
Show page {page} of layers with {limit} per page.
POST /layers Create a layer for shared experiment parameters · Create a layer #
Ask an LLM
“How do I create a layer so several experiments can share parameters?”
“Can I set default parameter values when creating a layer?”
Tell an agent
Create a layer named {name}.
Create layer {name} with default parameters {parameters}.
GET /layers/{id} Get a layer's configuration · Get a layer #
Ask an LLM
“What parameters and experiments are defined on a specific layer?”
“Can I look up a layer's console configuration by name?”
Tell an agent
Show the configuration of layer {id}.
Get the parameters defined on layer {id} in the console.
DELETE /layers/{id} Delete a layer · Delete a layer #
Ask an LLM
“How do I permanently remove a layer we no longer use?”
“Is deleting a layer irreversible?”
Tell an agent destructive · confirm first
Delete layer {id}.
Permanently remove layer {id} from the project.
GET /layers/{id}/experiments List the experiments in a layer · List experiments in a layer #
Ask an LLM
“Which experiments are running inside a particular layer?”
“What experiments share a given layer's parameters?”
Tell an agent
List the experiments in layer {id}.
Show which experiments belong to layer {id}.
POST /get_layer Get a user's parameter values from a layer · Get layer parameters #
Ask an LLM
“What layer parameter values does a specific user receive?”
“When is an exposure logged for layer parameters?”
Tell an agent
Get layer {layerName} parameter values for user {user}.
Evaluate layer {layerName} for user {user}.
GET /console/v1/layers List layers via the Console API v1 · Get Layers #
Ask an LLM
“Can the Console API v1 list all layers in the project?”
“Which layers come back on each page of the v1 console listing?”
Tell an agent
List layers from the v1 console.
Fetch layers page {page} from Console API v1 at {limit} per page.
POST /console/v1/layers Create a layer with an ID type · Create a Layer #
Ask an LLM
“Which ID type must I choose when creating a layer?”
“Can I attach target apps to a layer when I create it?”
Tell an agent
Create layer {name} using ID type {idType}.
Create layer {name} on {idType} for target apps {targetApps}, owned by team {team}.
GET /console/v1/layers/{id} Get one layer via the Console API v1 · Get one layer #
Ask an LLM
“Can the Console API v1 return a single layer's details?”
“Which target apps and ID type does a given layer use?”
Tell an agent
Fetch layer {id} from the v1 console.
Look up the ID type and target apps of layer {id}.
POST /console/v1/layers/{id} Replace a layer's description and parameters · Update a layer #
Ask an LLM
“Can I overwrite all of a layer's parameters in one update?”
“Is a description required when fully updating a layer?”
Tell an agent
Replace layer {id} parameters with {parameters} and description {description}.
Fully update layer {id}: description {description}, parameters {parameters}, target apps {targetApps}.
PATCH /console/v1/layers/{id} Partially update a layer · Partially update a layer #
Ask an LLM
“Can I change only a layer's target apps without resending its parameters?”
“Is it possible to edit just a layer's description?”
Tell an agent
Set the target apps of layer {id} to {targetApps}.
Change only the description of layer {id} to {description}.
DELETE /console/v1/layers/{id} Delete a layer via the Console API v1 · Delete a layer #
Ask an LLM
“Can I delete a layer through the Console API v1?”
“Which v1 console call removes a layer completely?”
Tell an agent destructive · confirm first
Delete layer {id} with the v1 console endpoint.
Remove layer {id} for good via Console API v1.
GET /console/v1/layers/{id}/experiments Trace experiment lineage for a layer · Lineage: List Experiment related to Layer #
Ask an LLM
“Can the v1 console lineage view show which experiments are tied to a layer?”
“Can I page through a layer's experiment lineage?”
Tell an agent
Show the v1 lineage of experiments for layer {id}.
List page {page} of experiment lineage for layer {id}, {limit} per page.
GET /console/v1/layers/{id}/overrides Get a layer's overrides · Get Layer Overrides #
Ask an LLM
“Which users or segments are overridden in a layer?”
“What conditional and ID overrides are set on a layer?”
Tell an agent
Show the overrides on layer {id}.
List the ID and conditional overrides for layer {id}.
POST /console/v1/layers/{id}/overrides Replace a layer's overrides · Update Layer Overrides #
Ask an LLM
“Can I replace every override on a layer in one call?”
“Can I set both ID overrides and conditional overrides on a layer together?”
Tell an agent
Replace the overrides on layer {id} with ID overrides {idOverrides} and conditional overrides {conditionalOverrides}.
Set layer {id} overrides to {idOverrides} by ID and {conditionalOverrides} by condition.
PATCH /console/v1/layers/{id}/overrides Add overrides to a layer · Add Layer Overrides #
Ask an LLM
“Can I add new overrides to a layer without removing the existing ones?”
“Can I add a user ID override to a layer alongside its current overrides?”
Tell an agent
Add ID overrides {idOverrides} and conditional overrides {conditionalOverrides} to layer {id}.
Append override {idOverrides} to layer {id}, keeping existing ones.
DELETE /console/v1/layers/{id}/overrides Delete all overrides on a layer · Delete Layer Overrides #
Ask an LLM
“Can I clear every override on a layer at once?”
“Is clearing all of a layer's overrides permanent?”
Tell an agent destructive · confirm first
Delete all overrides on layer {id}.
Clear every override from layer {id}.
DELETE /console/v1/layers/{id}/overrides/conditional/{type}/{name} Remove one gate or segment override from a layer · Delete a Single Layer Override #
Ask an LLM
“Can I remove a single gate or segment override from a layer without touching the others?”
“What happens if the layer override I delete doesn't exist?”
Tell an agent destructive · confirm first
Remove the {type} override for {name} on layer {id} in experiment {experimentName}, group {groupName}.
Delete the {type} override {name} from layer {id} for group {groupName} of experiment {experimentName} in {environment}.
DELETE /console/v1/layers/{id}/overrides/userID/{userID} Remove one user ID override from a layer · Delete a Single Layer User ID Override #
Ask an LLM
“Can I take one user out of a layer's user ID override?”
“Does removing a user ID override from a layer affect other override buckets?”
Tell an agent destructive · confirm first
Remove user {userID} from the override on layer {id} for experiment {experimentName}, group {groupName}.
Delete the user ID override for {userID} in layer {id}, experiment {experimentName}, group {groupName}, environment {environment}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/statsig:statsig-layers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

statsig-layers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Statsig Layers API
  version: '1.0'
  description: 'Operations tagged Layers across 3 of this provider''s published API definitions: statsig-console-api-openapi.yml, statsig-http-api-openapi.yml, statsig-layers-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://statsigapi.net/console/v1
  description: Statsig Console API Server
- url: https://api.statsig.com/v1
  description: Statsig API Server
- url: https://statsigapi.net
tags:


# --- truncated at 32 KB (131 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/statsig/refs/heads/main/openapi/statsig-layers-api-openapi.yml