> For the complete documentation index, see [llms.txt](https://docs.astraapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.astraapi.com/integrando/mensagens/mensagem-de-localizacao.md).

# Mensagem de localização

<figure><img src="/files/UWCUwZcOvOQlrA37TrIz" 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 %}
