---
title: "List All Environments"
method: GET
path: "/v1/projects/{projectId}/environments"
tags: ["Environments"]
---

# List All Environments

`GET /v1/projects/{projectId}/environments`

An endpoint for listing environments

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `page` unknown
- `size` unknown

## Response `200`

Environments have been retrieved

- PagedResultListEnvironmentSummary
  - `page` integer — The 0-indexed page number of the returned results.
  - `results` EnvironmentSummary[] — Page of results or empty.
    - `defaultAgentId` string — The UUID of the agent associated with the environment as set by the user
    - `defaultAgentName` string — The name of the agent associated with the environment as set by the user
    - `name` string — The name of the environment as set by the user
  - `size` integer — The size of each page of results.
  - `total` integer — Total number of available results across all pages.

## Other responses

- `400` — Wrong request parameters used
- `403` — Unauthorized
- `404` — Project not Found
- `500` — Unexpected error occurred
- `504` — Gateway timeout

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/versions/6239825f68eb/schema)
