Skip to main content
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

Query Parameters

Pagination & Sorting

integer
default:"1"
The page number to retrieve.
integer
default:"25"
The number of records per page.
string
The property name to sort results by (e.g. Name, CreatedOn).
integer
Sort direction. 0 for ascending, 1 for descending.

Filters

integer
Filter by iD of the business linked to this record.
integer
Filter by iD of the user linked to this record.
integer
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).
string
Filter by external identifier of the AI channel session linked to this message. Email address for email sessions, phone number for WhatsApp, etc..
string
Filter by iD of the customer linked to the AI channel session.
string
Filter by the type of the customer linked to the AI channel session (e.g. Individual or Company).
string
Filter by full name of the customer linked to the AI channel session.
string
Filter by mobile phone number of the customer linked to the AI channel session.
string
Filter by landline phone number of the customer linked to the AI channel session.
string
Filter by billing name of the customer linked to the AI channel session.
string
Filter by company name of the customer linked to the AI channel session (if the customer is a company).
string
Filter by comma-separated list of team names that the customer linked to the AI channel session belongs to.
integer
Filter by the action value for this open ai chat message.
string
Filter by the content value for this open ai chat message.
string
Filter by the chat session value for this open ai chat message.
string
Filter by display name of the linked responder (read-only).
string
Filter by the chat message role value for this open ai chat message.
integer
Filter by the rating value for this open ai chat message.
string
Filter by the AI channel through which this message was sent (e.g. Email, Chat, WhatsApp).

Range Filters

integer
Filter by the rating value for this open ai chat message greater than or equal to this value.
integer
Filter by the rating value for this open ai chat message less than or equal to this value.
string
Filter records created on or after this date. Format: YYYY-MM-DDTHH:mm.
string
Filter records created on or before this date. Format: YYYY-MM-DDTHH:mm.
string
Filter records updated on or after this date. Format: YYYY-MM-DDTHH:mm.
string
Filter records updated on or before this date. Format: YYYY-MM-DDTHH:mm.

Code Examples

Simple listing

Filtering by Content

Range filters

Response

200

OpenAiChatMessage[]
The list of OpenAiChatMessage records matching the query. See the Get one OpenAiChatMessage endpoint for the full list of properties returned for each record.
Partial records — The listing endpoint returns a summary representation of each OpenAiChatMessage. The following fields are not populated in the Records[] response: Action.To get all fields, fetch the full record using the Get one OpenAiChatMessage endpoint.Important for updates: When updating a record via PUT, always retrieve the full record with a GET request first, apply your changes to that complete data, and then send the updated record. Do not use data from a listing response as the base for a PUT request, as missing fields may be unintentionally cleared.
integer
Current page number.
integer
Number of records per page.
string
The field used for sorting.
integer
The sort direction (0 = ascending, 1 = descending).
integer
Index of the first item on the current page.
integer
Index of the last item on the current page.
integer
Total number of matching records across all pages.
integer
Total number of pages.
boolean
Whether there is a next page of results.
boolean
Whether there is a previous page of results.
Example Response