Admin API / Queries

chatMessages

Channel messages that the caller wrote or can moderate, without deleted messages and without messages past the channel's retention. Defaults to createdAt descending; ties sort by channel, then by sequence number. first outside 1 to 100 (1 to 10,000 for Soho) or an after that this list did not issue for the same sort gives a thrown VALIDATION_ERROR. Keyset cursors; no row ceiling.

Requires a client key with one of these scopes: admin:moderation:readRequires this member role or higher: SELLER
chatMessages(
  after: String
  first: Int
  sort: ChatMessageSortInput
  where: ChatMessageWhereInput
): ChatMessageConnection!

Arguments

ArgumentTypeDescription
afterStringReturn messages after this cursor. Omit for the first page.
firstIntMaximum number of messages to return. Defaults to 20, capped at 100 (10,000 for Soho).
sortChatMessageSortInputSort order. Defaults to createdAt descending.
whereChatMessageWhereInputFilters to narrow the list.

Return type

ChatMessageConnection!