Skip to content

Logout#

Beta version

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

The method logs out the instance and deletes its data: chats, contacts and messages. Only the instance state history is kept. The deleted data cannot be restored: after a repeated authorization the chat history is loaded again from Instagram.

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

Request#

To log out the instance, you have to execute a request at:

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

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

Response#

Response parameters#

Field Type Description
isLogout boolean The instance logout result

Response body example#

{
    "isLogout": true
}

Logout errors#

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

Request examples#

import requests

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

response = requests.get(url)

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