OpenAiChatMessages
Search OpenAiChatMessages
Search and list OpenAiChatMessage records with filtering, sorting, and pagination.
GET
Search OpenAiChatMessages
An OpenAiChatMessage records a message in an AI-powered chat conversation. Each message tracks the content, the associated customer or operator, and the action type.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the OpenAiChatMessage-List role.Enums
eOpenAiChatMessageType — Action values
eOpenAiChatMessageType — Action values
| Value | Name |
|---|---|
| 1 | Operator |
Query Parameters
Pagination & Sorting
The page number to retrieve.
The number of records per page.
The property name to sort results by (e.g.
Name, CreatedOn).Sort direction.
0 for ascending, 1 for descending.Filters
Filter by iD of the business linked to this record.
Filter by iD of the user linked to this record.
Filter by iD of the AI channel session linked to this message. Sessions group all messages in a conversation and link it to a specific user and AI channel (e.g. email, chat, WhatsApp).
Filter by external identifier of the AI channel session linked to this message. Email address for email sessions, phone number for WhatsApp, etc..
Filter by iD of the customer linked to the AI channel session.
Filter by the type of the customer linked to the AI channel session (e.g. Individual or Company).
Filter by full name of the customer linked to the AI channel session.
Filter by mobile phone number of the customer linked to the AI channel session.
Filter by landline phone number of the customer linked to the AI channel session.
Filter by billing name of the customer linked to the AI channel session.
Filter by company name of the customer linked to the AI channel session (if the customer is a company).
Filter by comma-separated list of team names that the customer linked to the AI channel session belongs to.
Filter by the action value for this open ai chat message.
Filter by the content value for this open ai chat message.
Filter by the chat session value for this open ai chat message.
Filter by display name of the linked responder (read-only).
Filter by the chat message role value for this open ai chat message.
Filter by the rating value for this open ai chat message.
Filter by the AI channel through which this message was sent (e.g. Email, Chat, WhatsApp).
Range Filters
Filter by the rating value for this open ai chat message greater than or equal to this value.
Filter by the rating value for this open ai chat message less than or equal to this value.
Filter records created on or after this date. Format:
YYYY-MM-DDTHH:mm.Filter records created on or before this date. Format:
YYYY-MM-DDTHH:mm.Filter records updated on or after this date. Format:
YYYY-MM-DDTHH:mm.Filter records updated on or before this date. Format:
YYYY-MM-DDTHH:mm.Code Examples
Simple listing
Filtering by Content
Range filters
Response
200
The list of OpenAiChatMessage records matching the query. See the Get one OpenAiChatMessage endpoint for the full list of properties returned for each record.
Current page number.
Number of records per page.
The field used for sorting.
The sort direction (
0 = ascending, 1 = descending).Index of the first item on the current page.
Index of the last item on the current page.
Total number of matching records across all pages.
Total number of pages.
Whether there is a next page of results.
Whether there is a previous page of results.
Example Response
Search OpenAiChatMessages