list_ai_chat_messages

AIApi.list_ai_chat_messages(chat_id, role_id, sortby=None, sortorder=None, limit=None, offset=None, filter_expression=None, projection_expression=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)[source]

List chat messages

Returns a paginated list of messages for a specific chat

Parameters:
  • chat_id (str) – Chat ID (required)

  • role_id (str) – User role id (required)

  • sortby (str) – Field to sort by

  • sortorder (str) – Sort order

  • limit (int) – Maximum number of items to return

  • offset (int) – Number of items to skip (1-based indexing)

  • filter_expression (str) – Filter expression for messages

  • projection_expression (str) – Comma-separated list of fields to include in response

  • _request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

  • _content_type (str, Optional) – force content-type for the request.

  • _headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.

  • _host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.

Return type:

ChatMessagesResponse

Returns:

Returns the result object.