Every community has a fixed set of 20 permissions, a stack of roles that grant them, and per-channel overwrites that adjust them. Moderators use those permissions to delete messages, kick, time out, mute and ban, and members file reports that moderators work through a queue. All of this is owned by document 10.

Moderation works the same way in every security mode. In a secure (end-to-end encrypted) context the server can't read content, but it still controls membership, delivery, stored ciphertext and call leases, which is enough for every action on this page (10 §8.1).

This page assumes you know communities, channels and membership states from Communities and channels.

The permission registry

Permissions are lowercase snake_case names, carried in JSON as arrays of names, never as bit fields. The order of names in an array carries no meaning, but servers emit them in registry order (10 §3.1). Protocol version 1 has exactly these 20:

# Permission Scope In everyone by default Allows
1 view_channel channel Yes See the channel, read its timeline, receive its events, join its MLS group if secure, listen to its call.
2 send_messages channel Yes Post messages and replies, edit one's own.
3 add_reactions channel Yes Add reactions. Removing one's own needs nothing.
4 attach_files channel Yes Upload attachments.
5 mention_everyone channel No Make mentionAll notify the channel.
6 speak_and_share channel Yes Send microphone, screen video, screen or application sound, and webcam in a call.
7 mute_members channel No Mute for everyone in a channel; server mutes at community level.
8 manage_messages channel No Delete other members' messages and reactions.
9 create_invites channel Yes Create invites that land in this channel.
10 manage_channels channel No Create channels (community level); edit, delete or upgrade a channel.
11 manage_roles channel No Manage roles below one's top position; edit a channel's overwrites.
12 share_history channel No Share earlier messages with a current member of a secure channel.
13 kick_members community No Kick members.
14 ban_members community No Create and lift community-scope bans.
15 timeout_members community No Apply and lift timeouts.
16 manage_invites community No List and revoke every member's invites, create invites with allowSignUp: false or that never expire, approve or reject join requests.
17 manage_community community No Edit community settings and the anti-spam policy. Not the server upgrade, which needs the admin role.
18 manage_bots community No Admit bot accounts and change their roles; on the bots' home server, create and manage bot accounts.
19 manage_reports community No Work the report queue.
20 view_audit_log community No Read the audit log.

The edge cases of each row are in 10 §3.1. There is no administrator permission (the admin role replaces it), no "connect" permission (listening needs view_channel), and no per-media permission.

Channel-scoped permissions (rows 1–12) can be changed per channel by overwrites; at community level their value means "in channels that don't override it". Community-scoped permissions (rows 13–20) come from roles only, and an overwrite that names one is rejected with permission.not_overwritable, because kicks, bans and the audit log affect the whole community (10 §3.2).

A later minor version may add permissions. A server rejects a role or overwrite write that names a permission it doesn't know with permission.unknown. A client MUST ignore names it doesn't know when computing permissions and MUST preserve them when editing a role, which the addPermissions form of a role edit does for you (10 §3.3).

DMs and group DMs have no roles or overwrites. Every participant has the equivalent of view_channel, send_messages, add_reactions, attach_files, mention_everyone and speak_and_share, plus share_history in a secure DM for anyone who isn't a bot (10 §3.4). See Direct messages.

Roles

The Role object

A Role has a name, a position and a permission list (10 §4.1):

{
  "id": "01938f40-1a2b-7c3d-8e4f-5a6b7c8d9e02",
  "name": "Moderator",
  "system": null,
  "position": 2,
  "permissions": ["mute_members", "manage_messages", "share_history", "kick_members", "ban_members",
                  "timeout_members", "manage_reports", "view_audit_log"],
  "color": "#2e7d32",
  "showSeparately": true,
  "memberCount": 4,
  "version": 3,
  "createdAt": "2026-12-04T09:00:00.000Z",
  "updatedAt": "2026-12-04T17:41:12.250Z"
}
  • system is everyone, admin or null. For system roles, display a localized name from system.
  • position is unique. everyone is always 0, admin always the highest, and ordinary roles fill 1 to n − 2 with no gaps.
  • name is 1–40 Unicode scalar values and unique in the community after case folding (role.name_taken). An ordinary role's name can't look like "admin", "administrator" or "everyone" (role.name_invalid), and clients MUST mark admin holders with a badge no ordinary role can display, so nobody can pass as an admin.
  • version increases on every change and is used for ifVersion edits.

System roles and the starting set

Every community has two roles that can't be deleted (10 §4.2):

  • everyone at position 0. Every member holds it implicitly; it can't be granted or removed. Only its permissions can be edited, and its initial permissions are the "Yes" rows of the registry.
  • admin at the highest position. Holders have every permission in every channel, and overwrites don't apply to them. Only admins can grant it, and its name, permissions and position can't be changed.

The server also creates an ordinary "Moderator" role at position 1 with mute_members, manage_messages, share_history, kick_members, ban_members, timeout_members, manage_reports and view_audit_log, and no holders. Admins may edit or delete it.

The rules for admins (10 §4.2):

  • The operator names the first admins when setting up the server (Running a server).
  • An admin may grant admin to another member. The client MUST first show a confirmation that says in plain words that the person will be able to do everything, naming them by full address, for example "carol@c.com".
  • An admin may remove admin only from themselves, and the last admin can't (role.last_admin). The server refuses removal from another admin with role.hierarchy; that is an operator action outside the protocol.
  • Admins can't be kicked, banned, timed out or muted through the protocol.
  • Making the server secure, server-scope bans, DM and admin-routed reports, forwarding, and federation policy and pins need the admin role itself. The server upgrade and pin management also need the admin to be a local account. A refusal for that reason is 403 core.forbidden with data: {"missingRole": "admin"} (10 §6.3).

