How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

statsig Layers API

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

statsig Layers API is one of 17 APIs that Statsig publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Layers. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 4 paths, and defines 6 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 2 base URLs: https://statsigapi.net/console/v1, https://api.statsig.com/v1.

6 operations 4 paths 6 schemas 1 DELETE3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.statsig.com
Authentication
API Key, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

statsig Layers API declares 2 security schemes for authenticating requests. An API key is passed in the header as STATSIG-API-KEY (consoleApiKey). An API key is passed in the header as statsig-api-key (statsigApiKey).

  • consoleApiKey — Console API Key created in Project Settings API Keys tab. Required for all Console API requests.
  • statsigApiKey — API key for authentication. Use a Server Secret Key for secure server-side requests or a Client-SDK Key for client-side applications.

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 1 DELETE, 3 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Layers 6

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

GET
/layers
List all layers
listLayers 3 params → 200401
POST
/layers
Create a layer
createLayer 1 param body → 201400401
GET
/layers/{id}
Get a layer
getLayer 2 params → 200401404
DELETE
/layers/{id}
Delete a layer
deleteLayer 2 params → 200401404
GET
/layers/{id}/experiments
List experiments in a layer
listLayerExperiments 2 params → 200401404
POST
/get_layer
Get layer parameters
getLayer body → 200401

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Experiment (12 properties), StatsigUser (10 properties), Layer (6 properties), Pagination (4 properties). Each schema is shown below with its type and property counts.

LayerCreate
object
Request body for creating a new layer.
3 properties 1 required
ExperimentGroup
object
An experiment group defining parameter values for a set of users.
3 properties
Layer
object
A layer that enables sharing parameters across multiple experiments while maintaining mutual exclusivity.
6 properties
Experiment
object
An A/B test experiment with defined groups, parameters, and analysis configuration.
12 properties
Pagination
object
Pagination metadata for list responses.
4 properties
StatsigUser
object
The user object representing the end user being evaluated. At minimum, a userID should be provided. Additional properties enable more sophisticated targeting.
10 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

statsig-layers-api-openapi.yml Raw ↑

Other APIs Statsig publishes across the network.

Statsig Events API
statsig Audit Logs API
statsig Autotunes API
statsig Configuration API
statsig Dynamic Configs API
statsig Experiments API
statsig Feature Gates API
statsig Gates API
statsig Holdouts API
statsig Initialization API
statsig Keys API
statsig Metrics API
Where this information came from

This is an independent, third-party profile of statsig Layers API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.