Portals
Delete Portal
Delete a portal
post
/v1/portal/{portalId}/delete
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
portalIdstring* Required
The ID of the portal 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.portal.delete(
portalId,{})
{"id":"string"}The portal was deleted successfully