# List lifecycles

Source: https://www.jawsdeploy.net/rest-api/lifecycles-list | Section: Lifecycles

List the release lifecycles defined in a workspace.

`GET /api/lifecycle`

Returns each lifecycle with its ordered phases and per-phase environments.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `workspaceId` | query | string | yes | ID of the workspace. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `workspaceId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
GET /api/lifecycle?workspaceId=ws_abc
```

Example response:

```
{ "workspaceId": "ws_abc", "lifecycles": [ { "lifecycleId": "lc_1", "name": "default", "phases": [ { "phaseId": "ph_1", "name": "Dev", "environments": [...] } ] } ] }
```

