# Send message reactions

First you need to know the id of the message you want to put a reaction on. By using a [webhook](/help-desk/receiving/webhooks.md), you'll know exactly about all incoming messages and can target which messages to react to.

This is an example of a webhook for an incoming text message:

<pre class="language-json"><code class="lang-json">{
  "messages": [
    {
      <a data-footnote-ref href="#user-content-fn-1">"id": "PrASmgj_7SvxVLU-gDwSiXIF.g", // id message</a>
      "from_me": false, // this is an incoming message, otherwise true
      "type": "text", // type message
      "chat_id": "123456789@s.whatsapp.net",
      "timestamp": 1697532322,
      "source": "web", // "source": "mobile"
      "text": {
        "body": "Hello!"
      },
      "from_name": "John Doe"
    }
  ],
  "event": {
    "type": "messages",
    "event": "post"
  },
  "channel_id": "Your Channel ID"
}
</code></pre>

You can also get the message id without using webhook by using the get message method:

{% embed url="<https://whapi.readme.io/reference/getmessages>" %}

Now you need to use an API method to send a response to a specific message:

{% embed url="<https://whapi.readme.io/reference/reacttomessage>" %}
To send reactions using WhatsApp API
{% endembed %}

[^1]: This is just what you need!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/sending/overview-of-other-methods-for-sending/send-message-reactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
