BSG utilizes HTTP cookies (and similar or complementary technologies) to 1) make this website safe, functional, and accessible (through the use of mandatory cookies) and 2) understand how you use our website (through the use of optional cookies) in order to improve your experience and to provide you with personalized content.

The information in the cookie text files may be related to your personal preferences or your device and is intended to make the site operate according to your expectations. The information contained in cookies does not usually identify your identity directly but is helpful in providing you with a more personalized user experience.

In accordance with the requirements of the General Data Protection Regulation (GDPR) privacy and security law that governs how the personal data of individuals in the EU may be processed and transferred, we provide you the possibility to prohibit the use of certain types of cookies when you use our website.

Read our Cookie Notice and the Privacy Policy for detailed information on how BGS collects and uses cookies. Please note that prohibiting the use of certain types of cookies may affect your interaction with the website and limit the accessibility of services we offer you. Choose the appropriate category below to learn more and to disable cookies.

Accept All cookies*
*Recommended for comfortable use of the site
Accept only necessary cookies
Accept only selected cookies
Necessary cookies
Social media
Analytics
Marketing
Developer Docs
Number Intelligence

Get Viber status

The method allows obtaining information about the status of a Viber message sent by the user via the API.

To get Viber status, make a request to this URL:

GET https://api.bsg.world/rest/viber/{id}

Request parameters

Parameter Required Type Description
id Yes integer Message ID – a unique random identifier that is generated by the BSG platform. The entry id is passed in the /viber/create method.

or use alternative request:

GET https://api.bsg.world/rest/viber/reference/{reference}

Request parameters

Parameter Required Type Description
reference Yes integer External message ID. String up to 32 characters containing /a-zA-Z0-9/.

Response parameters

Parameter Type Description
msisdn string The phone number to which the message was sent.
reference string External message ID.
time_in datetime Date and time the message was created.
time_sent datetime Scheduled date and time of the message sending.
time_dr datetime Date and time the message was delivered.
status string Current Viber message status.
total price float Total cost of the Viber campaign.
currency string Currency of the user account, in which the cost of sending Viber is specified.
alt_route Specified if the Viber message was forwarded (cascaded) via SMS
channel string Channel to send the message.
id string The unique message ID.
status string Message status.
price float Message cost.

If request is successful, you will receive a response:


{
    "error": "0",
    "msisdn": "85267202829",
    "reference": "12erdgm9",
    "time_in": "2016-01-01 00:00:01",
    "time_sent": "2016-01-01 00:00:02",
    "time_dr": "2016-01-01 00:01:01",
    "status": "read",
    "price": "0.02",
    "currency": "EUR"
    "alt_route": [
    {
      "channel": "sms",
      "id": "string",
      "status": "scheduled",
      "price": "string"
    }
}

Interested in a special offer?

Ready to reach further?
Let’s talk

I agree to BSG privacy policy
Submit

Useful Materials

What Is Number Verifier — And Why It’s More Than Just an “HLR Lookup”

30% of SMS fail — not because of content, but numbers. Verify before you send.

10 Awesome Back-to-School Marketing Ideas 2025

The start of the school year: when parents trade in their summer margaritas for the

What Is CPaaS? Communications Platform as a Service

Talking to customers these days is more than just emails or phone calls. Businesses need