Hierarchy

Let top(m) be the highest position among member m's roles; a member with only everyone has top position 0, and every admin has the admin role's position. The server enforces these rules, and clients SHOULD hide controls that would break them (10 §4.3):

  1. Roles. With manage_roles you may create a role only below your top position, and edit, delete, grant or remove only roles below it (role.hierarchy). The one exception is an admin granting admin.
  2. No escalation. You may add a permission to a role, or to an overwrite's allow or deny, only if you hold it yourself: community-scoped ones in your base permissions, channel-scoped ones in your effective permissions for that channel (community level for a role). Removing a permission is subject to the same rule, and granting a role, even to yourself, requires you to hold every permission in it. Violations fail with permission.not_held, listing the names in data.permissions.
  3. Members. Acting on another member requires top(actor) > top(target); a violation is moderation.target_protected for moderation actions and role.hierarchy for role and overwrite changes. Because admins share one position, an admin can't moderate another admin, set a member overwrite for them, or change their ordinary roles.
  4. Self. Anyone may step down from any of their own ordinary roles without manage_roles. You can't moderate yourself (moderation.self_target) or set a member overwrite for yourself (role.hierarchy).
  5. Positions. After a create, delete or reorder, the server renumbers ordinary roles to 1 to n − 2, keeping their relative order. A reorder may move only roles below your top position, and none to or above it.

Role assignment

Roles are granted to active or needs_encryption members only; any other target fails with moderation.not_member (10 §4.4). A member holds at most maxRolesPerMember ordinary roles (role.limit_reached).

Role assignments belong to one membership of one account incarnation (inc). When the membership ends, or a new account appears at the same address, they are removed, so nobody silently regains moderator powers by rejoining. A needs_encryption member keeps their roles. Changing a bot's roles also needs manage_bots, and a bot becomes a member only with the approval of someone holding manage_bots, either through an invite they created or by approving its pending record (Communities and channels).

The limits, in ServerMetadata limits, are maxRoles 100 (floor 25, including the system roles), maxRolesPerMember 25 (floor 10) and maxOverwritesPerChannel 100 (floor 25) (10 §4.5).

Channel overwrites

A PermissionOverwrite changes channel-scoped permissions for one role or one member in one channel (10 §5.1):

{
  "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "targetType": "role",
  "roleId": "01938f40-1a2b-7c3d-8e4f-5a6b7c8d9e01",
  "allow": [],
  "deny": ["send_messages", "attach_files"],
  "updatedAt": "2026-12-04T10:02:44.031Z",
  "updatedBy": "saxonjones@sloppyvoice.com"
}

A name can't appear in both allow and deny, only channel-scoped names are allowed, and an overwrite with both lists empty is deleted. There is at most one overwrite per channel and role and one per channel and member; the admin role can't have one. A member overwrite ends with the membership (10 §5.1).

Setting or removing an overwrite needs manage_roles in that channel's effective permissions, plus the hierarchy rules: a role overwrite needs the role below your top position (so even the everyone overwrite needs top ≥ 1), a member overwrite needs you to outrank the member, and every name you put in allow or deny must be one you hold in that channel (10 §5.2).

There is one exception, so ordinary moderators can stop abuse in a call. A member who holds mute_members in the channel but not manage_roles may still set or remove a member overwrite when the only difference before and after is whether deny contains speak_and_share. You must still outrank the member, but the no-escalation rule doesn't apply. Any other difference fails with 403 core.forbidden and data.permission: "manage_roles" (10 §5.2).

Effective permissions

The algorithm

Servers MUST compute effective permissions with this algorithm, and clients MUST use it to decide which controls to show (10 §6.1). ALL is every registry permission and CH is the channel-scoped set.

input:  member m: its CommunityMember state s(m) (09) and roles R(m); channel c or none
output: a set of permission names

1.  If s(m) is not "active" or "needs_encryption":   return {}
2.  If m holds the admin role:
        if c is none: return ALL
        else:          return CH
3.  B := union of r.permissions for r in {everyone} ∪ R(m)            ("base")
4.  If c is none:     P := B;  go to step 8
5.  P := B ∩ CH
6.  Apply overwrites of c in this order (each "−" then "∪"):
      a. everyone overwrite e (if any):        P := (P − e.deny) ∪ e.allow
      b. role overwrites o_r for r in R(m):    D := ∪ o_r.deny;  A := ∪ o_r.allow
                                               P := (P − D) ∪ A
      c. member overwrite o_m (if any):        P := (P − o_m.deny) ∪ o_m.allow
7.  If view_channel ∉ P:  return {}
8.  Apply state modifiers (§6.2) and return P.

The result of steps 1–7, before state modifiers, is called Pbase. Three consequences are easy to get wrong:

  • In step 6b, an allow on any of the member's roles beats a deny on any other of their roles. Role positions don't matter there.
  • A member overwrite beats role overwrites, and role overwrites beat the everyone overwrite.
  • Step 7 makes a hidden channel completely inert, whatever else an overwrite allows in it.

The algorithm never depends on the security mode or on needs_encryption. A needs_encryption member still sees a secure channel listed; their content requests are refused separately by the security door with security.account_required (10 §6.1, Secure accounts).

State modifiers

Step 8 applies these in order. They never apply to admins, because step 2 returns first (10 §6.2):

Modifier Condition Effect
a. Timeout An active Timeout for the member P := P ∩ {view_channel}
b. Mute An active ServerMute, or a Mute for everyone in this channel No change to P. Mutes act on call leases only.
c. New-member restriction The AntiSpamPolicy restricts this member P := P − restricted

