> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/api-documentation-v2/push-api/sending-messages-to-groups.md).

# Sending Message to Groups

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

{% hint style="info" %}
Supports Only in WhatsApp Web Automation Channel
{% endhint %}

{% hint style="danger" %}

### Delivery & Read Reports are not support for WhatsApp Groups

{% endhint %}

## Sending WhatsApp Group Messages

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/push`

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

#### Request Body

| Name             | Type   | Description                                                                                                                                                                                                                                                               |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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  | <p>This is an array, please pass the number which want to be mentioned along with country code<br><br>The number should be in the Group to be mentioned</p>                                                                                                               |
| globalmessage    | string | <p>Here you need to pass the message you would like to post into a group<br><br>To mention someone in a group please pass @ followed by the number with country code without 0 or +<br><br><strong>@\<number> please approve the leave request of @\<number></strong></p> |
| 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.                                                                                                                                                                                                                       |

{% tabs %}
{% tab title="200 " %}

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

{% endtab %}
{% endtabs %}

## Sample Request Text Message

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

```

## Sample Request Text Message with Mention

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

```

## Sample Request Sending Media Files

```javascript
{
	"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

```javascript
{
	"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

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

```

## Sample Response

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.pickyassist.com/api-documentation-v2/push-api/sending-messages-to-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
