> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List environments

> Returns every environment in the project. An environment is one draft-and-published copy of the agent. The call takes no paging parameters, so one request yields the whole set.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json get /v1/stable/environment
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/environment:
    get:
      tags:
        - Environment
      summary: List environments
      description: >-
        Returns every environment in the project. An environment is one
        draft-and-published copy of the agent. The call takes no paging
        parameters, so one request yields the whole set.
      operationId: StableEnvironmentController_list
      parameters:
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
      responses:
        '200':
          description: >-
            Returns every environment in the project, each with its name, alias,
            release history, whether it is the project's main environment, and
            the percentage of live traffic it currently takes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StableEnvironmentListResponse'
          x-vf-doc:
            description: >-
              Returns every environment in the project, each with its name,
              alias, release history, whether it is the project's main
              environment, and the percentage of live traffic it currently
              takes.
      security:
        - token: []
components:
  schemas:
    StableEnvironmentListResponse:
      type: object
      properties:
        environments:
          type: array
          items:
            $ref: '#/components/schemas/StableEnvironment'
      required:
        - environments
    StableEnvironment:
      type: object
      properties:
        name:
          type: string
        alias:
          type: string
          description: The URL-safe alias that identifies the environment (e.g. `main`).
        isMain:
          type: boolean
          description: Whether this is the main (default) environment of the project.
        releases:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              backupID:
                type: number
                description: >-
                  The ID of the backup that snapshots the environment for this
                  release.
              createdAt:
                type: string
                format: date-time
                pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
              description:
                nullable: true
                description: An optional description of what changed in this release.
                type: string
              autogenerated:
                type: boolean
                description: >-
                  Whether the release was created automatically by the system
                  rather than published manually.
            required:
              - name
              - backupID
              - createdAt
              - description
              - autogenerated
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        trafficPercentage:
          type: number
          description: >-
            The percentage of live traffic (0-100) currently routed to this
            environment.
      required:
        - name
        - alias
        - isMain
        - releases
        - createdAt
        - trafficPercentage
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token

````