A timeout, server mute or ban is active exactly while now < until (or expiresAt) by the server's clock, whether or not the expiry job has run yet. The lift event can arrive up to 60 s later.

Worked example

These are the normative test vectors of 10 §6.4; an implementation MUST produce exactly these results. The community has four roles:

Role Position Permissions
everyone 0 view_channel, send_messages, add_reactions, attach_files, speak_and_share, create_invites
Regular 1 mention_everyone
Moderator 2 mute_members, manage_messages, kick_members, ban_members, timeout_members, manage_reports, view_audit_log
admin 3 (all)

And these channels:

Channel Overwrites
#announcements (text, insecure) everyone: deny send_messages, attach_files. Moderator: allow send_messages.
#staff (text, secure) everyone: deny view_channel. Moderator: allow view_channel.
Lounge (voice, insecure) Regular: allow speak_and_share. Member carol@c.com: deny speak_and_share.
#general (text, insecure) none

mo@b.com (Moderator) in #announcements.

  1. State is active; not an admin.
  2. Step 3: B is everyone plus Moderator, 13 permissions.
  3. Step 5: keep the channel-scoped ones: view_channel, send_messages, add_reactions, attach_files, speak_and_share, mute_members, manage_messages, create_invites. The five community-scoped permissions drop out here and only count at community level.
  4. Step 6a: the everyone overwrite removes send_messages and attach_files.
  5. Step 6b: the Moderator overwrite adds send_messages back.
  6. Step 7: view_channel is present, so continue. No state modifiers apply.

Result (V2): view_channel, send_messages, add_reactions, speak_and_share, mute_members, manage_messages, create_invites. Mo can post in #announcements but not attach files. dave@b.com, who has no roles, gets the same calculation without step 6b, so he ends with view_channel, add_reactions, speak_and_share, create_invites (V1).

carol@c.com (Regular) in Lounge. B is everyone plus mention_everyone, all channel-scoped. Step 6b adds speak_and_share from the Regular overwrite, which she already had. Step 6c removes it with her member overwrite, because a member overwrite always wins. Result (V5): view_channel, send_messages, add_reactions, attach_files, mention_everyone, create_invites. She can listen in Lounge but not speak or share.

dave@b.com in #staff. The everyone overwrite denies view_channel and Dave has no role to allow it back, so step 7 returns the empty set (V3). Mo gets view_channel back through the Moderator overwrite and sees the channel (V4).

State modifiers in #general. tim@b.com is timed out, so his Pbase is reduced to view_channel (V6). nina@b.com joined 2 minutes ago under a policy that restricts attach_files, mention_everyone and create_invites for 10 minutes, so she has view_channel, send_messages, add_reactions, speak_and_share (V7).

Admins skip all of this: alice@a.com has all 12 channel-scoped permissions in #staff (V8).

Which error you get

The server checks a request in a fixed order and answers with the first failure (10 §6.3). Authentication, account state, membership, community bans and channel visibility come first; a channel you can't view always answers 404 core.not_found, never 403, so you learn nothing about it. Then:

# Check Error
a Timeout, for requests that need more than view_channel moderation.timed_out (403, data.until)
b Missing permission, tested against Pbase 403 core.forbidden, data.permission
c Hierarchy role.hierarchy, moderation.target_protected, permission.not_held
d New-member restriction moderation.new_member_restricted (403, data.permission, data.until)
e Slow mode, then rate limits moderation.slow_mode, core.rate_limited (429)

Because check b uses Pbase, a restriction shows up as its own error rather than as a missing permission. With the setup above:

  • Nina uploading in #general gets moderation.new_member_restricted with data.permission attach_files, because attach_files is in her Pbase (C1).
  • Tim posting in #general gets moderation.timed_out, but reading the timeline works (C2, C3).
  • Mo creating a role gets 403 core.forbidden with data.permission manage_roles, not role.hierarchy, because a missing permission is checked before hierarchy (C6).

A missing registry permission is always reported as 403 core.forbidden with data: {"permission": "<name>"}, in every document, so you need only one renderer for it (10 §6.3). mention_everyone never fails a request: without it the server accepts the post and records mentionAll as false (10 §3.5).

When permissions change

Any change takes effect at once for every later request. The server also pushes new lease lists to call control within 1 s (Calls), stops delivering a channel's events to members who lost view_channel there, and, in a secure channel, removes their devices from the MLS group (10 §6.5). The affected member gets permission.changed as a hint only; recompute from roles and overwrites anyway.

The role and overwrite API

All endpoints are on the community's server and need a home or remote session of an active or needs_encryption member. Addresses in paths are canonical, with non-ASCII characters percent-encoded as UTF-8; the server rewrites an address on one of its own alias domains, and any other non-canonical address fails with address.non_canonical. me in place of an address means the caller (10 §7).

Endpoint Purpose Requires
GET /v1/roles List roles by position Member
POST /v1/roles Create a role manage_roles
PATCH /v1/roles/{roleId} Edit a role manage_roles + hierarchy
PUT /v1/roles/{roleId}/members/{address} Grant a role manage_roles + hierarchy
GET /v1/roles/members/{address} A member's roles and effective permissions Member
PUT /v1/roles/overwrites/{ctx}/member/{address} Set a member overwrite manage_roles there, or the speak_and_share exception

The delete, reorder and role-overwrite variants are in 10 §7.1.

Creating and editing roles

POST /v1/roles takes the new role. position is optional, defaults to 1, and must be below your top position (10 §7.3):

