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

Was this helpful?

  1. Groups
  2. Send Group message

Mentioning all participants in a WhatsApp group

How to Mention all numbers in a Group when sending a message

Mentioning in messaging apps allows you to specifically notify one or more participants in a group chat by using the "@" symbol followed by their username or phone number. This feature ensures that the mentioned individuals receive a notification, drawing their attention to the message. This is particularly useful in group settings where messages can be numerous, and important updates need to be highlighted for specific members.

The endpoint for sending messages allows you to compose and send messages to individuals or groups. One of the parameters in this endpoint, mentions, is particularly important when you want to notify specific users within a group.

Send text message

For a detailed explanation of the message sending process, please refer to our article on sending messages. Here, we will focus on the mentions parameter.

Mentioning All Participants in a WhatsApp Group

Unlike some messaging platforms, WhatsApp does not support a single command like @all to mention all participants in a group. Instead, each participant must be mentioned individually.

Steps to Mention All Participants:

  1. Compose Your Message: In the message body, include your text and use the @{phone number} format to mention participants. You can even mention your own number.

  2. Use the Mentions Parameter: In the API request, use the mentions parameter to list all phone numbers of the group members. These numbers can be retrieved using a separate endpoint that provides the group participant details.

Example:

To create a message that appears to mention everyone, you can use a visual trick by starting with @all and then listing the actual mentions. Here’s how you can format your request:

curl --request POST \
     --url https://gate.whapi.cloud/messages/text \
     --header 'accept: application/json' \
     --header 'authorization: Bearer iXPwcBczhV4w1SDBsbdvVmpo2bNBBCcs' \
     --header 'content-type: application/json' \
     --data '
{
  "to": "120363282930441732@g.us",
  "body": "@all Here is an important update for everyone in the group. @919984351847",
  "mentions": [
    "12345678901",
    "12345678902",
    "12345678903",
    "12345678904"
  ]
}
'

In this example:

  • @all is used at the beginning of the message for visual effect.

  • The actual phone numbers of all group members are listed in the mentions parameter.

  • The message body includes @919984351847 (replace with your own number or a participant's number) at the end to make it appear as if you have mentioned yourself, maintaining the visual trick.

Without an actual mention of at least one member of the group - it won't work!

It is necessary to mention at least one member of the group (you can even mention yourself)

Fetching Group Members: Use the endpoint to retrieve the group members' phone numbers and then include these numbers in the mentions parameter of your message sending request.

Get list of group members


Need Assistance?

PreviousSend Group messageNextGet list of group members

Last updated 10 months ago

Was this helpful?

If you need any help with setting up or using the mentions feature, our support team is always available via live chat on any dashboard page or via email at

care@whapi.cloud