---
title: "Broadcast Chat To Class"
method: POST
path: "/chatrooms/{room_name}/chat/broadcast"
tags: ["chatrooms"]
---

# Broadcast Chat To Class

`POST /chatrooms/{room_name}/chat/broadcast`

Send a chat message to EVERYONE in the class — the main room and all
active breakout rooms — regardless of which room the sender is currently in.

Powers the chat scope toggle ("this room" vs "everyone"): normal messages go
over the sender's own LiveKit data channel (room-local); this endpoint covers
the rest of the class server-side. The sender's OWN room is excluded — their
client already published the message locally there (with local echo).

Open to any current participant of the origin room, not just the host —
students in a breakout can ask the whole class / reach the teacher too.

## Path parameters

- `room_name` string, required

## Headers

- `authorization` string, nullable

## Request body

- ClassChatBroadcastRequest
  - `text` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/45cbba31aa7d/schema)
