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.
Parameters
Path Parameters
chatId string Required
The unique identifier of the chat to retrieve messages for. Provided as a path parameter.
Query Parameters
limit number
Specifies the maximum number of message records to return in a single response. Useful for paginating results when there are many messages.
cursor string
Base64 encoded cursor containing pagination data
Response
Response Body
object string Required
data any[] Required
Array items: string
pagination object Required
hasMore boolean Required
nextCursor string
nextUrl string
Send Message
Creates a new message in an existing chat. Triggers a model response using the provided prompt, with optional attachments and configuration settings.
Get Chat Message
Retrieves detailed information about a specific message within a chat, including content, files, model configuration, and demo URLs.