Vexar API

Channels

Connect messaging channels (Telegram, Viber) so visitors can chat with your bot from those apps. Authentication required.

GET /api/v1/sites/{id}/channels Auth

List 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 Auth

Connect a Telegram bot (token from @BotFather).

Request body
{ "bot_token": "123456:ABC-DEF…" }
Response
{ "success": true, "channel": { … } }
POST /api/v1/sites/{id}/channels/viber Auth

Connect a Viber bot (token from partners.viber.com).

Request body
{ "auth_token": "…" }
Response
{ "success": true, "channel": { … } }
PUT /api/v1/sites/{id}/channels/{channelId} Auth

Update 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} Auth

Disconnect a channel.

Response
{ "success": true, "message": "Channel disconnected" }
POST /api/v1/channels/telegram-standalone Auth

Connect a Telegram bot as a standalone project (auto-creates a site). Plan-limited.

Request body
{ "bot_token": "123456:ABC-DEF…" }
Response
{ "success": true, "site": { … } }