# projectDependencyHistory

```graphql
query ProjectDependencyHistory($input: ProjectDependencyHistoryInput!) {
  projectDependencyHistory(input: $input) {
    version
    projectId
    branch
    entries {
      dependencies
      expiresAt
    }
  }
}
```

Return dependency history. Requires project.files.read.

## Arguments

| Name                     | Type                           | Required | Description                                                                          |
| ------------------------ | ------------------------------ | -------- | ------------------------------------------------------------------------------------ |
| `input`                  | ProjectDependencyHistoryInput! | Yes      |                                                                                      |
| `input.projectReference` | String!                        | Yes      | Project UUID or slug.                                                                |
| `input.branch`           | String                         |          | Branch name or UUID, 1–255 characters without surrounding whitespace. Omit for main. |

## Variables

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

## Responses

| Status | Description                                                     |
| ------ | --------------------------------------------------------------- |
| 200    | The ProjectDependencyHistory! in data.projectDependencyHistory. |

## 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 ProjectDependencyHistory($input: ProjectDependencyHistoryInput!) {\n  projectDependencyHistory(input: $input) {\n    version\n    projectId\n    branch\n    entries {\n      dependencies\n      expiresAt\n    }\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectDependencyHistory": {
      "version": 0,
      "projectId": "string",
      "branch": "string",
      "entries": [
        {
          "dependencies": {},
          "expiresAt": 0
        }
      ]
    }
  }
}
```
