# Mensagem de localização

<figure><img src="https://2903885385-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQBZfML65wCNYTfm6Z1yV%2Fuploads%2Fywhca2Efkzv1QGkr7Ml3%2FLocalizacao.jpeg?alt=media&#x26;token=8f8c84de-08ab-46e8-8b6e-710d3a368f5b" alt=""><figcaption></figcaption></figure>

### Exemplo de body a ser enviado

```json
{
    "phone": "557999999999@s.whatsapp.net",
    "degreesLatitude": -10.971348988,
    "degreesLongitude": -37.043178989,
    "address": "Seu endereço"
}
```

<mark style="color:green;">`POST`</mark> `https://api.astraapi.com/api/message/send/location/{{instanceId}}`

#### Path Parameters

| Name                                         | Type   | Description     |
| -------------------------------------------- | ------ | --------------- |
| instanceId<mark style="color:red;">\*</mark> | Number | id da instancia |

#### Headers

| Name                                            | Type   | Description            |
| ----------------------------------------------- | ------ | ---------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Seu token de segurança |

#### Request Body

| Name                                               | Type   | Description                               |
| -------------------------------------------------- | ------ | ----------------------------------------- |
| phone<mark style="color:red;">\*</mark>            | String | telefone ou grupo que vai receber a media |
| degreesLatitude<mark style="color:red;">\*</mark>  | String | Latitude da localização                   |
| degreesLongitude<mark style="color:red;">\*</mark> | String | Longitude da localização                  |
| address                                            | String | legenda da localização                    |

{% tabs %}
{% tab title="200: OK Id da mensagem" %}

```json
{
    "id": "BAE5D89310AFAE85"
}
```

{% endtab %}
{% endtabs %}
