# projectLabels

```graphql
query ProjectLabels($input: ProjectLabelsInput!) {
  projectLabels(input: $input) {
    labels {
      id
      projectId
      namespace
      key
      value
      color
      createdAt
      updatedAt
    }
  }
}
```

List project labels. Requires project.read.

## Arguments

| Name                     | Type                | Required | Description           |
| ------------------------ | ------------------- | -------- | --------------------- |
| `input`                  | ProjectLabelsInput! | Yes      |                       |
| `input.projectReference` | String!             | Yes      | Project UUID or slug. |

## Variables

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

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | The ProjectLabelList! in data.projectLabels. |

## 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 ProjectLabels($input: ProjectLabelsInput!) {\n  projectLabels(input: $input) {\n    labels {\n      id\n      projectId\n      namespace\n      key\n      value\n      color\n      createdAt\n      updatedAt\n    }\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectLabels": {
      "labels": [
        {
          "id": "string",
          "projectId": "string",
          "namespace": "string",
          "key": "string",
          "value": "string",
          "color": "string",
          "createdAt": "string",
          "updatedAt": "string"
        }
      ]
    }
  }
}
```
