Skip to main content

listProjectChats()

listProjectChats(projectId: string): Promise<ProjectChat[]>

Defined in: packages/core/src/index.ts:2174

List all chats within a project

Parameters

ParameterTypeDescription
projectIdstringThe unique identifier of the project

Returns

Promise<ProjectChat[]>

Array of project chats

Throws

401 - Not authenticated

Throws

404 - Project not found

Example

import { listProjectChats } from "@cpod/sdk";

const chats = await listProjectChats("project-123");
chats.forEach(chat => {
console.log(`${chat.title} - ${chat.message_count} messages`);
});