Retrieves a list of messages for a specific thread.
limit
parameter to specify the maximum number of messages per request, and the after
parameter as a cursor for pagination. The response includes a has_more
parameter to indicate if more results are available.
For detailed information on how pagination works, refer to the Threads API documentation.Your Langtail API Key
"<LANGTAIL_API_KEY>"
The ID of the thread to retrieve messages from.
The maximum number of threads to return. Default is 100.
A cursor for use in pagination. 'after' is a thread ID that defines your place in the list. For instance, if you make a list request and receive 100 threads, ending with thread 'xyz', your subsequent call can include after='xyz' in order to fetch the next page of the list. Pagination works the same as in the OpenAI API https://platform.openai.com/docs/api-reference/assistants/listAssistants.
The order of the messages. Default is 'asc' (oldest first). Use 'desc' for newest first.
asc
, desc
Successful response
The response is of type object
.