Skip to main content
Handle Message Report
Resolves a filed report against a chat message in a space’s integrated conversation. Requires the caller to be a moderator or admin of that space.

Path Parameters

string
required
UUID of the space.
string
required
UUID of the chat message report to resolve.

Body Parameters

string[]
required
One or more actions to take. Must contain at least one value. Available actions:
  • "remove-message" — marks the reported message as removed via moderation
  • "ban-user" — bans the author of the reported content from the space and the child spaces where they are an active member, and ends their membership of those spaces’ chats, so they can no longer post to or receive them (they keep read access to messages from before the ban). The same rules as Ban Member apply, with the same errors: a moderator cannot ban a moderator or admin, only the space creator can ban an admin, and the last admin of a space cannot be banned. A refused ban rolls back the whole request, including any removal in the same request. An author who is not a member of the space (for example, who left before the report was handled) is banned all the same: the ban is kept as a banned membership, so they can’t join the space or its child spaces. If the author is already banned in the space, the ban is not repeated and the rest of the request still applies; it is still re-applied to their active memberships in child spaces, under the same rules (reason is optional)
  • "dismiss" — dismisses the report without action (cannot be combined with other actions)
string
Optional. The message acted on is the report’s own; if sent, messageId must be that message.
string
Optional summary of the action taken. Stored as actionTaken on the report record.
string
Optional. The server bans the author of the reported content; if userId is sent, it must be that author, or the request is refused with 400 report/user-not-author.
string
Reason for the ban, kept in the space’s ban log. Optional; an empty reason is kept if it is left out.
string
Service or master key only: the moderator the key acts for. The request then has exactly that moderator’s permissions, so it is refused if they cannot moderate the space or are not allowed the ban.

Response

Returns 200 OK:

Error Responses

The userId sent is not the author of the reported content.
The reported content has no author to ban (for example, its author deleted their account).
The messageId sent does not match what the report is about, or the report is about another kind of content.
The user named by actingUserId cannot moderate this space.
A user token sent an actingUserId other than its own user.