Portals

Fetch Portal

Fetch a portal

get
/v1/portal/{portalId}/fetch

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

portalIdstring* Required

The ID of the portal to retrieve

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.portal.fetch(

portalId
)
{
"name":"string",
"description":"string",
"meta":"object",
"id":"string",
"createdAt":"number",
"updatedAt":"number",
"blueprintId":"string",
"slug":"string",
"config":"object"
}
The portal was retrieved successfully