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": { … } }