# List environments

```http
GET /projects/{project_reference}/environments
```

List environments. Requires project.read.

## Parameters

| Name                | In    | Required | Description                                                                                |
| ------------------- | ----- | -------- | ------------------------------------------------------------------------------------------ |
| `project_reference` | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                 |
| `cursor`            | query |          | Cursor for pagination: an environment ID from this project. An unknown cursor is rejected. |
| `limit`             | query |          | Page size, 1 to 100. Defaults to 20.                                                       |
| `sort_by`           | query |          | Sort field: "name" or "updated\_at".                                                       |
| `sort_order`        | query |          | Sort order: "asc" or "desc".                                                               |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | Paginated list of environments for the project |
| 400    | Bad request                                    |
| 401    | Unauthorized                                   |
| 403    | Forbidden                                      |
| 404    | Not found                                      |
| 500    | Server error                                   |
