> ## 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 Env Vars

> List environment variables for an app's environment.

When service_id is provided, returns vars scoped to that service
plus app-level vars (those with no service assignment).
When omitted, returns ALL vars (all services + unassigned).



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/env
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/env:
    get:
      tags:
        - env
      summary: List Env Vars
      description: |-
        List environment variables for an app's environment.

        When service_id is provided, returns vars scoped to that service
        plus app-level vars (those with no service assignment).
        When omitted, returns ALL vars (all services + unassigned).
      operationId: env_list_env_vars
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: env
          in: query
          required: false
          schema:
            type: string
            title: Env
            default: dev
        - name: preview
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Preview
        - name: service_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Service Id
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvVarListResponse'
        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:
    EnvVarListResponse:
      properties:
        env_vars:
          items:
            $ref: '#/components/schemas/EnvVarResponse'
          type: array
          title: Env Vars
        total:
          type: integer
          title: Total
      type: object
      required:
        - env_vars
        - total
      title: EnvVarListResponse
      description: Response for listing environment variables.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    EnvVarResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        env_id:
          type: string
          format: uuid
          title: Env Id
        service_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Service Id
        key:
          type: string
          title: Key
        masked_value:
          type: string
          title: Masked Value
        is_secret:
          type: boolean
          title: Is Secret
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - app_id
        - env_id
        - service_id
        - key
        - masked_value
        - is_secret
        - created_at
        - updated_at
      title: EnvVarResponse
      description: Response for a single environment variable.
    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.
  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.