listChats()
listChats():
Promise<ManagedChat[]>
Defined in: packages/core/src/index.ts:2507
List all chats for the current user
Returns
Promise<ManagedChat[]>
Array of managed chat objects
Throws
401 - Not authenticated
Example
import { listChats } from "@cpod/sdk";
const chats = await listChats();
chats.forEach(chat => {
console.log(`${chat.title} - ${chat.message_count} messages`);
});