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

# List environments

> List environments in the authenticated account. Optionally filter by an exact environment name.

<Info>
  Requires an [Account API key](/docs/reference/backend/http-api/api-keys#account-api-keys) with the `account:environments:list` scope.
</Info>

<ResponseExample>
  ```json Example Response theme={null}
  {
    "data": [
      {
        "id": 123,
        "uuid": "123e4567-e89b-12d3-a456-426614174000",
        "name": "staging",
        "is_production": false
      }
    ]
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /environments
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /environments:
    get:
      summary: List environments
      description: >-
        List environments in the authenticated account. Optionally filter by an
        exact environment name.
      parameters:
        - name: name
          in: query
          required: false
          description: Exact environment name to find.
          schema:
            type: string
            pattern: ^[a-z0-9_-]+$
            maxLength: 255
          example: staging
      responses:
        '200':
          description: Successfully listed environments
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - uuid
                        - name
                        - is_production
                      properties:
                        id:
                          type: integer
                          description: Numeric environment ID.
                          example: 123
                        uuid:
                          type: string
                          format: uuid
                          description: >-
                            Environment UUID. Use this in account-level API
                            calls for this environment.
                          example: 123e4567-e89b-12d3-a456-426614174000
                        name:
                          type: string
                          description: The environment name.
                          example: staging
                        is_production:
                          type: boolean
                          description: Whether the environment is production.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
  schemas:
    StdError:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items:
                type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An Environment API key from your Nango environment, or an Account API
        key for account-level endpoints.

````