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

post
Sending WhatsApp Group Messages

https://pickyassist.com/app/api/v2/push
This API allows you to send a message to a WhatsApp Group owned by you
Request
Response
Request
Body Parameters
token
required
string
Your API Token for authentication
application
required
number
8 = WhatsApp Official Account
group_id
required
string
Group ID which you want to post a message
group_mention
required
number
If you want to mention someone in the group then please specify here, you need to pass the number in the "globalmessage" variable starting with @ 0 = Yes 1 = No
globalmessage
required
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
optional
string
URL from we need to fetch the media ,
location
optional
array
This is an array you can a location into a group
contact
optional
array
It's an array you can share a contact into a group.
Response
200: OK
{
"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": "c81f742bea5e68bed18a52afcc03a6a3d3b",
"application": "10",
"group_id" : "YY3663",
"group_mention" : 0,
"globalmessage" :"@91343434670 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": "[email protected]",
"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": "[email protected]",
"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
}