{ "name": "Event host", "permissions": ["mute_members", "mention_everyone"],
  "color": "#6a1b9a", "showSeparately": false, "position": 1 }

The response is 201 with the Role, and the server emits role.created and, if other roles moved, role.reordered.

PATCH /v1/roles/{roleId} takes any of name, color and showSeparately, and a permission change in one of two forms:

  • "permissions": [...] replaces the whole list. Every name added or removed must satisfy the no-escalation rule.
  • "addPermissions": [...] and "removePermissions": [...] change only the named entries. Clients SHOULD use this form, because it preserves permissions they don't know.

Mixing the forms, or naming one permission in both lists, fails with core.invalid_request. The response is 200 with the updated Role and the event is role.updated; every change, including a position change from renumbering, increases version. Send ifVersion to make the edit conditional; on a mismatch the server answers 409 role.version_conflict with the current Role in data.current, which you merge and retry. For everyone only the permissions can change; for admin nothing can (role.system_role).

POST /v1/roles/reorder takes {"order": [...]} listing every ordinary role from lowest to highest. A list that doesn't match the current set fails with core.conflict, so refetch and try again; changing the relative position of a role at or above your top position, or moving any role to or above it, fails with role.hierarchy. The response is 200 {"items": [Role…]}. DELETE /v1/roles/{roleId} answers 204, removes the role from its holders and deletes its overwrites; for a system role it fails with role.system_role.

Granting roles and setting overwrites

Grant with PUT /v1/roles/{roleId}/members/{address} and an empty body. It is idempotent: a new grant answers 200 with {"address", "roleIds"} and emits role.member_added; granting a held role returns the same response with no event (10 §7.4). DELETE on the same path removes the role, answers 204, is idempotent, and emits role.member_removed only if the role was held. Both fail with role.system_role for the everyone role.

An overwrite PUT replaces the whole overwrite. Its errors are permission.not_overwritable, permission.unknown, permission.not_held, role.hierarchy and permission.overwrite_limit. This is the request a client sends for "Stop them speaking and sharing here" (10 §7.5):

PUT {base}/v1/roles/overwrites/ch:01938a11-2b3c-7d4e-8f90-112233445566/member/carol@c.com
Authorization: Bearer rs_4kJ…
Content-Type: application/json

{ "allow": [], "deny": ["speak_and_share"] }
{
  "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "targetType": "member",
  "address": "carol@c.com",
  "allow": [],
  "deny": ["speak_and_share"],
  "updatedAt": "2026-12-04T18:30:02.118Z",
  "updatedBy": "mo@b.com"
}

If Carol already had a member overwrite, keep its other entries and add speak_and_share to its deny; replacing it with only this deny is a change to other names, which needs manage_roles (10 §8.7). Sending both lists empty deletes the overwrite and answers 204.

Moderation actions

Rules for every action

These apply to deletions, kicks, timeouts, mutes and bans alike (10 §8.2):

  • Who. You need the action's permission, you can't target yourself (moderation.self_target), and you must outrank the target (moderation.target_protected). Admins are protected from everyone. A former member or DM participant counts as top position 0.
  • Reason. Every action accepts reason, 0–512 Unicode scalar values, stored in the audit log. The target sees it only if the request sets "showReason": true; the default is false.
  • Report link. Every action accepts reportId, which links the audit entry to that report and, if the report is open or in_review, adds the entry to the report's actions.
  • Idempotency. Clients MUST send an Idempotency-Key header with every POST under /v1/moderation/ and /v1/bans, and servers honour it for at least 24 h. Without a key, a POST whose body equals that of an action the same actor already applied to the same target, and that is still in force, returns the existing object with 200. A kick of a target already kicked in the last 60 s returns that kick's auditId.
  • Audit. Each action writes an audit entry in the same transaction, and the response's auditId names it.
  • Notice first. The target gets moderation.applied on their me stream before their access is cut. It never names the moderator.
  • Remote targets. Actions are local to this server; nothing is sent to the target's home server, except a forwarded report.
  • Order of effects. For actions that remove access, the server commits the state change, notifies the target, stops delivery and revokes leases, starts MLS removal, and then emits the remaining events.

Deleting messages

POST /v1/moderation/message-deletions deletes messages by ID, or a member's recent messages (10 §8.3):

  • mids: 1–100 message IDs in ctx. Messages by someone who ranks at or above you are skipped and returned in protected, except your own.
  • author with withinMs (60,000 to 604,800,000, that is 1 minute to 7 days): that author's messages from the window. Add "allChannels": true to cover every channel where you hold manage_messages; ctx is then optional.
{ "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "mids": ["01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6"],
  "reason": "Spam" }
{ "deleted": ["01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6"],
  "notFound": [],
  "protected": [],
  "more": false,
  "auditId": "01938f52-77aa-7c01-9b11-0c0d0e0f1011" }

An author deletion handles at most 10,000 messages per request; when more is true, send the same request again. Each deleted message becomes a tombstone marked as removed by a moderator, and the server emits the normal deletion event so honest clients remove the content (Messaging). Never show who removed it. Messages held as evidence in a report that isn't resolved or withdrawn stay in the report's evidence store; only the timeline copy is deleted.

Deleting messages in a DM or group DM hosted on the server is for admins only.

Kicks

POST /v1/moderation/kicks ends a membership (10 §8.4):

{ "member": "carol@c.com", "reason": "Spam links", "showReason": true,
  "deleteMessagesWithinMs": 3600000 }

The membership becomes left with reason kicked, roles and member overwrites are removed, community events stop reaching the member's sessions, their call leases are revoked, and their devices are removed from every secure channel's MLS group. Their sessions stay valid for DMs hosted on the server. The response is 200 {"auditId": …}. A target that isn't an active or needs_encryption member fails with moderation.not_member.

