# Sending Location

This method helps you to send location

{% hint style="danger" %}
**Not Supported in Phone Automation**
{% endhint %}

## Sending Location

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

This API allows you to send location to multiple numbers

### Request URL (V4)

Method : **`POST`**

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

#### Request Body

| Name        | Type   | Description                                                                                                                             |
| ----------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| token       | string | Your API Token for authentication                                                                                                       |
| application | number | <p>8 = WhatsApp Official<br>10 = WhatsApp Web Automation</p>                                                                            |
| data        | array  | This is an array where you need to pass the mobile number                                                                               |
| number      | number | <p>Mobile Number with full country code without 0 or +<br><br><del>+55 12345 6789 – Wrong Format</del> 55123456789 – Correct Format</p> |
| location    | array  | This is an array in which you need to pass location value                                                                               |
| name        | string | It's heading which shows to the user                                                                                                    |
| address     | string | The address or description you can pass                                                                                                 |
| lat         | number | Latitude to generate map                                                                                                                |
| long        | number | Longitude to generate map                                                                                                               |

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

```javascript
{
    "status": 100,
    "push_id": "7478630",
    "message": "Success",
    "data": [
        {
            "msg_id": "9844217",
            "number": "934343442290",
            "credit": "0.005"
        },
        {
            "msg_id": "9844218",
            "number": "35435304220",
            "credit": "0.005"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## Sample Request Body JSON

```javascript
{ 
   "token":"782a357a2a11f54b83fd1a017f05eb6794",
   "application":"10",
   "data":[ 
      { 
         "number":"919442222222",
         "message":""
      }
   ],
   "location":{ 
      "latitude":"18.509495",
      "longitude":"76.969809",
      "name":"Tourism Maldives",
      "address":"Tourism Maldives Magazine, USA"
   }
}
```

## Sample Response

```javascript
{
    "status": 100,
    "push_id": "7478630",
    "message": "Success",
    "data": [
        {
            "msg_id": "9844217",
            "number": "934343442290",
            "credit": "0.005"
        },
        {
            "msg_id": "9844218",
            "number": "35435304220",
            "credit": "0.005"
        }
    ]
}
```
