# listReleases

```graphql
query ListReleases {
  listReleases {
    data {
      id
      name
      version
      projectId
      userId
      createdAt
      updatedAt
      exportOutcome
      buildOutcome
      deployOutcome
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List releases. Requires project.releases.read.

## Arguments

| Name               | Type             | Required | Description                                                                                                                                                                                                                        |
| ------------------ | ---------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectReference` | String           |          | Project reference. Defaults to the request's project scope, or the authenticated account's accessible projects.                                                                                                                    |
| `first`            | Int              |          | Maximum number of releases to return, between 1 and 100. Omit to return the complete list.                                                                                                                                         |
| `after`            | String           |          | Cursor from the previous page's pageInfo.endCursor. Releases are ordered by sortBy and sortOrder, newest first by default, with ties by release ID ascending; a continuation is bound to the same project or account and ordering. |
| `sortBy`           | ReleaseSortField |          | Sort field. Defaults to created\_at. One of `created_at`, `version`, `status`.                                                                                                                                                     |
| `sortOrder`        | ReleaseSortOrder |          | Sort order. Defaults to desc. One of `asc`, `desc`.                                                                                                                                                                                |

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | The ReleasesConnection in data.listReleases. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ListReleases {\n  listReleases {\n    data {\n      id\n      name\n      version\n      projectId\n      userId\n      createdAt\n      updatedAt\n      exportOutcome\n      buildOutcome\n      deployOutcome\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "listReleases": {
      "data": [
        {
          "id": "string",
          "name": "string",
          "version": "string",
          "projectId": "string",
          "userId": "string",
          "createdAt": "2026-01-01T00:00:00Z",
          "updatedAt": "2026-01-01T00:00:00Z",
          "exportOutcome": "in_progress",
          "buildOutcome": "in_progress",
          "deployOutcome": "in_progress"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
