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

Moderator Approve / Reject Message

If PRE MODERATION is enabled for a room, then all messages go to the queue before they can appear in the event stream.

POST /api/v3/{appid}/chat/moderation/queues/events/{eventid}/applydecision

If PRE-MODERATION is enabled for a room, then all messages go to the queue before they can appear in the event stream. For each incomming message, a webhook will be fired, if one is configured.

If the room is set to use POST-MODERATION, messages will only be sent to the moderation queue if they are reported.

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
eventid path
string TalkLabs ID required

The TalkLabs assigned chat event ID.

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.