Skip to content

GetAccountSettings#

Beta version

The functionality is in beta. Features may change and may also work unstably.

The method returns the data of the Instagram account authorized on the instance.

The method uses the limits on the number of requests per second.

Request#

To get the account data, you have to execute a request at:

GET
{{apiUrl}}/waInstance{{idInstance}}/getAccountSettings/{{apiTokenInstance}}

For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.

Response#

Response parameters#

Field Type Description
avatar string The link to the account picture. An empty string means there is no picture
stateInstance string The instance state
chatId string The numeric identifier of the account
username string The username of the account with the @ prefix
historySyncProgress integer The progress of the background download of the chat history in percent: from 0 to 100

Response body example#

{
    "avatar": "https://instagram.ftse3-2.fna.fbcdn.net/v/t51.2885-19/503715707_17847415224494060_4153097218612589587_n.jpg?efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby41MDAuYzIifQ&_nc_ht=instagram.ftse3-2.fna.fbcdn.net&_nc_cat=108&_nc_oc=Q6cZ2gFL6Cbg0eZHot1pIJe_DLTlL3RQ4SMT9v29moU05FAHtYE8PxoVRmbg916qC6BN5Cc&_nc_ohc=57LGpdTzed4Q7kNvwG3eQG0&_nc_gid=LhA7uRwfqKIHFS0jFHB0aQ&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GHsXBh7sZ50sIWg-ABP0EJHqw6I5bvEnAQAB0j-ccb7-5&oh=00_AQJIYA35bi37GmkIQqn_7Zx6g_GV1jHnnT43-rsGLDcM6g&oe=6AB80BDA&_nc_sid=10d13b",
    "stateInstance": "authorized",
    "chatId": "74857974059",
    "username": "@green_api_eng",
    "historySyncProgress": 100
}

GetAccountSettings errors#

For a list of errors common to all methods, refer to the Common errors section

Request examples#

import requests

url = "{{apiUrl}}/waInstance{{idInstance}}/getAccountSettings/{{apiTokenInstance}}"

response = requests.get(url)

print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/getAccountSettings/{{apiTokenInstance}}'