Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Path Parameters
Id of the message whose details are to be fetched.
Response
200 - application/json
Get Message(s)
The response is of type object.
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/messages/{id} \
--header 'apikey: <api-key>'{
"data": {
"id": "1",
"conversationId": "cometchat-uid-1_user_cometchat-uid-2",
"sender": "cometchat-uid-2",
"receiverType": "user",
"receiver": "cometchat-uid-1",
"category": "message",
"type": "text",
"data": {
"entities": {
"receiver": {
"entity": {
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-1.webp",
"createdAt": 1751644824,
"lastActiveAt": 1751644824,
"name": "Andrew Joseph",
"role": "default",
"status": "offline",
"uid": "cometchat-uid-1"
},
"entityType": "user"
},
"sender": {
"entity": {
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-2.webp",
"conversationId": "cometchat-uid-1_user_cometchat-uid-2",
"createdAt": 1751644824,
"lastActiveAt": 1751644824,
"name": "George Alan",
"role": "default",
"status": "offline",
"uid": "cometchat-uid-2"
},
"entityType": "user"
}
},
"moderation": {
"status": "approved"
},
"text": "Hi new user"
},
"sentAt": 1750335220,
"updatedAt": 1751644906
}
}This endpoint is used to retrieve the details of a message that was submitted for moderation. The message is fetched along with its current moderation status based on the app’s configured rules.
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/messages/{id} \
--header 'apikey: <api-key>'{
"data": {
"id": "1",
"conversationId": "cometchat-uid-1_user_cometchat-uid-2",
"sender": "cometchat-uid-2",
"receiverType": "user",
"receiver": "cometchat-uid-1",
"category": "message",
"type": "text",
"data": {
"entities": {
"receiver": {
"entity": {
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-1.webp",
"createdAt": 1751644824,
"lastActiveAt": 1751644824,
"name": "Andrew Joseph",
"role": "default",
"status": "offline",
"uid": "cometchat-uid-1"
},
"entityType": "user"
},
"sender": {
"entity": {
"avatar": "https://assets.cometchat.io/sampleapp/v2/users/cometchat-uid-2.webp",
"conversationId": "cometchat-uid-1_user_cometchat-uid-2",
"createdAt": 1751644824,
"lastActiveAt": 1751644824,
"name": "George Alan",
"role": "default",
"status": "offline",
"uid": "cometchat-uid-2"
},
"entityType": "user"
}
},
"moderation": {
"status": "approved"
},
"text": "Hi new user"
},
"sentAt": 1750335220,
"updatedAt": 1751644906
}
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Id of the message whose details are to be fetched.
Get Message(s)
The response is of type object.
Was this page helpful?