deleteMessagesWithinMs on kicks and bans is absent or 0 for no deletion, otherwise 60,000 to 604,800,000; anything else fails with moderation.invalid_duration. A kick deletes from every channel where you hold manage_messages; a ban deletes from every channel (10 §9.4). The deletion writes a second audit entry, messages_deleted, whose relatedId points to the kick. A kicked member may rejoin under the community's join policy.

Timeouts

A timeout lets a member read and listen but not post, react, upload, invite, speak or share; their effective permissions become view_channel only (10 §8.5).

POST /v1/moderation/timeouts takes {"member", "durationMs", "reason"?, "showReason"?, "reportId"?}. durationMs runs from 60,000 (1 minute) to 2,419,200,000 (28 days); out of range is moderation.invalid_duration. Clients SHOULD offer the presets 1 minute, 10 minutes, 1 hour, 1 day and 1 week. A member has at most one Timeout, with no ID of its own; posting again with a different body replaces it. Read it with GET (the target may read their own) and lift it early with DELETE /v1/moderation/timeouts/{address}, which needs timeout_members and the hierarchy rule.

While timed out, the member is removed from both the audio and video lease lists in every call of the community, and requests that need more than view_channel fail with moderation.timed_out and data.until. Their MLS membership doesn't change. Within 60 s of until the server sends moderation.lifted and restores lease coverage. Show the timeout as one calm line in the composer, for example "You can't send messages until 6:40 PM".

Server mutes and Mute for everyone

A mute silences every audio source of a member in calls (microphone, screen sound, application sound) and leaves their screen video and webcam running (10 §8.6). It doesn't affect text. There are two kinds:

  • Mute for everyone covers one voice channel. Its endpoint and events belong to 15 §3.6; see Calls. It needs mute_members in that channel and follows the same self-target and hierarchy rules.
  • Server mute covers every voice channel of the community. It needs mute_members at community level.

POST /v1/moderation/server-mutes takes {"member", "durationMs"?, "reason"?, "showReason"?, "reportId"?}. durationMs is 60,000 to 2,419,200,000, or absent for "until lifted". Within 1 s the member is removed from the audio lease list in every call of the community, and call control reports the block as audioBlockedBy: "server_muted". When the mute ends they are added back if they still hold speak_and_share. Server mutes don't apply to DM calls.

Any member may list server mutes with GET /v1/moderation/server-mutes, because call participants see who is muted, and other clients learn of changes from moderation.server_mute_changed. The muted member's indicator says "Muted by a moderator", and they can't unmute themselves.

Revoking speak_and_share

Stopping someone speaking and sharing is a permission change, not a separate action (10 §8.7). In one channel, set a member overwrite that denies speak_and_share, which mute_members alone allows. Everywhere, remove the roles that grant it or edit everyone, which needs manage_roles. Call control then removes the member from both lease lists, so voice, screen and webcam all stop within 4 s. The audit log records it as overwrite_set.

Use this rather than a mute when the problem is a screen share or webcam, because a mute only cuts audio.

To see one member's timeout, server mute, ban and open-report count, use GET /v1/moderation/members/{address}; each part is returned only if you hold its permission, and you need at least one of timeout_members, mute_members, ban_members and manage_reports (10 §8.9).

Bans

A Ban keeps an account, or every account of a domain, out of the community, and optionally out of everything the server hosts (10 §9.1):

{
  "id": "01938f55-0c1d-7e2f-8a3b-4c5d6e7f8091",
  "targetType": "address",
  "address": "carol@c.com",
  "canonical": true,
  "scope": "community",
  "reason": "Repeated harassment after a timeout",
  "showReason": false,
  "createdBy": { "kind": "member", "address": "mo@b.com" },
  "createdAt": "2026-12-04T18:40:00.000Z",
  "expiresAt": null,
  "reportId": "01938f50-9a8b-7c6d-8e5f-4a3b2c1d0e0f"
}

Scopes

Scope Who Targets Covers
community ban_members address and domain Membership, every channel, every community call, invites and joins. Not DMs hosted on the server.
server Admins only address only All of the above, plus every DM and group DM the server hosts, remote sessions, message requests to local accounts, and, for a local account, 05's suspended state.

A community ban deliberately leaves the person's unrelated DMs working (10 §9.3). There is no server-scope domain ban; to cut off a whole server, admins use a federation block (Federation).

Matching

The server canonicalizes the target, so one ban covers every alias domain of the target's server. If the target's server can't be resolved, the ban is still created with canonical: false, so a moderator can act during an attack, and resolution is retried at least every 24 h (10 §9.2).

Unlike roles, timeouts and mutes, bans match the address whatever the account's incarnation, so a ban also applies to a later account at the same address; moderators can lift it if it now hits a different person (Addresses).

You can't create a ban that matches yourself (moderation.self_target). A domain ban can't name the server's own domains (moderation.invalid_target), and it needs you to outrank every current member it matches; otherwise it fails with moderation.target_protected, listing them in data.protected.

Creating, expiry and lifting

POST /v1/bans takes exactly one of address or domain, plus optional scope (default community), durationMs (3,600,000, that is 1 hour, or more; absent for permanent), deleteMessagesWithinMs, reason, showReason and reportId (10 §9.6). The response is 201 with the Ban. If an active ban for the same target and scope exists and the body differs, the server updates it in place, keeping its id, and answers 200. To change only reason, showReason or expiresAt later, use PATCH /v1/bans/{banId}.

