---
title: "List environments for application"
method: GET
path: "/apps/{appId}/environments"
---

# List environments for application

`GET /apps/{appId}/environments`

Retrieve all environments for a specific application

## Path parameters

- `appId` string, required — App identifier

## Query parameters

- `sortOrder` 'asc' | 'desc' — Sort order applied to the sorting column
- `sortBy` 'name' | 'order' — The column to sort by

## Response `200`

Requested resource retrieved successfully

- EnvironmentHeaderCollection — Collection of Basic environment information
  - `data` EnvironmentHeader[], required — The individual items in the collection
    - `id` string, required — Environment identifier
    - `name` string, required — Environment name
    - `isProduction` boolean, required — Whether the environment is a production environment
    - `order` integer, required — Environment order in the app (zero-indexed)
    - `flagStateVersion` integer, required — Environment version incremented when flag state changes
  - `sortOrder` 'asc' | 'desc', required — Sort order applied to the sorting column
  - `sortBy` 'name' | 'order', required — The column to sort by

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Requested resource, or its parent, not found

---

[API](https://skmtc.net/reflag/apis/reflag-management-api.md) · [All operations](https://skmtc.net/reflag/apis/reflag-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reflag/reflag-management-api/versions/9063276689b5/schema)
