Policys
Fetch Policy
Fetch policy
get
/v1/policy/{id}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
idstring* Required
The ID of the policy to fetch
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.policy.fetch(
id)
{"name":"string","description":"string","meta":"object","blueprintId":"string","type":"string","config":"object"}The policy was fetched successfully