---
title: "List preview environments for the caller's accessible projects"
method: GET
path: "/environments"
tags: ["environments"]
---

# List preview environments for the caller's accessible projects

`GET /environments`

## Request

- Base URL: `https://api.letsship.ai/v1`
- URL: `https://api.letsship.ai/v1/environments`
- Auth: none declared

## Query parameters

- `issueId` string
- `projectId` string
- `status` 'provisioning' | 'active' | 'destroying' | 'destroyed' | 'failed'
- `limit` integer

## Response `200`

Environments

- ListEnvironmentsResponse
  - `data` Environment[], required
    - `environmentId` string, required
    - `projectId` string, required
    - `issueId` string, required
    - `prNumber` integer, required
    - `workerName` string, nullable, required
    - `status` 'provisioning' | 'active' | 'destroying' | 'destroyed' | 'failed', required
    - `createdAt` integer, required
    - `expiresAt` integer, nullable, required
    - `destroyedAt` integer, nullable, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: Unauthenticated

---

[API](https://skmtc.dev/letsship/apis/ship-api.md) · [All operations](https://skmtc.dev/letsship/apis/ship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/letsship/apis/ship-api/revisions/e6eac1bcadd4?raw)