The effects follow the kick sequence: a current membership in any state becomes banned, roles and member overwrites are removed, the target gets moderation.applied, community events stop, leases are revoked, MLS removal starts and external commits from the account are refused. For scope server, the target's remote sessions end, a local account is suspended, the target is removed from group DMs, 1:1 DMs close read-only for the ban's lifetime, and their message requests are silently dropped (10 §9.4).

Every refusal caused by a ban is 403 moderation.banned with data {"scope", "expiresAt", "reason"} (the reason only if shown). Show one plain sentence, such as "You've been banned from Sloppy Voice Lounge", with the end date and reason when present, and never who banned them.

A temporary ban stops matching at expiresAt; lifting it early is DELETE /v1/bans/{banId}. Either way the membership becomes left with reason unbanned and the person may rejoin. Roles, overwrites, deleted messages and MLS leaves are not restored (10 §9.5).

Moderation in secure contexts

Secure contexts only

In a secure context the server can't read content, so it enforces permissions on what it can see: the session's account, the SealedMessage header kind (message, edit, reaction, delete), attachment upload requests, the cleartext mention hint and call-control requests (10 §3.5).

The differences from insecure contexts, and why they hold:

  • Losing access is cryptographic. Losing view_channel, a kick and a ban each remove the member's devices from the MLS group, with reasons lost_access, kicked and banned, so a colluding member can't feed them future epoch secrets. A member who regains view_channel rejoins by external commit with no prompt (10 §6.5, 10 §8.8, MLS and sealed messages).
  • Deletion removes ciphertext. The server deletes the stored SealedMessage, the edits and reactions it can link to it, and its attachments, and tombstones it with by: "moderator". The tombstone keeps sigHash, so members who kept a copy can still report the message. No key is needed (10 §8.3).
  • Moderation needs no security door. Moderation actions name messages by ID and people by address and never read content. A moderator on an insecure account or an unenrolled device can delete, kick, ban, time out and mute in a secure channel they can view (10 §8.2). Reading report evidence is different (see Who sees a report).
  • Key management is never restricted. Apart from the membership, ban and view_channel checks that decide whether a device may be in the group at all, no permission, timeout, mute, restriction, slow mode or rate limit applies to MLS handshakes, GroupInfo uploads, mls.epoch_ack or call.epoch_ready, because a muted or timed-out member may be the designated committer and would otherwise stall the group's removals (10 §3.5).

Warning

A moderation action can't remove what a client already received and decrypted. Honest clients MUST remove deleted content from display and local storage; a modified client may keep it (10 §8.1).

Calls are different: all call media passes through the hosting server's relay or SFU, which enforce leases themselves. When a kick, ban, timeout, mute or speak_and_share revocation takes effect, the media it covers stops reaching every listener within 4 s, modified clients included: a mute cuts only audio, and the other actions cut audio and video (10 §8.1, 15 §4.8, 15 §4.9).

Content rules inside the ciphertext, such as a forbidden link, can't be checked by the server. They are enforced after the fact through reports (10 §16).

Reports

What a report reveals

Anyone who can read a message can report it, in every mode. In a secure context a report reveals the per-message key K_msg of exactly the reported messages and of the surrounding messages the reporter chose to include, never a history key, so nothing else becomes readable. The sender's device signature and key commitment prove that the sender's device sent exactly that content, so a reporter can't forge or alter it (10 §10.1, Cryptography). The person reported never learns who reported them from the protocol.

Filing a report

The client keeps the reporter's decisions to a minimum (10 §10.3):

  1. The user picks "Report" on one or more messages (kind: "messages") or on a profile or call tile (kind: "member").
  2. One screen shows the categories, an optional note, and, for message reports, a switch "Include the messages around it", on by default. Under them is the disclosure line, then "Send report".
  3. With the switch on, the client adds up to 10 messages before the earliest reported message and up to 10 after the latest as context items, counting only messages it has already decrypted or loaded and never tombstones. It MUST NOT include a message the user couldn't read.
  4. In a secure context, the client derives K_msg for each item and puts it in kMsg, and adds the fileKey of each attachment of a reported item. If it knows the server no longer stores a sealed message, it MAY include its own copy in sealed. It never sends copies of insecure messages, because nobody could verify them.
  5. The client sends POST /v1/reports to the hosting server.

The disclosure line MUST be shown before sending and say who will see what (10 §10.11). For a secure channel the reference text is: "This chat is end-to-end encrypted. Reporting shares the selected messages, and the messages around them if switched on, with this community's moderators so they can read them." The other contexts have their own lines in the spec.

Secondary links set routing: "admins" ("Send to the server's admins instead") and, when the target's home server isn't the server the report goes to, allowForward: false ("Don't pass this on to other servers"), which also drops the forwarding sentence from the disclosure line. The category values are in 10 §10.2; the server rejects an unknown one with core.invalid_request (10 §10.3).

POST {base}/v1/reports
Content-Type: application/json

{
  "ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
  "kind": "messages",
  "category": "harassment",
  "note": "This has been going on for a week.",
  "includeContext": true,
  "allowForward": true,
  "items": [
    { "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6", "role": "reported",
      "kMsg": "Zx8c1qD0y7mPq4nV9kL2wB6tR3sH5jF0aE1uC8gI2oM",
      "attachments": [ { "attachmentId": "01938f31-0000-7a00-8b00-00000000aa01",
                         "fileKey": "pQ4rS5tU6vW7xY8zA9bC0dE1fG2hI3jK4lM5nO6pQ7r" } ] },
    { "mid": "01938f2f-ff00-7a00-8b00-0000000000c1", "role": "context",
      "kMsg": "b7Hc2Ld9Kq0Pw3Ry5Tz8Uv1Xn4Ms6Ja0Fg2Eh5Di9Ck" }
  ]
}

