# releases

```graphql
query Releases($projectReference: String!) {
  releases(projectReference: $projectReference) {
    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!          | Yes      | Project UUID, slug or configured domain.                                                                                                 |
| `limit`            | Int              |          | Releases per page, between 1 and 100. Defaults to 20.                                                                                    |
| `cursor`           | String           |          | pageInfo.endCursor of the previous page, read with the same sortBy and sortOrder.                                                        |
| `sortBy`           | ReleaseSortField |          | Sort field. Defaults to created\_at. Releases with the same value are ordered by ID ascending. One of `created_at`, `version`, `status`. |
| `sortOrder`        | ReleaseSortOrder |          | Sort order. Defaults to desc. One of `asc`, `desc`.                                                                                      |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                        |
| ------ | ---------------------------------- |
| 200    | The ReleasePage! in data.releases. |

## 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 Releases($projectReference: String!) {\n  releases(projectReference: $projectReference) {\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}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "releases": {
      "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"
      }
    }
  }
}
```
