List Reviewed messages
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/reviewed-messages \
--header 'apikey: <api-key>'{
"data": [
{
"ruleId": "toxicity",
"ruleName": "Toxicity Detection (English)",
"revisionId": "default_toxicity_1",
"condition": {
"id": 1,
"isKeywordsReferencePresent": false,
"isMediaPresent": false,
"entity": "message",
"operand": "text",
"category": "toxicity",
"operator": "contains",
"value": [
"toxicity_greaterThan_70"
],
"message": "Text message contains Toxicity greater than 70%",
"weight": 1
},
"message": {
"id": "390079",
"muid": "_b0zr29wvr",
"conversationId": "cometchat-uid-1_user_cometchat-uid-3",
"sender": "cometchat-uid-1",
"receiverType": "user",
"receiver": "cometchat-uid-3",
"category": "message",
"type": "text",
"data": {
"text": "nigger",
"resource": "WEB-4_1_1-7896d270-ea72-4510-b993-282ab6a6afdb-1757953564776",
"entities": {
"sender": {
"entity": {
"uid": "cometchat-uid-1",
"name": "Andrew Joseph",
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-1.webp",
"status": "online",
"role": "default",
"lastActiveAt": 1757955944
},
"entityType": "user"
},
"receiver": {
"entity": {
"uid": "cometchat-uid-3",
"name": "Nancy Grace",
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-3.webp",
"status": "offline",
"role": "default",
"lastActiveAt": 1754574851,
"conversationId": "cometchat-uid-1_user_cometchat-uid-3"
},
"entityType": "user"
}
},
"moderation": {
"status": "disapproved",
"rule": {
"id": "toxicity",
"name": "Toxicity Detection (English)"
}
}
},
"sentAt": 1757955946,
"updatedAt": 1757955946
},
"action": [
"blockMessage"
],
"createdAt": 1757955951,
"updatedAt": 1757955951,
"blockedAt": "1757955951.000000000390079",
"appId": "253626bf6512389d"
}
],
"meta": {
"current": {
"limit": 50,
"count": 46
}
}
}AI Moderation
List Reviewed messages
Marks the blocked messages as reviewed. The moderator can approve the message or confirm it remains blocked. Once reviewed, the message is moved from the blocked messages list to the reviewed messages list.
GET
/
moderation
/
reviewed-messages
List Reviewed messages
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/reviewed-messages \
--header 'apikey: <api-key>'{
"data": [
{
"ruleId": "toxicity",
"ruleName": "Toxicity Detection (English)",
"revisionId": "default_toxicity_1",
"condition": {
"id": 1,
"isKeywordsReferencePresent": false,
"isMediaPresent": false,
"entity": "message",
"operand": "text",
"category": "toxicity",
"operator": "contains",
"value": [
"toxicity_greaterThan_70"
],
"message": "Text message contains Toxicity greater than 70%",
"weight": 1
},
"message": {
"id": "390079",
"muid": "_b0zr29wvr",
"conversationId": "cometchat-uid-1_user_cometchat-uid-3",
"sender": "cometchat-uid-1",
"receiverType": "user",
"receiver": "cometchat-uid-3",
"category": "message",
"type": "text",
"data": {
"text": "nigger",
"resource": "WEB-4_1_1-7896d270-ea72-4510-b993-282ab6a6afdb-1757953564776",
"entities": {
"sender": {
"entity": {
"uid": "cometchat-uid-1",
"name": "Andrew Joseph",
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-1.webp",
"status": "online",
"role": "default",
"lastActiveAt": 1757955944
},
"entityType": "user"
},
"receiver": {
"entity": {
"uid": "cometchat-uid-3",
"name": "Nancy Grace",
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-3.webp",
"status": "offline",
"role": "default",
"lastActiveAt": 1754574851,
"conversationId": "cometchat-uid-1_user_cometchat-uid-3"
},
"entityType": "user"
}
},
"moderation": {
"status": "disapproved",
"rule": {
"id": "toxicity",
"name": "Toxicity Detection (English)"
}
}
},
"sentAt": 1757955946,
"updatedAt": 1757955946
},
"action": [
"blockMessage"
],
"createdAt": 1757955951,
"updatedAt": 1757955951,
"blockedAt": "1757955951.000000000390079",
"appId": "253626bf6512389d"
}
],
"meta": {
"current": {
"limit": 50,
"count": 46
}
}
}Was this page helpful?
⌘I