Spaces
Create Space
Create a new space
post
/v1/space/create
Description
Create a new space with the given parameters.
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
contactIdstring
The contact associated with the space
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.space.create(
{)"name":"string","description":"string","meta":"object",}"contactId":"string"
{"id":"string"}The space was created successfully