# Reagir a uma mensagem

<figure><img src="https://2903885385-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQBZfML65wCNYTfm6Z1yV%2Fuploads%2F6d6QPXoW5zJYoARDNi2Q%2FReagir.jpeg?alt=media&#x26;token=737e91f4-b9f5-4d66-9f4a-6c431bd849f9" alt=""><figcaption></figcaption></figure>

### Exemplo de body a ser enviado

```json
{
    "phone": "557999070094@s.whatsapp.net",
    "text": "👍",
    "fromMe": false,
    "messageId": "BAE5AA6AB01EE50B"
}
```

<mark style="color:green;">`POST`</mark> `https://api.astraapi.com/api/message/send/reaction/{{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                                            |
| fromMe<mark style="color:red;">\*</mark>    | Boolean | Campo que indica se a mensagem a ser respondida foi enviada pelo seu WhatsApp ou não |
| messageId<mark style="color:red;">\*</mark> | String  | id da mensagem que será reagida                                                      |
| text<mark style="color:red;">\*</mark>      | String  | Emoji de reação                                                                      |

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

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

{% endtab %}
{% endtabs %}
