getChat()
getChat(
chatId:string):Promise<ManagedChat>
Defined in: packages/core/src/index.ts:2530
Get a chat by ID
Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string | The unique identifier of the chat |
Returns
Promise<ManagedChat>
The managed chat object
Throws
401 - Not authenticated
Throws
404 - Chat not found
Example
import { getChat } from "@cpod/sdk";
const chat = await getChat("chat-123");
console.log(`Chat: ${chat.title}`);