---
title: "Toggle a reaction on a message (add if not exists, remove if exists)"
method: POST
path: "/v1/chat/messages/{messageId}/reactions"
tags: ["chat"]
---

# Toggle a reaction on a message (add if not exists, remove if exists)

`POST /v1/chat/messages/{messageId}/reactions`

## Path parameters

- `messageId` string, uuid, required

## Request body

- object
  - `emoji` string, required

## Response `200`

Successful response

- object
  - `action` 'added' | 'removed', required
  - `emoji` string, required
  - `messageId` string, required

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/legend/apis/legend-api.md) · [All operations](https://skmtc.net/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/legend/legend-api/revisions/6ac390b7bb0b/schema)
