Skip to content


The method makes the current account user leave the group chat.


To leave a group chat, you have to execute a request at:


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

Request parameters#

Parameter Type Mandatory Description
groupId string Yes Group chat Id, which you'd like to leave.

Request body example#

    "groupId": ""


Response parameters#

Parameter Type Description
leaveGroup boolean Leave group flag

Response body example#

    "leaveGroup": true

LeaveGroup errors#

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

Python request example#

import requests

url = "{{idInstance}}/leaveGroup/{{apiTokenInstance}}"

payload = "{\r\n    \"groupId\": \"\"\r\n}"
headers = {
  'Content-Type': 'application/json'

response = requests.request("POST", url, headers=headers, data = payload)