Conversation Messages

Delete Conversation Message

Delete a message

post
/v1/conversation/{conversationId}/message/{messageId}/delete

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 delete

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.message.delete(

conversationId, messageId,
{}
)
{
"id":"string"
}
The message was deleted successfully