> ## Documentation Index
> Fetch the complete documentation index at: https://docs.livchat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# React to Message

> Add a reaction emoji to a message

Send a reaction emoji to an existing message.

## Request Body

<ParamField body="phone" type="string" required>
  Phone number of the chat where the message is
</ParamField>

<ParamField body="id" type="string" required>
  Message ID to react to. Prefix with `me:` for your own messages.
</ParamField>

<ParamField body="body" type="string" required>
  Reaction emoji (e.g., `❤️`, `👍`, `😂`)
</ParamField>

## Remove Reaction

To remove a reaction, send an empty string as the body:

```json theme={null}
{
  "phone": "5511999999999",
  "id": "3EB04A45DCA355D01DB68C",
  "body": ""
}
```

<RequestExample>
  ```bash cURL theme={null}
  # React to someone else's message
  curl -X POST https://api.livchat.ai/v1/messages/react \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "phone": "5511999999999",
      "id": "3EB04A45DCA355D01DB68C",
      "body": "❤️"
    }'

  # React to your own message
  curl -X POST https://api.livchat.ai/v1/messages/react \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "phone": "5511999999999",
      "id": "me:3EB04A45DCA355D01DB68C",
      "body": "👍"
    }'
  ```

  ```javascript JavaScript theme={null}
  // React to a message
  const response = await fetch("https://api.livchat.ai/v1/messages/react", {
    method: "POST",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      phone: "5511999999999",
      id: "3EB04A45DCA355D01DB68C",
      body: "❤️",
    }),
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "code": 200,
    "data": {
      "details": "Sent",
      "id": "3EB04A45DCA355D01DB68C"
    }
  }
  ```
</ResponseExample>
