Get Chat Message
Retrieves detailed information about a specific message within a chat, including content, files, model configuration, and demo URLs.
Usage
API Signature
Request
Path Parameters
The unique identifier of the chat containing the message. Provided as a path parameter.
The unique identifier of the message to retrieve. Provided as a path parameter.
Response
A unique identifier for the message.
Fixed value identifying this object as a message.
The main text content of the message.
The parsed content of the message as an array structure containing AST nodes. This is an experimental field that may change.
The ISO timestamp representing when the message was created.
The ISO timestamp representing when the message was last updated.
Indicates the format or category of the message, such as plain text or code.
Specifies whether the message was sent by the user or the assistant.
The reason why the message generation finished.
API URL to access this message via the API.
The ID of the parent message.
The ID of the chat to which this message belongs.
Find Chat Messages
Retrieves a list of all messages for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes message content, role, and type information.
Find Chat Versions
Retrieves a list of all versions (iterations) for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes version status and demo URLs.