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: SELLERchatMessages(
after: String
first: Int
sort: ChatMessageSortInput
where: ChatMessageWhereInput
): ChatMessageConnection!Arguments
| Argument | Type | Description |
|---|---|---|
after | String | Return messages after this cursor. Omit for the first page. |
first | Int | Maximum number of messages to return. Defaults to 20, capped at 100 (10,000 for Soho). |
sort | ChatMessageSortInput | Sort order. Defaults to createdAt descending. |
where | ChatMessageWhereInput | Filters to narrow the list. |