# GET /repos/{owner}/{repo}/environments

**Resource:** [repos](../resources/repos.md)
**List environments**
**Operation ID:** `repos/get-all-environments`

Lists the environments for a repository.

Anyone with read access to the repository can use this endpoint.

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.

## Responses

| Status | Description |
|--------|-------------|
| 200 | Response |

