Manage chat conversations, messages, and prompts.
Get chat conversation with paginated messages
/organizations/{organizationId}/projects/{projectId}/apps/chat/{appId}/conversations/{conversationId}Retrieve a chat conversation with cursor-based paginated messages. Without a cursor, returns the most recent messages (up to limit). Use direction=older with cursor/cursorId to load history.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: conversation } = await gc.chat.getChatConversation({ organizationId: "org_123", projectId: "proj_123", appId: "app_123", conversationId: "conv_123"});Get all chat conversations
/organizations/{organizationId}/projects/{projectId}/apps/chat/{appId}/conversationsList all chat conversations for a given chat app. Returns a paginated list of conversations with their IDs, titles, visitor IDs, and timestamps. Supports search filtering by conversation title or visitor ID. Results are ordered by most recently updated first. This is an admin-only endpoint used to review and manage all customer chat conversations.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: conversations } = await gc.chat.listChatConversations({ organizationId: "org_123", projectId: "proj_123", appId: "app_123"});