WhatsApp Integrations
Fetch Whats App Integration
Fetch a whatsappIntegration
get
/v1/integration/whatsapp/{whatsappIntegrationId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
whatsappIntegrationIdstring* Required
The ID of the WhatsApp integration to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.integration.whatsapp.fetch(
whatsappIntegrationId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","verifyToken":"string","phoneNumberId":"string","contactCollection":"boolean","sessionDuration":"number","attachments":"boolean","botId":"string"}
The WhatsApp integration was retrieved successfully