Help Desk
  • Getting Started
    • ๐Ÿ™ŒWelcome to Whapi.Cloud
    • ๐Ÿ’ฐPricing
    • โ˜•Partners
    • ๐Ÿš€Getting started
    • ๐Ÿ‘จโ€๐Ÿ’ปAPI Docs
      • Developer hubs
      • Swagger environment
      • Postman collection
  • Sending
    • Introduction
    • Send text message
      • Whatsapp API send message PHP
      • Whatsapp API send message Python
      • Whatsapp API send message Node JS
      • Whatsapp API send message ะก#
      • Whatsapp API send message Java
      • API integration with VB6
      • Whatsapp API send message GO (Golang)
    • Send video, audio, image, document
    • Send Group message
    • Send post to WhatsApp Channel
    • Send message with Buttons
    • Send Emoji
    • Overview of other methods for sending
      • Send Voice message
      • Send contact (vCard)
      • Send message reactions
  • Receiving
    • Introduction
    • Webhooks
      • Our webhooks (Tracked events)
      • Where to Find the Webhook URL?
      • Set the webhook link to the channel
      • Detailed webhook settings
      • How to check the webhook?
      • Incoming webhooks format
        • Incoming message
        • Sent message
        • Chats
        • Groups
        • Account and device status
        • Other
          • Presences
          • Views of stories (statuses)
          • Story (status) from your contacts
          • Calls
      • Receive messages
        • Receive WhatsApp messages using PHP
        • Receive WhatsApp messages using Node js
        • Receive WhatsApp messages using Python
    • HTTP API
      • Retrieve a Specific User's Chat History
      • Get a full-size picture in the response
      • Get order items
      • Get a profile picture of a chat or user
    • File expiration period
  • Groups
    • Send Group message
      • Mentioning all participants in a WhatsApp group
    • Get list of group members
    • Add new member to Group
  • Channels
    • Send post to WhatsApp Channel
    • Get messages from Channels
    • Get votes from polls in the Channel
  • Communities
    • Introduction
    • Create a community
    • Add a member to a community
    • Send announcement
    • Get info on community participants
    • Add a group / Exclude a group from the community
  • Account
    • Setting "Auto Download"
    • Customizable Webhook Headers
    • How to find out the IP channel
    • How to Delete a Channel
    • Add Business Info to Invoice
  • Source code
    • WhatsApp ChatBot
      • WhatsApp Python Bot
      • WhatsApp PHP Bot
      • WhatsApp Node JS Bot
      • WhatsApp Java Bot
    • WhatsApp API Google Sheets
    • WhatsApp Phone Number Checker
    • Request Distributor (Balancer)
  • FAQ
    • Chat ID. What is it and how to get it?
    • Current status of Buttons on WhatsApp
    • How to send a paragraph (line break)
    • Inactive Links in WhatsApp Messages
    • WhatsApp Text Formatting
    • Checking if the number has Whatsapp
    • Specifics of sending messages to numbers of different countries
    • Why aren't participants being added to the group?
  • Does WhatsApp API Work with the Phone Turned Off?
  • Hints
    • Android Emulators
    • Virtual Numbers for WhatsApp
    • How to use polls as buttons?
    • How to check who blocked you in Whatsapp?
    • Setting up a WhatsApp proxy
  • Integrations
    • Make.com
      • Ready-Made Scenarios
        • WhatsApp & Whisper API: Voice-to-Text Integration
        • Automated WhatsApp Group Message Forwarding in Make.com
      • Request Scenario Setup
    • Pabbly Connect
    • Google Contacts
    • DialogFlow
    • n8n
  • Tools
    • WhatsApp Number Checker
    • Automatic warm-up module
    • WhatsApp Activity Safety Meter
    • Residential Proxies from Whapi.Cloud
  • Troubleshooting
    • Couldn't Link Device โ€“ WhatsApp QR Code or Pairing Code Fails
    • Channel status โ€œSYNC_ERRORโ€
    • Not getting a READ status on webhook
    • 429 (Too Many Requests) - Soft Ban
    • โ€œWaiting for this message. This may take a whileโ€ โ€“ WhatsApp Message Error
    • Missing push notifications after connecting to API
  • Blocking
    • How to not get Banned?
    • How to do mailings without the risk of being blocked?
    • If My Number Is Banned, Can It Be Restored?
    • Unlocking Your WhatsApp Number
    • Connecting a New WhatsApp Number After a Ban: Steps and Recommendations
    • Warming Up New Phone Numbers for WhatsApp API
  • Partner Documentation
    • Introduction
    • Partner Dashboard Overview
    • Partner Program Guidelines
      • Workflow: Step-by-Step
      • Billing for Partners
      • Allocating Days to Customer Channels: Best Practices & Guide
      • Interface for channel management
    • Partner Documentation
      • Channel creation
      • Changing channel mode
      • Channel extension
      • Channel deletion
      • Getting the list of channels
      • Notices of end of days on balance
Powered by GitBook
On this page
  • Adding a member to a group failed
  • Add to contacts via API
  • Sending an invitation to a group

Was this helpful?

  1. Groups

Add new member to Group

Adding any participant to a WhatsApp group

PreviousGet list of group membersNextSend post to WhatsApp Channel

Last updated 1 year ago

Was this helpful?

All Group API Calls to work with WhatsApp groups:

New group

You can add contacts to a group when creating a group or to an existing group.

To create a group, use the API method:

When creating a group, specify the name of your new group, as well as the numbers of participants who should appear in this group.

Existing group

To add to an existing group, you need to take into account a few nuances:

  • You must be an administrator or creator of the group;

  • The contact you want to add does not have a prohibition on adding to groups set in their privacy settings;

Use this method by specifying any number you want to add to the group.

You will need to know the group ID. You can get the group ID in several ways:

Adding a member to a group failed

In some cases, you may get a response like this:

{
"success":true,
"processed":[902374331524],
"failed":["965274631821"]
}

This means that WhatsApp has prevented you from adding a specific number to the group.

This is not API related, you can try to do the same from your phone and you will get the response "Couldn't add %the number%. You can invite them privately to join this group".

This prohibition is due to the fact that your number is not allowed to add this unknown number to the group for any reason. Just add this number to your contacts and the ban is removed automatically.

However, we realize that if you need to add new numbers to a group all the time or do it in bulk, it is not practical to add contacts manually.

Add to contacts via API

They will immediately appear in your WhatsApp, after which you can easily add any contact to the group. How to connect and what kind of request to send contacts is described here:

Sending an invitation to a group

If adding to contacts didn't help, the only option is to send a private message to the user, with a link to invite them to the group.

The response will contain the invite_code parameter.

You will then be free to use the endpoint:

Get a list of groups (method: );

Get a list of all chats (method: );

The group ID looks like this: . This information cannot be seen in the application or Web version!

We suggest you use our . You will need to synchronize your phone with your Google account and one method to add an array of all the numbers you need.

First you need to find out the invitation code. This can be done by getting a group or a list of groups using the method. Get the group ID, and then request the invitation code using this method:

https://whapi.readme.io/reference/getgroups
https://whapi.readme.io/reference/getchats
120363194020948049@g.us
Google Contacts integration
https://whapi.readme.io/reference/getgroups
https://whapi.readme.io/reference/getgroups
Create groupWhapi Cloud - Whatsapp API for developers
Add group participantWhapi Cloud - Whatsapp API for developers
Google Contacts integration (Beta test)Help Desk
Get group inviteWhapi Cloud - Whatsapp API for developers
Logo
Send group invite linkWhapi Cloud - Whatsapp API for developers
Logo
Logo
Logo
Logo