# invitations

```graphql
query Invitations {
  invitations {
    data {
      id
      projectId
      email
      role
      createdAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List invitations across projects.

## Arguments

| Name        | Type                | Required | Description                                                                                                      |
| ----------- | ------------------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| `limit`     | Int                 |          | Invitations per page, 1 to 100; default 20.                                                                      |
| `cursor`    | String              |          | The previous page's pageInfo.endCursor, with the same sort.                                                      |
| `sortBy`    | InvitationSortBy    |          | Sort field; default created\_at (missing values last). Ties break by id ascending. One of `created_at`, `email`. |
| `sortOrder` | InvitationSortOrder |          | Sort direction; default desc. One of `asc`, `desc`.                                                              |

## Responses

| Status | Description                              |
| ------ | ---------------------------------------- |
| 200    | The InvitationPage! in data.invitations. |

## 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 Invitations {\n  invitations {\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}"
}'
```

## Example response

```json
{
  "data": {
    "invitations": {
      "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"
      }
    }
  }
}
```
