# projectInvitation

```graphql
query ProjectInvitation($projectReference: ID!, $invitationId: ID!) {
  projectInvitation(projectReference: $projectReference, invitationId: $invitationId) {
    id
    projectId
    email
    role
    createdAt
  }
}
```

Return an invitation. Requires project.invites.read.

## Arguments

| Name               | Type | Required | Description                                                                                               |
| ------------------ | ---- | -------- | --------------------------------------------------------------------------------------------------------- |
| `projectReference` | ID!  | Yes      | Project UUID or slug.                                                                                     |
| `invitationId`     | ID!  | Yes      | Pending invitation ID in the selected project. An inaccessible or other-project invitation is not\_found. |

## Variables

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

## Responses

| Status | Description                                       |
| ------ | ------------------------------------------------- |
| 200    | The ProjectInvitation! in data.projectInvitation. |

## 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 ProjectInvitation($projectReference: ID!, $invitationId: ID!) {\n  projectInvitation(projectReference: $projectReference, invitationId: $invitationId) {\n    id\n    projectId\n    email\n    role\n    createdAt\n  }\n}",
  "variables": {
    "projectReference": "string",
    "invitationId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "projectInvitation": {
      "id": "string",
      "projectId": "string",
      "email": "user@example.com",
      "role": "admin",
      "createdAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
