# projectCollaboration

```graphql
query ProjectCollaboration($input: ProjectCollaborationInput!) {
  projectCollaboration(input: $input) {
    seats {
      purchased
      active
      reserved
      available
    }
    overCapacity
    collaborationAllowed
    canInvite
  }
}
```

Get available seats. Requires project.read.

## Arguments

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

## Variables

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

## Responses

| Status | Description                                             |
| ------ | ------------------------------------------------------- |
| 200    | The ProjectCollaboration! in data.projectCollaboration. |

## 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 ProjectCollaboration($input: ProjectCollaborationInput!) {\n  projectCollaboration(input: $input) {\n    seats {\n      purchased\n      active\n      reserved\n      available\n    }\n    overCapacity\n    collaborationAllowed\n    canInvite\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "projectCollaboration": {
      "seats": {
        "purchased": 0,
        "active": 0,
        "reserved": 0,
        "available": 0
      },
      "overCapacity": false,
      "collaborationAllowed": false,
      "canInvite": false
    }
  }
}
```
