# getLatestRelease

```graphql
query GetLatestRelease {
  getLatestRelease {
    id
    name
    version
    projectId
    userId
    createdAt
    updatedAt
    versions {
      id
      entityId
      entityType
      path
      version
      createdAt
      createdBy
      data
      date
      type
      cacheKey
      slug
      name
      body
    }
    assetManifest {
      state
      manifestVersion
    }
    exportOutcome
    buildOutcome
    deployOutcome
  }
}
```

Get the latest release. 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. The result is null when that scope has no accessible releases. |

## Responses

| Status | Description                           |
| ------ | ------------------------------------- |
| 200    | The Release in data.getLatestRelease. |

## 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 GetLatestRelease {\n  getLatestRelease {\n    id\n    name\n    version\n    projectId\n    userId\n    createdAt\n    updatedAt\n    versions {\n      id\n      entityId\n      entityType\n      path\n      version\n      createdAt\n      createdBy\n      data\n      date\n      type\n      cacheKey\n      slug\n      name\n      body\n    }\n    assetManifest {\n      state\n      manifestVersion\n    }\n    exportOutcome\n    buildOutcome\n    deployOutcome\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "getLatestRelease": {
      "id": "string",
      "name": "string",
      "version": "string",
      "projectId": "string",
      "userId": "string",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z",
      "versions": [
        {
          "id": "string",
          "entityId": "string",
          "entityType": "string",
          "path": "string",
          "version": 0,
          "createdAt": "2026-01-01T00:00:00Z",
          "createdBy": "string",
          "data": {},
          "date": "string",
          "type": "Component",
          "cacheKey": "string",
          "slug": "string",
          "name": "string",
          "body": "string"
        }
      ],
      "assetManifest": {
        "state": "queued",
        "manifestVersion": 0
      },
      "exportOutcome": "in_progress",
      "buildOutcome": "in_progress",
      "deployOutcome": "in_progress"
    }
  }
}
```
