Get invitation

projectInvitation(projectReference: ID!, invitationId: ID!): ProjectInvitation!

Requires project.invites.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceID!YesProject UUID or slug.
invitationIdID!YesPending invitation ID in the selected project. An inaccessible or other-project invitation is not_found.

Response

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

FieldTypeDescription
idID!
projectIdID!
emailString!
roleProjectInvitationRole!
createdAtDateTimeWhen the invitation was created; null if not recorded.

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

Example

graphql
query ProjectInvitation($projectReference: ID!, $invitationId: ID!) {
  projectInvitation(projectReference: $projectReference, invitationId: $invitationId) {
    id
    projectId
    createdAt
    email
    role
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "invitationId": "00000000-0000-4000-8000-000000000001"
}