Space Sites

Fetch Space Site

Fetch a space site

get
/v1/space/{spaceId}/site/{siteId}/fetch

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

spaceIdstring* Required

siteIdstring* Required

The ID of the site to retrieve

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.space.site.fetch(

spaceId, siteId
)
{
"alias":"string",
"name":"string",
"description":"string",
"meta":"object",
"id":"string",
"createdAt":"number",
"updatedAt":"number",
"spaceId":"string",
"domain":"string",
"prefix":"string",
"index":"string",
"notFound":"string"
}
The site was retrieved successfully