Partners

Delete Partner User Context

Delete a partner user context

post
/v1/partner/user/{userId}/context/{contextId}/delete

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

userIdstring* Required

The ID of the partner user

contextIdstring* Required

The ID of the context 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.partner.user.context.delete(

userId, contextId,
{}
)
{
"id":"string"
}
The context was deleted successfully