Partners
Create Partner User Token
Create partner user token
post
/v1/partner/user/{userId}/token/create
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
userIdstring* Required
The ID of the user
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.partner.user.token.create(
userId,{})
{"id":"string","token":"string","createdAt":"number"}
The user token was created successfully