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