Portals
Create Portal
Create portal
post
/v1/portal/create
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Request Body * Required
Request Body Schema: application/json
namestring
The associated name
descriptionstring
The associated description
metaobject
Meta data information
blueprintIdstring
The ID of the blueprint
slugstring
The slug of the portal
configobject
The config of the portal
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.portal.create(
{)"name":"string","description":"string","meta":"object","blueprintId":"string","slug":"string",}"config":"object"
{"id":"string"}The portal was created successfully