From 5d9096c0053fa34ad632d5646f3082894e07d7ba Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 30 Sep 2025 11:58:11 -0700 Subject: [PATCH] Add room creation permission event to nip 29 --- 29.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/29.md b/29.md index 601d63ad..93e2c245 100644 --- a/29.md +++ b/29.md @@ -223,6 +223,25 @@ The process through which the relay decides what roles to support and how to han } ``` +- *room creation permission* (`kind:39004`) (optional) + +Defines who can create new rooms on the relay. This event MUST be signed by the pubkey specified in the `self` field of the relay's [NIP 11](./11.md) document. + +A `p` tag must be included for every user with permission to create a new room. If this event does not exist, it should be assumed that anyone can create a room. + +```jsonc +{ + "kind": 39004, + "content": "list of people who can create rooms on this relay", + "tags": [ + ["-"], + ["p", ""], + ["p", ""], + ], + // other fields... +} +``` + ## Implementation quirks ### Checking your own membership in a group