List invitations

projectInvitations(projectReference: ID!, limit: Int, cursor: String): ProjectInvitationPage!

Requires project.invites.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID or slug. An inaccessible project is not_found.
limitIntNoInvitations per page, 1 to 100; default 20.
cursorStringNoThe previous page's pageInfo.endCursor.

Response

Returns ProjectInvitationPage!. Open the type for its fields and nested types.

FieldTypeDescription
data[ProjectInvitation!]!Pending invitations in the selected project, newest first.
pageInfoPageInfo!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ProjectInvitations($projectReference: ID!, $limit: Int, $cursor: String) {
  projectInvitations(projectReference: $projectReference, limit: $limit, cursor: $cursor) {
    data {
      id
      projectId
      createdAt
      email
      role
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}