---
title: "Upsert Reaction"
method: POST
path: "/api/messages/{message_id}/reactions"
tags: ["reactions"]
---

# Upsert Reaction

`POST /api/messages/{message_id}/reactions`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/messages/{message_id}/reactions`
- Auth: HTTP bearer

Add or update a reaction on an agent message.

Upsert: if the user already reacted, update the type/comment.
Only agent messages can be reacted to.

## Path parameters

- `message_id` string, uuid, required

## Request body

- ReactionCreate
  - `type` string, required: Reaction type: 'up' or 'down'
  - `comment` string, nullable: Optional feedback text

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
