statsig Configuration API

Endpoints for downloading full project configuration specs for server-side local evaluation.

Operations 1

POST /download_config_specs Download configuration specs #

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-configuration-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-configuration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Statsig Configuration API
  version: 1.0.0
  contact:
    name: Statsig Support
    url: https://statsig.com/support
  termsOfService: https://statsig.com/terms
  description: 'Operations tagged Configuration across 2 of this provider''s published API definitions: statsig-http-api-openapi.yml, statsig-server-sdk-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.statsig.com/v1
  description: Statsig API Server
tags:
- name: Configuration
  description: Endpoints for downloading full project configuration specs for server-side local evaluation.
paths:
  /download_config_specs:
    post:
      operationId: downloadConfigSpecs
      summary: Download configuration specs
      description: Downloads the full project configuration for server-side local evaluation. This endpoint is used by server SDKs to retrieve all gate, config, experiment, and layer definitions for evaluating locally without per-request network calls. This enables sub-millisecond feature gate checks.
      tags:
      - Configuration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sinceTime:
                  type: integer
                  format: int64
                  description: Timestamp of the last successful download, used for incremental updates.
      responses:
        '200':
          description: Full project configuration specs
          content:
            application/json:
              schema:
                type: object
                properties:
                  dynamic_configs:
                    type: array
                    items:
                      type: object
                    description: Array of dynamic config and experiment specifications.
                  feature_gates:
                    type: array
                    items:
                      type: object
                    description: Array of feature gate specifications.
                  layer_configs:
                    type: array
                    items:
                      type: object
                    description: Array of layer specifications.
                  has_updates:
                    type: boolean
                    description: Whether the response contains updates since sinceTime.
                  time:
                    type: integer
                    format: int64
                    description: Server timestamp of this configuration snapshot.
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - statsigApiKey: []
    servers:
    - url: https://api.statsig.com/v1
      description: Statsig API Server
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error message describing the authentication failure.
  schemas:
    ConfigSpecs:
      type: object
      description: The complete project configuration specs for server-side local evaluation.
      properties:
        dynamic_configs:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSpec'
          description: Array of dynamic config and experiment specifications.
        feature_gates:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSpec'
          description: Array of feature gate specifications.
        layer_configs:
          type: array
          items:
            $ref: '#/components/schemas/ConfigSpec'
          description: Array of layer specifications.
        layers:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Map of layer names to their associated experiment names.
        has_updates:
          type: boolean
          description: Whether the response contains updates since sinceTime.
        time:
          type: integer
          format: int64
          description: Server timestamp of this configuration snapshot.
    RuleSpec:
      type: object
      description: An evaluation rule specification used for local evaluation.
      properties:
        id:
          type: string
          description: The unique identifier of the rule.
        name:
          type: string
          description: The name of the rule.
        passPercentage:
          type: number
          minimum: 0
          maximum: 100
          description: The percentage of matching users who pass the rule.
        conditions:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                description: The type of condition.
              targetValue:
                description: The target value to compare against.
              operator:
                type: string
                description: The comparison operator.
              field:
                type: string
                description: The user field to evaluate.
          description: The conditions that must be met for this rule.
        returnValue:
          type: object
          description: The value returned when this rule matches.
        groupName:
          type: string
          description: The group name assigned when this rule matches.
    ConfigSpec:
      type: object
      description: A configuration specification for a gate, config, experiment, or layer that enables local evaluation.
      properties:
        name:
          type: string
          description: The name of the entity.
        type:
          type: string
          enum:
          - feature_gate
          - dynamic_config
          - experiment
          - autotune
          - layer
          description: The type of configuration entity.
        salt:
          type: string
          description: Salt value used for deterministic user assignment hashing.
        enabled:
          type: boolean
          description: Whether the entity is currently enabled.
        rules:
          type: array
          items:
            $ref: '#/components/schemas/RuleSpec'
          description: The evaluation rules for this entity.
        defaultValue:
          type: object
          description: The default value when no rules match.
  securitySchemes:
    statsigApiKey:
      type: apiKey
      in: header
      name: statsig-api-key
      description: API key for authentication. Use a Server Secret Key for secure server-side requests or a Client-SDK Key for client-side applications.
    serverSecretKey:
      type: apiKey
      in: header
      name: statsig-api-key
      description: Server Secret Key for secure server-side API access. Must only be used from trusted server environments and never exposed client-side.
x-refined-from:
- statsig-http-api-openapi.yml
- statsig-server-sdk-api-openapi.yml