Policys

Fetch Policy

Fetch a policy

get
/v1/policy/{policyId}/fetch

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

policyIdstring* Required

The ID of the policy to retrieve

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.policy.fetch(

policyId
)
{
"name":"string",
"description":"string",
"meta":"object",
"blueprintId":"string",
"type":"string",
"config":"object"
}
The policy was fetched successfully