List account invitations

accountInvitations(input: AccountInvitationListInput!): AccountInvitationList!

Requires account.invitations.read.

Arguments

ArgumentTypeRequired
inputAccountInvitationListInput!Yes

Input fields

input

AccountInvitationListInput

FieldTypeRequiredDescription
accountIdID!Yes
cursorStringNo
limitIntNo
statusStringNoInvitation status filter. Defaults to pending when omitted.

Response

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

FieldTypeDescription
data[AccountInvitation!]!Account invitations, newest first, filtered by status. Pending is the default. Acceptance tokens are never included.
pageInfoAccountPagination!

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

Example

graphql
query AccountInvitations($input: AccountInvitationListInput!) {
  accountInvitations(input: $input) {
    data {
      id
      status
      createdAt
      acceptedByUserId
      accountId
    }
    pageInfo {
      first
      next
      prev
      self
    }
  }
}
json
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001"
  }
}