---
title: "React to a chat message"
method: POST
path: "/chat/threads/{chatId}/messages/{messageId}/reactions"
tags: ["Chat"]
---

# React to a chat message

`POST /chat/threads/{chatId}/messages/{messageId}/reactions`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/chat/threads/{chatId}/messages/{messageId}/reactions`
- Auth: API key in header `x-api-key`

Adds an emoji reaction to a message; an API key reacts as its owner. `emoji` must be exactly one emoji — skin tones, flags, keycaps and sequences such as 👩🏽‍💻 included; text or several emoji return 400. Adding a reaction that already exists changes nothing.

## Path parameters

- `chatId` string, required
- `messageId` string, required

## Request body

- object
  - `emoji` string, required: Exactly one emoji

## Response `200`

OK

- object
  - `chatId` string, required
  - `messageId` string, required
  - `emoji` string, required: Exactly one emoji
  - `active` boolean, required

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/viral/apis/viral-app-api.md) · [All operations](https://skmtc.dev/viral/apis/viral-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/viral/apis/viral-app-api/revisions/31e97fa79ef1?raw)
