โ† API reference
Query / aiml

listChatSessions

List chat sessions with pagination and filtering. Requires chatsession:list permission.

Arguments

firstInt

Number of items from the start

lastInt

Number of items from the end

afterString

Cursor to start after

beforeString

Cursor to start before

Filter criteria

Sort order

Returns ChatSessionConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete ChatSessionConnection type

Explore in a view

AI and ML
View exact SDL
"""
List chat sessions with pagination and filtering. Requires chatsession:list permission.
"""
listChatSessions(
  """Number of items from the start"""
  first: Int
  """Number of items from the end"""
  last: Int
  """Cursor to start after"""
  after: String
  """Cursor to start before"""
  before: String
  """Filter criteria"""
  filter: ChatSessionFilterInput
  """Sort order"""
  sort: ChatSessionSortInput
): ChatSessionConnection! @topic(names: ["aiml"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.