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

# List Environments

> List all environments for an app.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/envs
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/envs:
    get:
      tags:
        - environments
      summary: List Environments
      description: List all environments for an app.
      operationId: environments_list_environments
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentListResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    EnvironmentListResponse:
      properties:
        envs:
          items:
            $ref: '#/components/schemas/EnvironmentResponse'
          type: array
          title: Envs
        total:
          type: integer
          title: Total
      type: object
      required:
        - envs
        - total
      title: EnvironmentListResponse
      description: Response for listing environments.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    EnvironmentResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        access_mode:
          type: string
          title: Access Mode
        access_policy:
          $ref: '#/components/schemas/AccessPolicy'
        source_branch:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Branch
        pr_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pr Number
        ttl_hours:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ttl Hours
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - app_id
        - name
        - slug
        - url
        - access_mode
        - access_policy
        - created_at
      title: EnvironmentResponse
      description: Response for a single environment.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
    AccessPolicy:
      type: string
      enum:
        - invite
        - domain
        - open
      title: AccessPolicy
      description: Access policy for ACCOUNTS-mode apps.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.