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.
Path parameters
The ID of the chat completion to retrieve messages from.
Query parameters
Identifier for the last message from the previous pagination request.
Number of messages to retrieve.
Sort order for messages by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
Response
A list of messages
Changes
Changed in 1 of the 31 revisions of this API.2
- ○
added the optional property
data/items/allOf[subschema #2]/content_parts/anyOf[subschema #1]/items/anyOf[subschema #1: Text content part]/prompt_cache_breakpointto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/allOf[subschema #2]/content_parts/anyOf[subschema #1]/items/anyOf[subschema #2: Image content part]/prompt_cache_breakpointto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○