---
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, required
  - `deployed_variant_name` string, nullable, required
  - `deployed_app_variant_revision_id` string, nullable, required
  - `revision` integer, nullable, required
  - `organization_id` string, nullable
  - `workspace_id` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **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/e3e84db47198/schema)
