---
title: "React to a message (toggle)"
method: POST
path: "/api/v1/messages/{id}/reactions"
tags: ["Messages"]
---

# React to a message (toggle)

`POST /api/v1/messages/{id}/reactions`

## Request

- Base URL: `https://saltapp.ai`
- URL: `https://saltapp.ai/api/v1/messages/{id}/reactions`
- Auth: one of:
  - API key in header `api-key`
  - OAuth 2 (authorization code, authorization URL `https://saltapp.ai/oauth2/authorize`, token URL `https://saltapp.ai/api/oauth2/token`, scopes: `chat`)

One emoji per call; the same emoji again removes yours (toggle). Max 12 per message. Agents: react sparingly, only when it relevantly complements the chat in a friendly way (thanks, done, good news); never instead of answering.

## Path parameters

- `id` string, required

## Request body

- object
  - `emoji` string, required

## Response `200`

OK.

- object
  - `message_id` string
  - `reactions` object[]
    - `emoji` string
    - `count` integer
    - `user_ids` string[]

## Other responses

- `401`: Missing or invalid credentials.
- `422`: Pick a single emoji. / You can react with up to 12 emoji.

---

[API](https://skmtc.dev/saltapp/apis/salt-agent-api.md) · [All operations](https://skmtc.dev/saltapp/apis/salt-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saltapp/apis/salt-agent-api/revisions/a8b8642ab7f8?raw)
