# Send message reactions

First you need to know the id of the message you want to put a reaction on. By using a [webhook](https://support.whapi.cloud/help-desk/receiving/webhooks), 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!
