---
title: "List Environments"
method: GET
path: "/apps/{app_id}/environments"
tags: ["Apps"]
---

# List Environments

`GET /apps/{app_id}/environments`

Retrieve a list of environments for a given app ID.

Args:
    app_id (str): The ID of the app to retrieve environments for.

Returns:
    List[EnvironmentOutput]: A list of environment objects.

## Path parameters

- `app_id` string, required

## Response `200`

Successful Response

- EnvironmentOutput[]
  - `name` string, required
  - `app_id` string, required
  - `project_id` string, required
  - `deployed_app_variant_id` string, nullable
  - `deployed_variant_name` string, nullable
  - `deployed_app_variant_revision_id` string, nullable
  - `revision` integer, nullable
  - `organization_id` string, nullable
  - `workspace_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-11-05** `e62506c24377` — 4 breaking
  - the response property `items/deployed_app_variant_id` became optional for the status `200`
  - the response property `items/deployed_app_variant_revision_id` became optional for the status `200`
  - the response property `items/deployed_variant_name` became optional for the status `200`
  - the response property `items/revision` became optional for the status `200`
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/apps/:app_id/environments/get.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/e4c4efcbd25d/schema)
