Channels
Channels are connected WhatsApp numbers โ business API or personal bridge. See Database Schema for the full column reference.
List Channels
const { data } = await sendhub
.from('channels')
.select('id, label, phone_number, channel_type, active, ai_delay_seconds, ai_confidence_threshold')
.eq('business_id', workspaceId)
.order('created_at')
Update Settings
await sendhub
.from('channels')
.update({
label: 'Support Line',
ai_delay_seconds: 15,
ai_confidence_threshold: 70,
ai_prompt_override: 'You are a support agent for Acme Corp...',
})
.eq('id', channelId)
Toggle Active
// Disable without deleting
await sendhub
.from('channels')
.update({ active: false })
.eq('id', channelId)
// Re-enable
await sendhub
.from('channels')
.update({ active: true })
.eq('id', channelId)
Channel Types
| Type | channel_type | How it works |
|---|---|---|
| Business | 'business' | WhatsApp Business API via Meta. Requires WABA ID and access token. |
| Personal | 'personal' | Connected via WhatsApp Device Link. Links via pairing code. |