Files
Sync File
Sync file
post
/v1/file/{fileId}/sync
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
fileIdstring* Required
The ID of the file to sync
Request Body * Required
Request Body Schema: application/json
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.file.sync(
fileId,{})
{"id":"string"}
The file was synced successfully