Channels
Connect messaging channels (Telegram, Viber) so visitors can chat with your bot from those apps. Authentication required.
GET
/api/v1/sites/{id}/channels AuthList connected channels for a site.
Response
{ "success": true, "channels": [ { "id": 1, "type": "telegram", "is_active": true, "bot_username": "acme_bot" } ] }POST
/api/v1/sites/{id}/channels/telegram AuthConnect a Telegram bot (token from @BotFather).
Request body
{ "bot_token": "123456:ABC-DEF…" }Response
{ "success": true, "channel": { … } }POST
/api/v1/sites/{id}/channels/viber AuthConnect a Viber bot (token from partners.viber.com).
Request body
{ "auth_token": "…" }Response
{ "success": true, "channel": { … } }PUT
/api/v1/sites/{id}/channels/{channelId} AuthUpdate a channel (is_active, show_on_site).
Request body
{ "is_active": false }Response
{ "success": true, "message": "Channel updated" }DELETE
/api/v1/sites/{id}/channels/{channelId} AuthDisconnect a channel.
Response
{ "success": true, "message": "Channel disconnected" }POST
/api/v1/channels/telegram-standalone AuthConnect a Telegram bot as a standalone project (auto-creates a site). Plan-limited.
Request body
{ "bot_token": "123456:ABC-DEF…" }Response
{ "success": true, "site": { … } }POST
/api/v1/sites/{id}/channels/telegram-business AuthConnect a bot to the owner personal Telegram account (Telegram Business). Requires Telegram Premium and Business Mode enabled in @BotFather.
Request body
{ "bot_token": "123456:ABC-DEF…", "title": "Sales" }Response
{ "success": true, "channel": { … }, "next_steps": [ … ] }POST
/api/v1/channels/telegram-business-standalone AuthSame as above for an owner with no website: auto-creates a project and seeds the default CRM funnel.
Request body
{ "bot_token": "123456:ABC-DEF…" }Response
{ "success": true, "site": { … }, "next_steps": [ … ] }