Two cases go to the reporter's own home server instead of the hosting server (10 §10.10): a message request that hasn't been accepted, because the client never contacts the hosting server before Accept; and a DM hosted on the target's own home server, because that server may be run by the target and would learn who reported. These reports also carry host and target, a message-request report carries requestId, and sealed items carry the sender's credential so the home server can verify them (10 §10.12).

What the server does

The hosting server (10 §10.4):

  1. checks the reporter could read the items. Someone who has left, been kicked or been community-banned may still report what they could read for 30 days, so reporting skips the membership and timeout checks;
  2. checks every reported item has the same author, who isn't the reporter (report.invalid_items), and the counts: 1 to maxReportItems (default 25) reported items, at most 10 context items on each side (report.too_many_items);
  3. refuses a duplicate with 409 report.duplicate and data.reportId: the same reporter already has a report that isn't resolved or withdrawn covering any of the same reported messages, or, for a member report, the same target, ctx and did within 24 h;
  4. snapshots the evidence and verifies every item, storing a result such as verified, plaintext or bad_signature;
  5. refuses a secure-context messages report in which no reported item verifies, with 422 report.unverifiable, and stores nothing;
  6. routes and stores the report, emits report.created, writes no audit entry, and answers 201 with the reporter view: {"id", "ctx", "kind", "category", "status", "outcome", "createdAt", "updatedAt"}.

Note

Document 10 gives no report-specific retry rule, but 03 §14.2 lets any client POST carry an Idempotency-Key, so send one and a retry returns the stored 201. Without a key, a retry of a filing that succeeded lands on the duplicate check; treating that 409 report.duplicate as success and using data.reportId is this guide's suggestion, not spec text.

Who sees a report

Report Visible to
Channel or community report Admins, and holders of manage_reports who have view_channel in its ctx (every holder when ctx is null)
Category child_safety or illegal Also always admins
routing: "admins" Admins only
DM or group DM report Admins of the hosting server only
Forwarded, or filed at the reporter's home server Admins of the receiving server only

The target never sees a report about them, even if they hold manage_reports or are an admin; if they would be the only one able to see it, it goes to the other admins, and with no other admins it waits for the operator. A moderator's access ends at once when they lose the permission or view_channel (10 §10.5).

Secure contexts only

Evidence from a secure context (content, sealed, kMsg, fileKey and attachment blobs) is returned only to a secure account on an enrolled device. Any other moderator session gets the report and each item's metadata and verification result, with withheld set to security.account_required or security.device_not_enrolled, and the client shows the matching setup card (10 §10.5).

Moderator clients show content only for items whose result is verified or plaintext, with a mark such as "Verified: sent by this person's device". Every other result is a one-line explanation without content (10 §10.8).

Working the queue

The queue is GET /v1/reports, oldest open first, filtered by status, ctx, target, category, origin or assignee. Moderators change a report with PATCH /v1/reports/{id} (10 §10.6):

  • A moderator claims a report by setting status: "in_review", which sets assignee. The assignee or an admin can release it back to open.
  • A moderator resolves it with a resolution: action_taken, no_action, invalid or duplicate. Reports still open or in_review after 365 days are resolved as expired.
  • The reporter can withdraw an open report with no linked actions using DELETE /v1/reports/{id}; withdrawn is final. An admin can reopen a resolved report within 30 days.

Any other transition fails with report.status_conflict. PATCH accepts ifVersion, and a mismatch is 409 report.version_conflict with the current Report in data.current (10 §10.8).

To link an action to a report, pass the report's ID as reportId on the action. On resolution the reporter gets report.resolved with a coarse outcome, action_taken or reviewed, and never learns what was done or by whom.

Evidence is stored apart from the timeline, so deletions don't touch it. It is deleted 90 days after resolution, within 24 h of a withdrawal, or when the report expires, unless an admin sets preserveEvidence for a legal hold; clearing it starts the 90 days again. Revealed kMsg values decrypt one message each and MUST be treated as plaintext: encrypted at rest and never logged (10 §10.7).

Forwarding to the sender's home server

An admin may forward a report to the target's home server with POST /v1/reports/{id}/forward. The request has an empty body and answers 202 {"forwardedTo": ["<domain>"]}. Forwarding is never automatic, and it is refused with 403 report.not_forwardable, with data.reason naming the failed condition, unless all of these hold (10 §10.9):

  • it is a messages report with origin local or reporter_home;
  • the reporter left allowForward as true;
  • the target's home server is a different server;
  • at least one reported item verified as verified or plaintext;
  • it hasn't been forwarded to that server before.

The server-to-server event report.forwarded carries only the reported items with their evidence, never the reporter's address, note, context items, resolutionNote or assignee, because the target's home server may be run by the target. In a 1:1 DM the target's server can still infer who reported, and the disclosure line and the admin's confirmation say so.

The receiving server re-verifies sealed items itself, checking the sender's identity with the sender's home server rather than trusting the supplied credential (10 §10.12). It drops the event if origin isn't the S2S token's iss, if the target isn't a local account, or if targetInc names an earlier account at the address; it deduplicates on (origin, reportId) and accepts at most 100 per origin domain per day. A plaintext item is only the forwarding server's claim, so its admins SHOULD NOT suspend an account on it alone (10 §10.9).

The audit log

The audit log is the community's append-only record of who changed what. It lets admins check their moderators, and it never holds message content, report content or reporter identities (10 §11.1). An AuditLogEntry:

