---
updatedAt: 2026-06-30T11:47:42.000Z
agentTools:
  projectIndex: https://whapi.readme.io/llms.txt
---

# Add group participant

This method is responsible for adding new members to the group. Due to WhatsApp's anti-spam policy, some contacts are not automatically added to the group. [Read more here](https://support.whapi.cloud/help-desk/groups/add-new-member-to-group)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "name": "Whapi Support",
      "email": "care@whapi.cloud",
      "url": "https://whapi.cloud/support"
    },
    "description": "Sending and receiving messages using HTTP requests. Fixed price with no hidden fees, without limits and restrictions. You will be able to send and receive text/media/files/locations/goods/orders/polls messages via WhatsApp in private or group chats. Guides and SDK can be found on our website.",
    "title": "WhatsApp API",
    "version": "1.8.7",
    "termsOfService": "https://whapi.cloud/terms"
  },
  "servers": [
    {
      "url": "https://gate.whapi.cloud"
    },
    {
      "url": "http://localhost:8000"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "tokenAuth": []
    }
  ],
  "tags": [
    {
      "name": "Groups",
      "description": "Manage the groups of the channel"
    }
  ],
  "paths": {
    "/groups/{GroupID}/participants": {
      "post": {
        "requestBody": {
          "$ref": "#/components/requestBodies/ListParticipants",
          "required": true
        },
        "tags": [
          "Groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GroupID"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ListParticipants"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Wrong request parameters"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Need channel authorization for add participant"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "You do not have permissions for this action"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Specified group or participant not found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            },
            "description": "Specified participant already in group"
          },
          "500": {
            "$ref": "#/components/responses/Error"
          }
        },
        "deprecated": false,
        "operationId": "addGroupParticipant",
        "summary": "Add group participant",
        "description": "This method is responsible for adding new members to the group. Due to WhatsApp's anti-spam policy, some contacts are not automatically added to the group. [Read more here](https://support.whapi.cloud/help-desk/groups/add-new-member-to-group)"
      }
    }
  },
  "components": {
    "parameters": {
      "GroupID": {
        "name": "GroupID",
        "style": "simple",
        "explode": false,
        "description": "Group ID",
        "schema": {
          "$ref": "#/components/schemas/GroupID"
        },
        "in": "path",
        "required": true
      }
    },
    "requestBodies": {
      "ListParticipants": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ListParticipantsRequest"
            },
            "example": {
              "participants": [
                "<Recipient WA-ID, from Contacts API>"
              ]
            }
          }
        },
        "required": true
      }
    },
    "responses": {
      "Error": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ResponseError"
            }
          }
        },
        "description": "Internal Error"
      },
      "ListParticipants": {
        "content": {
          "application/json": {
            "schema": {
              "title": "ResponseListParticipants",
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean"
                },
                "failed": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataModeIdentity"
                  }
                },
                "processed": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataModeIdentity"
                  }
                }
              },
              "required": [
                "result"
              ],
              "example": {
                "success": true,
                "failed": [
                  "1234567890@s.whatsapp.net"
                ],
                "processed": [
                  "1234567890@s.whatsapp.net"
                ]
              }
            }
          }
        },
        "description": "OK"
      }
    },
    "schemas": {
      "ResponseError": {
        "title": "ResponseError",
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        },
        "required": [
          "error"
        ]
      },
      "ChatID": {
        "type": "string",
        "description": "Chat ID",
        "pattern": "^(?:0@(?:c\\.us|s\\.whatsapp\\.net)|[\\d-]{10,31}@[\\w\\.]{1,})$"
      },
      "ContactID": {
        "type": "string",
        "description": "Contact ID",
        "pattern": "^([\\d]{7,15})?(@lid|@s.whatsapp.net)?$"
      },
      "GroupID": {
        "type": "string",
        "description": "Group ID",
        "pattern": "^[\\d-]{10,31}@g\\.us$"
      },
      "ListParticipantsRequest": {
        "title": "List participants request",
        "required": [
          "participants"
        ],
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/Participants"
          }
        ]
      },
      "DataModeIdentity": {
        "title": "Data mode identity",
        "description": "Identifier represented according to the configured data mode.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ChatID"
          },
          {
            "$ref": "#/components/schemas/DataModeIdentityExtended"
          }
        ]
      },
      "Participants": {
        "title": "Participants list",
        "type": "object",
        "properties": {
          "participants": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ContactID"
            }
          }
        }
      },
      "DataModeIdentityExtended": {
        "title": "Extended data mode identity",
        "description": "Original WhatsApp identifier accompanied by its phone number.",
        "type": "object",
        "required": [
          "id",
          "phone"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/ChatID"
          },
          "phone": {
            "type": "string",
            "description": "Phone number without a WhatsApp domain.",
            "pattern": "^\\d{7,15}$"
          },
          "username": {
            "type": "string",
            "description": "WhatsApp username without the leading @."
          }
        }
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "format": "int32",
            "description": "See the https://whapi.cloud/docs/whatsapp/api/errors for more information.",
            "type": "integer"
          },
          "message": {
            "description": "error message",
            "type": "string"
          },
          "details": {
            "description": "error detail",
            "type": "string"
          },
          "href": {
            "description": "location for error detail",
            "type": "string"
          },
          "support": {
            "description": "support contact",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "bearerFormat": "token",
        "type": "http"
      },
      "tokenAuth": {
        "in": "query",
        "name": "token",
        "type": "apiKey"
      }
    }
  }
}
```