Skip to main content
This endpoint returns the most recent chat messages for a given flow. It supports pagination so you can fetch messages incrementally. Use this to:
  • Display chat history in your UI
  • Resume conversations
  • Audit onboarding interactions

Endpoint

Request headers

string
required
JWT access token for authentication.

Query parameters

string
required
Unique identifier for the chat flow.
integer
Page number to retrieve. Default: 1.
integer
Number of messages per page. Default: 10.

Response

array
List of chat messages.
integer
Current page number.
integer
Number of messages per page.
integer
Total number of pages available.
integer
Total number of messages.
boolean
Indicates if more pages are available.
boolean
Indicates if previous pages exist.

Example

Error responses

Messages include both user and system responses. Use the sender field to differentiate between them when rendering the chat UI.