Spaces
Fetch Space
Fetch space
get
/v1/space/{spaceId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
spaceIdstring* Required
The ID of the space to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.space.fetch(
spaceId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","contactId":"string"}The space was retrieved successfully