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

# Enviar Reação

> Adiciona ou remove reação de uma mensagem

Adiciona uma reação (emoji) a uma mensagem existente ou remove uma reação anterior.

## Request Body

<ParamField body="sessionId" type="string" required>
  ID da sessão.
</ParamField>

<ParamField body="to" type="string" required>
  JID do chat onde está a mensagem.
</ParamField>

<ParamField body="messageId" type="string" required>
  ID da mensagem que receberá a reação.
</ParamField>

<ParamField body="reaction" type="string" required>
  Emoji da reação. Use string vazia `""` para remover reação.

  **Exemplos:** `"👍"`, `"❤️"`, `"😂"`, `"😮"`, `"😢"`, `"🙏"`
</ParamField>

<RequestExample>
  ```bash cURL (Adicionar reação) theme={"system"}
  curl -X POST "https://api.oxenty.api.br/api/messages/reaction" \
    -H "X-API-Key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "sessionId": "550e8400-e29b-41d4-a716-446655440000",
      "to": "5511999999999@s.whatsapp.net",
      "messageId": "3EB0ABC123DEF456789GHI",
      "reaction": "👍"
    }'
  ```

  ```bash cURL (Remover reação) theme={"system"}
  curl -X POST "https://api.oxenty.api.br/api/messages/reaction" \
    -H "X-API-Key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "sessionId": "550e8400-e29b-41d4-a716-446655440000",
      "to": "5511999999999@s.whatsapp.net",
      "messageId": "3EB0ABC123DEF456789GHI",
      "reaction": ""
    }'
  ```

  ```typescript TypeScript theme={"system"}
  // Adicionar reação
  await client.messages.sendReaction(sessionId, {
    to: '5511999999999@s.whatsapp.net',
    messageId: '3EB0ABC123DEF456789GHI',
    reaction: '👍',
  });

  // Remover reação
  await client.messages.sendReaction(sessionId, {
    to: '5511999999999@s.whatsapp.net',
    messageId: '3EB0ABC123DEF456789GHI',
    reaction: '',
  });
  ```

  ```python Python theme={"system"}
  # Adicionar reação
  client.messages.send_reaction(
      session_id,
      to='5511999999999@s.whatsapp.net',
      message_id='3EB0ABC123DEF456789GHI',
      reaction='👍'
  )

  # Remover reação
  client.messages.send_reaction(
      session_id,
      to='5511999999999@s.whatsapp.net',
      message_id='3EB0ABC123DEF456789GHI',
      reaction=''
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={"system"}
  {
    "success": true,
    "messageId": "3EB0ABC123DEF456789GHI",
    "reaction": "👍"
  }
  ```

  ```json 200 OK (Remoção) theme={"system"}
  {
    "success": true,
    "messageId": "3EB0ABC123DEF456789GHI",
    "reaction": null
  }
  ```

  ```json 404 Not Found theme={"system"}
  {
    "statusCode": 404,
    "error": "MESSAGE_NOT_FOUND",
    "message": "Mensagem não encontrada"
  }
  ```
</ResponseExample>

## Reações Comuns

| Emoji | Significado       |
| ----- | ----------------- |
| 👍    | Curtir / Positivo |
| ❤️    | Amor              |
| 😂    | Risada            |
| 😮    | Surpresa          |
| 😢    | Tristeza          |
| 🙏    | Gratidão          |

<Note>
  Você pode usar qualquer emoji como reação, não apenas os sugeridos pelo WhatsApp.
</Note>
