Conversations
Receive Conversation Message
Receive a conversation response
post
/v1/conversation/{conversationId}/receive
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
conversationIdstring* Required
The ID of the conversation to receive message from
Request Body * Required
Request Body Schema: application/json
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.conversation.receive(
conversationId,{})
{"id":"string","text":"string","usage":{"token":"number"}}
The message was received successfully