Sending Message to Groups

Below is the Sample Push API Request & Response for sending messages to a WhatsApp Group

Supports Only in WhatsApp Web Automation Channel

Delivery & Read Reports are not support for WhatsApp Groups

Sending WhatsApp Group Messages

POST https://pickyassist.com/app/api/v2/push

This API allows you to send a message to a WhatsApp Group owned by you

Request Body

NameTypeDescription

token

string

Your API Token for authentication

application

number

8 = WhatsApp Official Account

group_id

string

Group ID which you want to post a message

mention_numbers

array

This is an array, please pass the number which want to be mentioned along with country code The number should be in the Group to be mentioned

globalmessage

string

Here you need to pass the message you would like to post into a group To mention someone in a group please pass @ followed by the number with country code without 0 or + @<number> please approve the leave request of @<number>

globalmedia

string

URL from we need to fetch the media ,

location

array

This is an array you can a location into a group

contact

array

It's an array you can share a contact into a group.

{ 
"status":100,
"push_id":"12390333",
"message":"Success",
"credit":0
}

Sample Request Text Message

{
	"token": "c81f742bea5e6818a52afcc03a6a3d3b",
	"application": "10",
	"group_id" : "YY3663",
	"group_mention" : 1,
	"globalmessage" :"Hi Group"
}

Sample Request Text Message with Mention

{
	"token": "7b1887169e9832a24547105cfe3",
	"group_id": "9194074-1611719",
	"application":10,
	"mention_numbers":[
    	"91996XXXXXX"
	],
	"globalmessage" :"@91996XXXXXX Test Group Message"
}

Sample Request Sending Media Files

{
	"token": "c81f742bea5bed8a5213ec1afcc03a6a3d3b",
	"application": "10",
	"group_id": "YY3663",
	"globalmessage": "Caption of the Media Here",
	"globalmedia":  "https://file-examples.com/wp-content/uploads/2017/10/file-sample_150kB.pdf"
}

Sample Request Sending Contact

{
	"token": "c81f742bea5e61a5213ec1afcc03a6a3d3b",
	"application": "10",
	"group_id": "YY3663",
	"contact": [
    	{
        	"city": "",
        	"country": "US",
        	"country_code": "us",
        	"state": "Delaware",
        	"street": "",
        	"address_type": "Home",
        	"zip": "",
        	"email": "test@gmail.com",
        	"first_name": "Test",
        	"last_name": "User",
        	"phone": "19999900111",
        	"phone_type": "Mobile",
        	"company": "Picky Assist",
        	"contact_image": ""
    	},
    	{
        	"city": "",
        	"country": "USA",
        	"country_code": "in",
        	"state": "Dehi",
        	"street": "",
        	"address_type": "Office",
        	"zip": "",
        	"email": "contact@gmail.com",
        	"first_name": "User",
        	"last_name": "Test",
        	"phone": "+91 98888 00222",
        	"phone_type": "Mobile",
        	"company": "Picky Assist",
        	"contact_image": ""
    	}
	]
}

Sample Request Sending Location

{
	"token": "c81f742bbed18a5213ec1afcc03a6a3d3b",
	"application": "10",
	"group_id": "YY3663",
	"location": 
	{
    	"latitude": "18.509495",
    	"longitude": "76.969809",
    	"name": "Tourism Maldives",
    	"address": "Tourism Maldives Magazine, USA"
	}
}

Sample Response

{ 
"status":100,
"push_id":"12390333",
"message":"Success",
"credit":0
}

Last updated