Contact Secrets
Authenticate Contact Secret
Authenticate contact secret
post
/v1/contact/{contactId}/secret/{secretId}/authenticate
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
contactIdstring* Required
The ID of the contact the secret belongs to
secretIdstring* Required
The ID of the secret to authenticate
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.contact.secret.authenticate(
contactId, secretId,{})
{"id":"string","url":"string"}
The contact secret is about to be authenticated