Skip to main content

Retrieve Your Application Info

GET https://chatapi.viber.com/pa/get_account_info

Introduction

This endpoint allows you to retrieve your application info.

Request

Headers


Content-Type: application/json
Authorization: X-Viber-Auth-Token: YOUR_AUTHENTICATION_TOKEN

Example
curl -X GET https://chatapi.viber.com/pa/get_account_info -H "X-Viber-Auth-Token: YOUR_AUTHENTICATION_TOKEN"

Response

Attributes


NameTypeDescriptionNotes
statusintegerThe status of the request.0 for success. In case of error, an error code will be returned. See common errors for more information
status_messagestringThe status message of the request.ok for sucess. In case of error, one of the following errors will be returned: invalidUrl, invalidAuthToken, badData, missingData and failure. See common errors for more information
idstringThe unique id of the bot.
namestringThe name of the bot.Max 75 characters
uristringThe uri of the bot.
iconstringThe icon of the bot.jpeg, max size of 521KB. Recommended dimensions 720x720
backgroundstringThe background of the bot.jpeg, max size of 512KB. Max dimensions 1920x1920
categorystringThe category of the bot.
subcategorystringThe subcategory of the bot.
locationobjectThe location of the bot.Allow the users to find the bot close to their location
CountrystringThe country of the bot owner.2 letters country code - ISO Aplha-2
webhookstringThe webhook of the bot.
event_typesarrayThe evets that the bot is registred to.
subscribers_countintegerThe number of subscribers of the bot.
membersarray of objectsThe list of people who have access for managing the bot. each member object has an id, name, avatar and roledeprecated

Headers


Content-Type: application/json

Body


{
"status":0,
"status_message":"ok",
"id":"pa:75346594275468546724",
"name":"account name",
"uri":"accountUri",
"icon":"http://example.com",
"background":"http://example.com",
"category":"category",
"subcategory":"sub category",
"location":{
"lon":0.1,
"lat":0.2
},
"country":"UK",
"webhook":"https://my.site.com",
"event_types":[
"delivered",
"seen"
],
"subscribers_count":35,
"members":[
{
"id":"01234567890A=",
"name":"my name",
"avatar":"http://example.com",
"role":"admin"
}
]
}