Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Response
200 - application/json
List Reasons
The response is of type object.
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/reasons \
--header 'apikey: <api-key>'{
"data": [
{
"id": "unfiltered-content",
"name": "RawContent",
"description": "Content delivered without moderation or filtering.",
"createdAt": "1760449410",
"updatedAt": "1760449410"
},
{
"id": "spam",
"name": "Spam / Unwanted Content",
"description": "Repeated, promotional, or irrelevant content",
"createdAt": "1760443648",
"updatedAt": "1760443648",
"default": true
},
{
"id": "sexual",
"name": "Sexual Content",
"createdAt": "1758000762",
"updatedAt": "1758000762",
"description": "Explicit or inappropriate content"
},
{
"id": "harassment",
"name": "Harassment / Bullying",
"createdAt": "1758000761",
"updatedAt": "1758000761",
"description": "Insulting or threatening behavior"
}
],
"meta": {
"current": {
"limit": 10,
"count": 4
}
}
}Retrieves a list of moderation reasons configured for the app.
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/reasons \
--header 'apikey: <api-key>'{
"data": [
{
"id": "unfiltered-content",
"name": "RawContent",
"description": "Content delivered without moderation or filtering.",
"createdAt": "1760449410",
"updatedAt": "1760449410"
},
{
"id": "spam",
"name": "Spam / Unwanted Content",
"description": "Repeated, promotional, or irrelevant content",
"createdAt": "1760443648",
"updatedAt": "1760443648",
"default": true
},
{
"id": "sexual",
"name": "Sexual Content",
"createdAt": "1758000762",
"updatedAt": "1758000762",
"description": "Explicit or inappropriate content"
},
{
"id": "harassment",
"name": "Harassment / Bullying",
"createdAt": "1758000761",
"updatedAt": "1758000761",
"description": "Insulting or threatening behavior"
}
],
"meta": {
"current": {
"limit": 10,
"count": 4
}
}
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
List Reasons
The response is of type object.
Was this page helpful?