Get messages from a project chat
The unique identifier of the project
The unique identifier of the chat
Array of chat messages
401 - Not authenticated
404 - Project or chat not found
import { getChatMessages } from "@cpod/sdk";const messages = await getChatMessages("project-123", "chat-456");messages.forEach(msg => { console.log(`${msg.role}: ${msg.content}`);}); Copy
import { getChatMessages } from "@cpod/sdk";const messages = await getChatMessages("project-123", "chat-456");messages.forEach(msg => { console.log(`${msg.role}: ${msg.content}`);});
Get messages from a project chat