Admin API / Queries

chatChannels

Channels the caller can read. Callers with ADMIN or higher get every channel, except that only an OWNER gets a channel whose read role is OWNER. query matches the name. Defaults to POSITION, ascending. first outside 1 to 100 (1 to 10,000 for Soho) or a malformed after gives a thrown VALIDATION_ERROR. Reads the first 1,000 rows (1,000,000 for Soho): an after at the ceiling gives a thrown PAGE_OUT_OF_RANGE.

Requires a client key with one of these scopes: admin:chat:readRequires this member role or higher: SELLER
chatChannels(
  after: String
  first: Int
  query: String
  sort: ChatChannelSortInput
  where: ChatChannelWhereInput
): ChatChannelConnection!

Arguments

ArgumentTypeDescription
afterStringReturn items after this cursor. Omit for the first page.
firstIntMaximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho).
queryStringText to find in the name, case-insensitive. Empty or blank matches every channel.
sortChatChannelSortInputSort order. Defaults to POSITION, ascending.
whereChatChannelWhereInputFilters to narrow the list.

Return type

ChatChannelConnection!