Skip to API content
TalkLabs API Docs v3
Recipes
POST Chat

Report Message

A reported message is temporarily removed from the chat event stream until it is evaluated by a moderator.

POST /api/v3/{appid}/chat/rooms/{roomid}/events/{eventid}/report

A reported message is temporarily removed from the chat event stream until it is evaluated by a moderator.

POST PARAMETERS

  • userid : (optional) The application provided userid of the user who reported the abuse.

  • reporttype: (required) This is the classification of the reported post. It must be one of the below values (note that 'false' represents information considered false by the reporter:

    • abuse

    • spam

    • selfharm

    • hate

    • violence

    • harassment

    • nudity

    • illegal

    • false

    • other

RESPONSE CODES

  • 200 | OK : Sweet, sweet success.

  • 400 | BadRequest : Something is wrong with your request. View response message and errors list for details.

  • 403 | Forbidden : The userid issuing the request is banned from chatting in this room (or is banned globally), or, attempted to report an event that was published by a moderator or admin.

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

The TalkLabs assigned chat event ID.

Request

JSON body

Send as application/json.

reportType
integer · int32 required
userId
string customer-defined required

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

Request example
{
  "reportType": {},
  "userId": "u-8842"
}
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.