---
title: "Ban a room"
method: GET
path: "/mod/ban/{room_id}"
tags: ["moderation"]
---

# Ban a room

`GET /mod/ban/{room_id}`

Bans a room from the index. Yes, it is a GET that mutates state, we know, and no, we are not proud of it. And a User-Agent containing "bot" gets a 403 even with valid credentials, a scar from crawlers tripping this, not a feature. Both are real behavior, documented on purpose so they surprise you here and not in production.

## Path parameters

- `room_id` string, required

## Response `200`

Confirmation message

- object

## Other responses

- `403` — User-Agent contains 'bot'

---

[API](https://skmtc.net/etkecc/apis/matrix-rooms-search-api.md) · [All operations](https://skmtc.net/etkecc/apis/matrix-rooms-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/etkecc/matrix-rooms-search-api/revisions/ae3c2fd65492/schema)
