Skip to content

Get a Viber bot

GET
/v1/Accounts/{auth_id}/Integrations/Viber/bots/{bot_id}
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.

auth_id
required
string

Auth ID of the authenticated account

bot_id
required
string

Viber bot id (bot_id; for a bot connected through the Channels API, the connection’s provider_sender)

OK

Media type application/json
object
data

Data is the bot.

object
account_id

AccountID is the Auth ID of the account that handles the bot’s conversations.

string
auth_token

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).

string
bot_avatar

BotAvatar is the URL of the bot’s avatar image, if set.

string
bot_id

BotID is the bot’s id: Viber’s own id for a bot connected through the Channels API (the connection’s provider_sender).

string
bot_name

BotName is the sender name shown in Viber (up to 28 characters).

string
created_at

CreatedAt is when the bot was stored (RFC 3339, UTC).

string
metadata

Metadata routes the bot’s conversations.

object
aiAgentId

AIAgentID is the AI agent that answers when aiEnabled is true.

string
aiEnabled

AIEnabled hands conversations to the AI agent aiAgentId first.

boolean
applicationId

ApplicationID is the SIPRTC application that handles the bot’s messages.

integer
queueSid

QueueSID is the contact-centre queue, if any.

string
workflowSid

WorkflowSID is the contact-centre workflow, if any.

string
workspaceSid

WorkspaceSID is the contact-centre workspace conversations are routed to, if any.

string
parent_auth_id

ParentAuthID is the Auth ID of that account’s parent, which owns the webhook; empty for a top-level account.

string
updated_at

UpdatedAt is when the bot last changed (RFC 3339, UTC).

string
webhook_sid

WebhookSid is the platform webhook Viber calls back for this bot (a UUID).

string
message

Message is “Viber bot updated successfully” on an update; absent on a read.

string
status

Status is “success”.

string

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

Media type application/json
string

Example generated

example

No such bot visible to this account (message: viber bot not found)

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}

Storage error or a failed account lookup

Media type application/json
object
message

Message says what went wrong.

string
status

Status is always “failed” on an error (some validation errors omit it).

string

Example

{
"message": "error message",
"status": "failed"
}