Tokens

Revoke Current Token

Revoke the API key authenticating this request

post
/v1/token/revoke

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Request Body * Required

Request Body Schema: application/json

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

token: process.env.CHATBOTKIT_API_TOKEN!

})

const response = await cbk.token.revoke(

{}
)
{
"revoked":"boolean"
}
The presented stored API key has been removed