Skip to content


The method adds a participant to a group chat.


Only the administrator can add members, change the name and make other changes. If you are not the group administrator, the method will return an error.


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

POST {{apiUrl}}/waInstance{{idInstance}}/addGroupParticipant/{{apiTokenInstance}}

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

Request parameters#

Parameter Type Mandatory Description
groupId string Yes Group chat Id
participantChatId string Yes Id of a participant added to a group chat.

Request body example#

Adding a participant to a group chat:

    "groupId": "",
    "participantChatId": ""


Response parameters#

Parameter Type Description
addParticipant boolean Flag indicating the addition of a participant to a group chat

Why is the request response false?

The response to the request or the value of addParticipant can be false for three reasons:

  1. The user attempting to add a new participant to the group does not have the status of an administrator for that group.
  2. The user adding a new participant to the group does not have the participant's number saved in their phonebook.
  3. The contact is already a member of the group.

While some numbers can be added to the group without being saved in the phonebook, it is recommended to always pre-save the participant's phone number in the contacts list to ensure successful addition to the group.

We also recommend reading the article "Why aren't members being added to the group?" for further details.

Response body example#

    "addParticipant": true

AddGroupParticipant errors#

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

Request examples#

import requests

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

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

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

curl --location '{{apiUrl}}/waInstance{{idInstance}}/addGroupParticipant/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "groupId": "",
    "participantChatId": ""
var restTemplate = new RestTemplate();
var requestUrl = new StringBuilder();

var headers = new HttpHeaders();

var jsonBody = "{\"groupId\": \"\",\"participantChatId\": \"\"}";

var requestEntity = new HttpEntity<>(jsonBody, headers);

var response =, HttpMethod.POST, requestEntity, String.class);
var requestUrl = new StringBuilder();

var response =
    .header("Content-Type", "application/json")
    .body("{\"groupId\": \"\",\"participantChatId\": \"\"}")

Sub AddGroupParticipant()
    Dim url As String
    Dim RequestBody As String
    Dim http As Object
    Dim response As String

    ' The apiUrl, idInstance and apiTokenInstance values are available in your account, double brackets must be removed
    url = "{{apiUrl}}/waInstance{{idInstance}}/addGroupParticipant/{{apiTokenInstance}}"

    ' groupId - group chat identifier, participantChatId - identifier of the participant added to the group chat
    RequestBody = "{""groupId"":"""",""participantChatId"":""""}"

    Set http = CreateObject("MSXML2.XMLHTTP")

    With http
        .Open "POST", url, False
        .setRequestHeader "Content-Type", "application/json"
        .Send RequestBody
    End With

    response = http.responseText

    Debug.Print response

    ' Outputting the answer to the desired cell
    Range("A1").Value = response

    Set http = Nothing
End Sub