---
title: "List versions associated with the environment"
method: GET
path: "/projects/{projectId}/environments/{environmentId}/versions"
tags: ["Environment"]
---

# List versions associated with the environment

`GET /projects/{projectId}/environments/{environmentId}/versions`

List versions associated with the `{environmentId}` environment.
At least one version always exists.
When multiple versions exist, it means that multiple versions of an app are deployed.
The deployment target type denotes whether staged deployment is supported.

## Path parameters

- `projectId` string, required
- `environmentId` string, required

## Response `default`

- Version[]
  - `id` string, required — The identifier of Version
  - `commit` string, nullable, required — The SHA of the commit of this version
  - `locked` boolean, required — Whether this version is locked and cannot be modified
  - `routing` object, required — Configuration about the traffic routed to this version
    - `percentage` integer, required — The percentage of traffic routed to this version

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
