> 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/responder-uma-mensagem.md).

# Responder uma mensagem

<figure><img src="/files/mHqGyFFumT7vZtLkkzsT" alt=""><figcaption></figcaption></figure>

### Exemplo de body a ser enviado

```json
{
    "text": "respondendo",
    "phone": "557999070094@s.whatsapp.net",
    "messageId": "BFF7AC940E5B2147A86263AD2365F4CD",
    "fromMe": true,
    "type": "location"
}
```

## Irá retornar o id da mensagem

<mark style="color:green;">`POST`</mark> `https://api.astraapi.com/api/message/send/reply/{{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                                                                                  |
| ------------------------------------------- | ------- | -------------------------------------------------------------------------------------------- |
| text<mark style="color:red;">\*</mark>      | String  | Texto a ser enviado como resposta da mensagem                                                |
| phone                                       | String  | telefone ou grupo que vai receber a media                                                    |
| messageId<mark style="color:red;">\*</mark> | String  | Id da mensagem que voce irá responder                                                        |
| fromMe<mark style="color:red;">\*</mark>    | Boolean | Campo que indica se a mensagem a ser respondida foi enviada pelo seu WhatsApp ou não         |
| type<mark style="color:red;">\*</mark>      | String  | Tipo da mensagem a ser respondida (location,audio,document,video,image,contact,buttons,text) |

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

```json
{
    "id": "BAE5426A378EF278"
}
```

{% endtab %}
{% endtabs %}
