Chat
Get chat messages
Get the messages in a stored chat completion. Only Chat Completions that have been created with the store parameter set to true will be returned.
get/chat/completions/{completion_id}/messages
Path parameters
completion_idstring required
The ID of the chat completion to retrieve messages from.
Query parameters
afterstring
Identifier for the last message from the previous pagination request.
limitinteger
Number of messages to retrieve.
order'asc' | 'desc'
Sort order for messages by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
Response
A list of messages