---
title: "List compute environments"
method: GET
path: "/compute-envs"
tags: ["compute-envs"]
---

# List compute environments

`GET /compute-envs`

Lists all available compute environments in a user context. Append `?workspaceId` to list compute environments in a workspace context, and `?status` to filter by compute environment status.

## Query parameters

- `status` string
- `workspaceId` integer

## Response `200`

OK

- ListComputeEnvsResponse
  - `computeEnvs` ListComputeEnvsResponseEntry[]
    - `id` string
    - `name` string
    - `platform` string
    - `status` 'CREATING' | 'AVAILABLE' | 'ERRORED' | 'INVALID'
    - `message` string
    - `lastUsed` string, date-time
    - `primary` boolean
    - `workspaceName` string
    - `visibility` string
    - `workDir` string
    - `credentialsId` string
    - `region` string

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/d86e2935c8e2/schema)
