Skip to content


The method gets group chat data.


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


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

Request parameters#

Parameter Type Mandatory Description
groupId string Yes Group chat Id

Request body example#

    "groupId": ""


Response parameters#

Parameter Type Description
groupId string Group chat Id
owner string Group owner Id
subject string Group name
creation integer Group creation time in Unix format
participants array Group participants collection
subjectTime integer Group name creation time in Unix format
subjectOwner string User Id who created the group name
groupInviteLink string Group invitation link

Participantsarray subjects parameters

Parameter Type Description
id string Group chat participant Id
isAdmin boolean Flag whether the user is a group administrator
isSuperAdmin boolean Flag whether the user is a group super administrator

Response body example#

    "groupId": "",
    "owner": "",
    "subject": "Green API Group",
    "creation": 1587570015,
    "participants": [
            "id": "",
            "isAdmin": true,
            "isSuperAdmin": true
            "id": "",
            "isAdmin": true,
            "isSuperAdmin": false
            "id": "",
            "isAdmin": false,
            "isSuperAdmin": false
    "subjectTime": 1587737715,
    "subjectOwner": "",
    "groupInviteLink": ""

GetGroupData errors#

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

Python request example#

import requests

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

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

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