List Messages

Get the chat history for a thread. This endpoint retrieves the message history for a thread. You can optionally filter messages by date range using `start` and `end` parameters, and paginate results using `start_index` and `limit_num`. If no date filters are provided, all messages in the thread are returned. The response includes all messages in chronological order, with user messages and AI responses clearly identified. For example, use with start_index=0&limit_num=25 to get the latest 25 messages.

Authentication

x-api-keystring
Enter your API key here.

Path parameters

thread_idstringRequired

Query parameters

startdatetime or nullOptional
enddatetime or nullOptional
start_indexintegerOptionalDefaults to 0
limit_numinteger or nullOptional

Response

Successful Response
messageslist of objects
total_message_countinteger or null
start_indexinteger or nullDefaults to 0

Errors