Secrets

Verify Secret

Verify secret

post
/v1/secret/{secretId}/verify

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

secretIdstring* Required

The ID of the secret to be verified

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.secret.verify(

secretId,
{}
)
{
"id":"string",
"status":"string",
"action":""
}
The secret was verified successfully