Statsig Environments API

The Environments API from Statsig — 1 operation(s) for environments.

Operations 2

GET /console/v1/environments Get Environments #
POST /console/v1/environments Update Environments #

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-environments-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-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Console Environments API
  description: The "Console API" is the CRUD API for performing the actions offered on console.statsig.com without needing to go through the web UI.
  version: 20240601.0.0
  contact: {}
servers:
- url: https://statsigapi.net
tags:
- name: Environments
paths:
  /console/v1/environments:
    get:
      summary: Get Environments
      parameters: []
      responses:
        '200':
          description: Get Environments Response
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SingleDataResponse'
                - properties:
                    data:
                      $ref: '#/components/schemas/EnvironmentsContractDto'
                example:
                  message: Environments read successfully.
                  data:
                    environments:
                    - name: development
                      id: '0.35629335902367476'
                      isProduction: false
                      requiresReview: false
                      requiresReleasePipeline: true
                    - name: staging
                      id: '0.015089163460661137'
                      isProduction: false
                      requiresReview: false
                      requiresReleasePipeline: true
                    - name: production
                      id: '0.4067426155658289'
                      isProduction: true
                      requiresReview: true
                      requiresReleasePipeline: true
              example:
                message: Environments read successfully.
                data:
                  environments:
                  - name: development
                    id: '0.35629335902367476'
                    isProduction: false
                    requiresReview: false
                    requiresReleasePipeline: true
                  - name: staging
                    id: '0.015089163460661137'
                    isProduction: false
                    requiresReview: false
                    requiresReleasePipeline: true
                  - name: production
                    id: '0.4067426155658289'
                    isProduction: true
                    requiresReview: true
                    requiresReleasePipeline: true
        '400':
          description: Invalid request. Please check the request input and try again.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    enum:
                    - 400
                  message:
                    type: string
                required:
                - status
                - message
              examples:
                Invalid Request:
                  value:
                    status: 400
                    message: Invalid request. Please check the request input and try again.
        '401':
          description: 'This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    enum:
                    - 401
                  message:
                    type: string
                required:
                - status
                - message
              examples:
                Invalid Endpoint:
                  value:
                    status: 401
                    message: 'This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx'
      tags:
      - Environments
      security:
      - STATSIG-API-KEY: []
      operationId: getConsoleV1Environments
      x-operation-id-source: derived
    post:
      summary: Update Environments
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentsUpdateContractDto'
      responses:
        '200':
          description: Update Environments Response
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SingleDataResponse'
                - properties:
                    data:
                      $ref: '#/components/schemas/EnvironmentsContractDto'
                example:
                  message: Environments updated successfully.
                  data:
                    environments:
                    - name: development
                      id: '0.35629335902367476'
                      isProduction: false
                      requiresReview: false
                      requiresReleasePipeline: true
                    - name: latest
                      id: '0.08933465966698129'
                      isProduction: false
                      requiresReview: false
                      requiresReleasePipeline: true
                    - name: staging
                      id: '0.015089163460661137'
                      isProduction: false
                      requiresReview: false
                      requiresReleasePipeline: true
                    - name: production
                      id: '0.4067426155658289'
                      isProduction: true
                      requiresReview: true
                      requiresReleasePipeline: true
              example:
                message: Environments updated successfully.
                data:
                  environments:
                  - name: development
                    id: '0.35629335902367476'
                    isProduction: false
                    requiresReview: false
                    requiresReleasePipeline: true
                  - name: latest
                    id: '0.08933465966698129'
                    isProduction: false
                    requiresReview: false
                    requiresReleasePipeline: true
                  - name: staging
                    id: '0.015089163460661137'
                    isProduction: false
                    requiresReview: false
                    requiresReleasePipeline: true
                  - name: production
                    id: '0.4067426155658289'
                    isProduction: true
                    requiresReview: true
                    requiresReleasePipeline: true
        '400':
          description: Invalid request. Please check the request input and try again.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    enum:
                    - 400
                  message:
                    type: string
                required:
                - status
                - message
              examples:
                Invalid Request:
                  value:
                    status: 400
                    message: Invalid request. Please check the request input and try again.
        '401':
          description: 'This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    enum:
                    - 401
                  message:
                    type: string
                required:
                - status
                - message
              examples:
                Invalid Endpoint:
                  value:
                    status: 401
                    message: 'This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx'
      tags:
      - Environments
      security:
      - STATSIG-API-KEY: []
      operationId: postConsoleV1Environments
      x-operation-id-source: derived
components:
  schemas:
    EnvironmentsUpdateContractDto:
      type: object
      properties:
        environments:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: The name of the environment.
              id:
                type: string
                description: A unique identifier for the environment. If not provided, the associated environment will be treated as a newly created environment.
              isProduction:
                type: boolean
                description: Whether the environment is production.
              requiresReview:
                type: boolean
                description: Whether the environment requires review.
              requiredReviewGroupID:
                type: string
                description: The ID of the review group that the environment requires review from.
              requiresReleasePipeline:
                type: boolean
                description: Whether the environment requires a release pipeline.
            required:
            - name
            - isProduction
            - requiresReview
            - requiresReleasePipeline
      required:
      - environments
    EnvironmentsContractDto:
      type: object
      properties:
        environments:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: The name of the environment.
              id:
                type: string
                description: A unique identifier for the environment.
              isProduction:
                type: boolean
                description: Whether the environment is production.
              requiresReview:
                type: boolean
                description: Whether the environment requires review.
              requiredReviewGroupID:
                type: string
                description: The ID of the review group that the environment requires review from.
              requiresReleasePipeline:
                type: boolean
                description: Whether the environment requires a release pipeline.
            required:
            - name
            - id
            - isProduction
            - requiresReview
            - requiresReleasePipeline
      required:
      - environments
    SingleDataResponse:
      type: object
      properties:
        message:
          type: string
          description: A simple string explaining the result of the operation.
        data:
          type: object
          description: A single result.
      required:
      - message
      - data
  securitySchemes:
    STATSIG-API-KEY:
      type: apiKey
      name: STATSIG-API-KEY
      in: header