Conversations
Fetch Conversation
Fetch conversation
get
/v1/conversation/{conversationId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
conversationIdstring* Required
The ID of the conversation to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.conversation.fetch(
conversationId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","contactId":"string","taskId":"string","botId":"string"}
The conversation was retrieved successfully