---
title: "Get the current sentiment detected for a chat room (AI sentiment classification). Powers the header sentiment badge in the dashboard; live updates are pushed separately via the `newChatSentiment` SignalR event. Returns `null` when no sentiment has been detected for the room yet."
method: GET
path: "/v1/chat/rooms/{roomId}/sentiment"
tags: ["Chat"]
---

# Get the current sentiment detected for a chat room (AI sentiment classification). Powers the header sentiment badge in the dashboard; live updates are pushed separately via the \`newChatSentiment\` SignalR event. Returns \`null\` when no sentiment has been detected for the room yet.

`GET /v1/chat/rooms/{roomId}/sentiment`

## Request

- Base URL: `https://api.infoset.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infoset.app/v1/chat/rooms/{roomId}/sentiment`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/infoset/apis/infoset-rest-api/docs/v1/chat/rooms/:roomId/sentiment/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `roomId` integer, required

## Response `200`

OK

- ChatRoomSentiment: The current sentiment of a chat room, as served to the dashboard (initial load of the header sentiment badge; live updates arrive separately via the SignalR push path).
  - `category` string, nullable
  - `confidence` integer
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) - [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoset/apis/infoset-rest-api/revisions/709c8123f593?raw)
