OpenAiChatMessages
Search OpenAiChatMessages
Search and list OpenAiChatMessage records with filtering, sorting, and pagination.
GET
Search OpenAiChatMessages
An OpenAiChatMessage is a single turn in an AI conversation — what the contact said, what the AI answered, a tool the AI ran, or a message an operator pushed into the thread. Messages belong to an AiChannelSession and share its ChatSession GUID, so filtering by conversation and ordering by creation time reproduces the transcript. This entity is read-only: turns are written by the AI pipeline as the conversation happens and are never edited afterwards.
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
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 location that owns this message, inherited from its conversation..
integer
Filter by iD of the platform user this message is attributed to. Set for messages exchanged inside an authenticated session; empty for anonymous web-chat and inbound email or WhatsApp contacts..
integer
Filter by iD of the conversation this message belongs to. Filter on it to read one conversation’s transcript in order..
string
Filter by display value for AiChannelSession.ExternalIdentifier..
integer
Filter by display value for AiChannelSession.Coworker.Id..
string
Filter by display value for AiChannelSession.Coworker.CoworkerType..
string
Filter by display value for AiChannelSession.Coworker.FullName..
string
Filter by display value for AiChannelSession.Coworker.MobilePhone..
string
Filter by display value for AiChannelSession.Coworker.LandLine..
string
Filter by display value for AiChannelSession.Coworker.BillingName..
string
Filter by display value for AiChannelSession.Coworker.CompanyName..
string
Filter by display value for AiChannelSession.Coworker.TeamNames..
integer
Filter by what this message was, beyond its role: Operator for ordinary AI or operator turns; OutboundCoworkerMessage and OutboundHelpDesk for AI replies delivered as a customer message or a help desk ticket; InboundCoworkerReply and InboundHelpDeskReply for the customer answering through those channels. Use it with the CoworkerMessage, HelpDeskMessage and HelpDeskComment links to show where a turn actually happened..
string
Filter by message body. User and assistant turns hold the text shown to people, in Markdown or HTML depending on channel; Tool turns hold a serialised tool result, and the assistant turn that requests tools holds a JSON array of tool calls rather than prose..
string
Filter by gUID of the conversation, matching AiChannelSession.ChatSession. Identical for every message in the same conversation..
string
Filter by which internal responder produced the message, such as CompleteWithTools, KbOpenAiResponder or ProactiveExecutionEngine. Useful for tracing why the AI answered the way it did; empty for messages that came from a person..
string
Filter by conversation role: User for the contact, Assistant for the AI, Tool for a tool result, System for prompt scaffolding, and operator-outbound for a message an operator sent into the thread. A transcript normally shows only User, Assistant and operator-outbound..
integer
Filter by feedback the recipient left on this answer through the members portal. Empty when nobody rated it..
string
Filter by channel this turn travelled on, stored as text and matching its conversation: Chat, Email, WhatsApp, Voice, CoworkerMessage or HelpDesk..
integer
Filter by iD of the customer message this turn was delivered as or came from, when the AI replied over the CoworkerMessage channel..
integer
Filter by iD of the help desk ticket this turn created or belongs to, set when the conversation was escalated to the help desk..
integer
Filter by iD of the help desk comment this turn came from, set when the customer or an operator replied on the escalated ticket..
Range Filters
integer
Filter by display value for AiChannelSession.Coworker.Id. greater than or equal to this value.
integer
Filter by display value for AiChannelSession.Coworker.Id. less than or equal to this value.
integer
Filter by feedback the recipient left on this answer through the members portal. Empty when nobody rated it. greater than or equal to this value.
integer
Filter by feedback the recipient left on this answer through the members portal. Empty when nobody rated it. 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.
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