Skip to API content
TalkLabs API Docs v3
Recipes
POST Moderate chat

Moderator Apply Decision to Flagged User

If a user is reported by other users as being abusive, the user will be sent to the moderation queue and is flagged while in the queue.

POST /api/v3/{appid}/chat/rooms/{roomid}/moderation/flaggedusers/{userid}/applydecision

If a user is reported by other users as being abusive, the user will be sent to the moderation queue and is flagged while in the queue.

  • Invoke this method to either approve or reject the user
  • In either case the user is no longer flagged
  • In either case the reports are erased
  • If apply is true, user gets shadowban effect with no expiration
  • If apply is false, flag is remove

BODY PROPERTIES

  • approve : (required) Pass true to approve the user (indicate the user is not abusive) or false to reject the user.
Request

Parameters

Values in the path and query string.

appid path
string TalkLabs ID required

The TalkLabs application ID assigned to your account.

Example: your-app-id
roomid path
string TalkLabs ID required

The TalkLabs assigned room ID returned when the room was created.

Example: room-id
userid path
string customer-defined required

The customer defined user ID from your application or identity system.

Example: u-8842
Request

JSON body

Send as application/json.

approve
boolean required
Request example
{
  "approve": true
}
Response

Status codes

Every JSON response uses the API result envelope.

200 OK ApiResult
400 Bad Request ApiResult
403 Forbidden ApiResult
404 Not Found ApiResult
500 Internal Server Error ApiResult
Search all 118 endpoints Try “join room”, “moderate”, or “POST”.
Request environment

Connect your application

These values fill request examples and the API console. They stay in this browser tab and are never sent to TalkLabs until you run a request.

Credentials are stored in sessionStorage, not in cookies or analytics.