Get a Viber bot
const url = 'https://api.siprtc.io/v1/Accounts/example/Integrations/Viber/bots/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siprtc.io/v1/Accounts/example/Integrations/Viber/bots/example \ --header 'Authorization: Basic <credentials>'Returns one Viber bot with its routing metadata; the bot’s Viber token is masked. Bots are created and deleted through the Channels API (POST/DELETE …/Integrations/Channels with channel viber). Authentication: HTTP Basic with the account’s Auth ID and Auth Secret. Access is by the authenticated account, not the path: a bot is visible to the account that handles it (account_id) and to that account’s parent (parent_auth_id); for anyone else it is 404. {auth_id} should be the authenticated account’s Auth ID.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of the authenticated account
Viber bot id (bot_id; for a bot connected through the Channels API, the connection’s provider_sender)
Responses
Section titled “ Responses ”OK
object
Data is the bot.
object
AccountID is the Auth ID of the account that handles the bot’s conversations.
AuthToken is the bot’s Viber token, masked in every response (first 6 and last 4 characters of the stored value, or [REDACTED] when short).
BotAvatar is the URL of the bot’s avatar image, if set.
BotID is the bot’s id: Viber’s own id for a bot connected through the Channels API (the connection’s provider_sender).
BotName is the sender name shown in Viber (up to 28 characters).
CreatedAt is when the bot was stored (RFC 3339, UTC).
Metadata routes the bot’s conversations.
object
AIAgentID is the AI agent that answers when aiEnabled is true.
AIEnabled hands conversations to the AI agent aiAgentId first.
ApplicationID is the SIPRTC application that handles the bot’s messages.
QueueSID is the contact-centre queue, if any.
WorkflowSID is the contact-centre workflow, if any.
WorkspaceSID is the contact-centre workspace conversations are routed to, if any.
ParentAuthID is the Auth ID of that account’s parent, which owns the webhook; empty for a top-level account.
UpdatedAt is when the bot last changed (RFC 3339, UTC).
WebhookSid is the platform webhook Viber calls back for this bot (a UUID).
Message is “Viber bot updated successfully” on an update; absent on a read.
Status is “success”.
Example
{ "data": { "account_id": "AC000000000000000000", "auth_token": "enc:v1...AbCd", "bot_avatar": "https://example.com/avatar.png", "bot_id": "pa:5000000000000000001", "bot_name": "Acme Support", "created_at": "2026-11-20T10:15:00Z", "metadata": { "aiAgentId": "", "aiEnabled": false, "applicationId": 1234, "queueSid": "WQ00000000000000000000000000000000", "workflowSid": "WW00000000000000000000000000000000", "workspaceSid": "WS00000000000000000000000000000000" }, "parent_auth_id": "AC000000000000000099", "updated_at": "2026-11-20T10:15:00Z", "webhook_sid": "9f1c2d3e-0000-4000-8000-000000000002" }, "message": "Viber bot updated successfully", "status": "success"}Missing or invalid credentials; the body is the JSON string Authentication failed
Example generated
exampleNo such bot visible to this account (message: viber bot not found)
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}Storage error or a failed account lookup
object
Message says what went wrong.
Status is always “failed” on an error (some validation errors omit it).
Example
{ "message": "error message", "status": "failed"}