Conversation Messages

Fetch Conversation Message

Fetch conversation message

get
/v1/conversation/{conversationId}/message/{messageId}/fetch

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

conversationIdstring* Required

The ID of the conversation containing the message

messageIdstring* Required

The ID of the message to retrieve

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.conversation.message.fetch(

conversationId, messageId
)
{
"name":"string",
"description":"string",
"meta":"object",
"id":"string",
"createdAt":"number",
"updatedAt":"number",
"type":"string",
"text":"string"
}
The message was fetched successfully