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

Apply a comment moderation decision

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

POST /api/v3/{appid}/comment/moderation/queues/comments/{commentid}/applydecision

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

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

BODY PROPERTIES

  • approve : (required) Pass true to approve the comment or false to reject the comment.
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
commentid path
string TalkLabs ID required

The TalkLabs assigned comment ID.

Example: comment-id
Request

JSON body

Send as application/json.

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

Common variations

Historical examples filtered through the current request schema.

Approve Message in Queue
{
  "approve": true
}
Reject Message in Queue

This variation uses the endpoint and parameters described above.

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.