Contacts
Fetch Contact
Fetch contact
get
/v1/contact/{contactId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
contactIdstring* Required
The ID of the contact to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.contact.fetch(
contactId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","fingerprint":"string","email":"string","phone":"string","nick":"string","verifiedAt":"number"}
The contact was retrieved successfully