List invitations across projects

invitations(limit: Int, cursor: String, sortBy: InvitationSortBy, sortOrder: InvitationSortOrder): InvitationPage!

Arguments

ArgumentTypeRequiredDescription
limitIntNoInvitations per page, 1 to 100; default 20.
cursorStringNoThe previous page's pageInfo.endCursor, with the same sort.
sortByInvitationSortByNoSort field; default created_at (missing values last). Ties break by id ascending.
sortOrderInvitationSortOrderNoSort direction; default desc.

Response

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

FieldTypeDescription
data[InvitationListItem!]!Pending invitations across projects the caller owns, with the owning project attached to each invitation. Invitations for people who are already members are excluded. Requires a user session; API keys and service accounts are unauthenticated.
pageInfoPageInfo!

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

Example

query.graphql
query Invitations($limit: Int, $cursor: String, $sortBy: InvitationSortBy, $sortOrder: InvitationSortOrder) {  invitations(limit: $limit, cursor: $cursor, sortBy: $sortBy, sortOrder: $sortOrder) {    data {      id      projectId      createdAt      email      role    }    pageInfo {      hasNextPage      endCursor      hasPreviousPage      startCursor    }  }}
variables.json
{}