# projectInvitations

```graphql
query ProjectInvitations($projectReference: ID!) {
  projectInvitations(projectReference: $projectReference) {
    data {
      id
      projectId
      email
      role
      createdAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List the invitations. Requires project.invites.read.

## Arguments

| Name               | Type   | Required | Description                                                  |
| ------------------ | ------ | -------- | ------------------------------------------------------------ |
| `projectReference` | ID!    | Yes      | Project UUID or slug. An inaccessible project is not\_found. |
| `limit`            | Int    |          | Invitations per page, 1 to 100; default 20.                  |
| `cursor`           | String |          | The previous page's pageInfo.endCursor.                      |

## Variables

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

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The ProjectInvitationPage! in data.projectInvitations. |

## 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 ProjectInvitations($projectReference: ID!) {\n  projectInvitations(projectReference: $projectReference) {\n    data {\n      id\n      projectId\n      email\n      role\n      createdAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "projectInvitations": {
      "data": [
        {
          "id": "string",
          "projectId": "string",
          "email": "user@example.com",
          "role": "admin",
          "createdAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