{
  "id": "01938f52-77aa-7c01-9b11-0c0d0e0f1011",
  "seq": 4521,
  "at": "2026-12-04T18:40:00.004Z",
  "actor": { "kind": "member", "address": "mo@b.com" },
  "action": "member_banned",
  "targetType": "ban",
  "targetId": "01938f55-0c1d-7e2f-8a3b-4c5d6e7f8091",
  "targetAddress": "carol@c.com",
  "ctx": null,
  "reason": "Repeated harassment after a timeout",
  "changes": [ { "field": "scope", "before": null, "after": "community" } ],
  "reportId": "01938f50-9a8b-7c6d-8e5f-4a3b2c1d0e0f",
  "restricted": false
}

actor.kind is member, system (expiry, anti-spam) or operator (actions outside the protocol). Order entries by seq, never by id. The action values, which include changes logged by other documents, are listed in 10 §11.3; display unknown values as "Other change".

Read it with GET /v1/audit-log, which needs view_audit_log and returns entries newest first, limit 1–100 (default 50), filtered by action, actor, targetAddress, targetType, ctx, reportId, since and until. The response includes retentionDays. Entries are immutable and kept for at least 90 days, 365 by default. Entries with restricted: true, such as server-scope bans, DM moderation and report forwarding, are returned only to admins (10 §11.4). Each new entry is also pushed as moderation.logged.

The audit log is an accountability tool among moderators, not evidence against the server: the hosting server could write anything into it (10 §16).

Anti-spam

Anti-spam measures MUST work without reading content, because secure contexts give the server none. They rely on rates, sizes, membership age, attachment counts and mention hints (10 §12).

Rate limits

On top of the per-context limits of 11 §17.3 and the DM limits of 12 §10.6, document 10 sets these defaults (10 §12.1):

Action Default limit Counted per
Messages and edits across the community 120 per minute Member
Invite creation 10 per hour Member
Community joins 10 per 10 minutes IP address
Report filing 20 per hour and 100 per day Reporter
Role, overwrite and moderation requests 60 per minute Actor
New DMs and group adds by a young local account newAccount.maxNewDmsPerDay (default 5) per 24 h Account

Over a limit the server answers 429 core.rate_limited with Retry-After. Clients MUST queue and retry quietly, never showing an error for a first 429 on a message send, and MUST NOT resend before Retry-After has passed.

Warning

Resending early can time out your user. With floodTimeout.enabled, three flood hits within 60 s apply an automatic timeout of floodTimeout.durationMs. A flood hit is a message or reaction request rejected with 429 under 11 §17.3 or 10 §12.1 that arrived before the Retry-After of the previous 429 for the same limit had passed. A client that waits for Retry-After never counts. Admins and members holding manage_messages in every channel are exempt (10 §12.3).

The anti-spam policy

Each community has one AntiSpamPolicy. Any member may read it with GET /v1/moderation/policy, because clients need slow-mode intervals to show a countdown. The server filters slowMode to the channels the caller can view, except for holders of manage_community, and filters moderation.policy_updated the same way (10 §12.2):

{
  "version": 7,
  "newMember": { "enabled": true, "durationMs": 600000,
                 "restricted": ["attach_files", "mention_everyone", "create_invites"] },
  "newAccount": { "enabled": true, "ageMs": 86400000, "maxNewDmsPerDay": 5 },
  "slowMode": { "ch:01938a11-2b3c-7d4e-8f90-112233445566": 10000 },
  "mentionLimit": 20,
  "floodTimeout": { "enabled": true, "durationMs": 600000 }
}
  • newMember removes the restricted channel-scoped permissions for durationMs (0 to 604,800,000) after joining; view_channel can't be listed. Show the resulting moderation.new_member_restricted once in the composer, for example "New members can share files after 10 minutes", not as an error dialog.
  • slowMode maps a channel to an interval of 1,000 to 21,600,000 ms. Members without manage_messages there may post one message per interval; edits, reactions and deletes are exempt. Too soon gets 429 moderation.slow_mode with retryAfterMs.

The remaining members and their ranges are in 10 §12.2.

Change it with PATCH /v1/moderation/policy, which needs manage_community and takes a JSON Merge Patch: {"slowMode": {"ch:…": null}} turns slow mode off in one channel. ifVersion gives 409 moderation.version_conflict with the current policy in data.current on a mismatch. A result that breaks a constraint fails with core.invalid_request and changes nothing.

Any other automatic action a server takes must be a regular Timeout, ServerMute, Ban or message deletion, logged with actor kind system and liftable by moderators. Automatic actions never ban by domain or with scope server (10 §12.3). For strangers in DMs, message requests are the main defence; see Direct messages.

Events

The events of document 10 arrive on three kinds of stream (10 §13), described in Events:

{
  "v": 1,
  "t": "moderation.applied",
  "id": "01938f55-0c1e-7000-8000-00000000c0de",
  "ctx": "me",
  "seq": 212,
  "ts": "2026-12-04T18:40:00.010Z",
  "d": {
    "action": "timeout",
    "scope": "community",
    "ctx": null,
    "until": "2026-12-04T19:40:00.000Z",
    "reason": null
  }
}

On moderation.applied with kick or ban, remove the community from the sidebar after one plain message and stop reconnecting to it. Show a generic "A moderator changed what you can do here" for an action you don't know. On session.resync_required for community, refetch GET /v1/roles and GET /v1/moderation/policy; for me, refetch GET /v1/roles/members/me and any moderation lists you show (10 §13.1).

The error codes are in 10 §14, and the trade-offs, including what a hosting server can do to its own community, in Security model.