curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/report-message/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '
{
"settings": {
"maxReports": 3,
"useWebhook": true,
"webhookURL": "https://www.your-domain.com/take-action",
"basicAuthUsername": "abcd",
"basicAuthPassword": "1234"
}
}
'{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"maxReports": 3,
"useWebhook": true,
"webhookURL": "https://example.com/take-action",
"basicAuthUsername": "abcd",
"basicAuthPassword": "1234"
}
}
}
}
}Report message : Store new settings for Report message extension
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/report-message/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '
{
"settings": {
"maxReports": 3,
"useWebhook": true,
"webhookURL": "https://www.your-domain.com/take-action",
"basicAuthUsername": "abcd",
"basicAuthPassword": "1234"
}
}
'{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"settings": {
"maxReports": 3,
"useWebhook": true,
"webhookURL": "https://example.com/take-action",
"basicAuthUsername": "abcd",
"basicAuthPassword": "1234"
}
}
}
}
}AppID in which the extension has to be enabled/disabled
Show child attributes
Maximum number of unique reports after which moderation actions needs to be taken
Send reports to webhook and perform custom actions
The webhook URL to be triggered
Basic Auth messagename to use for calling your webhook URL
Basic Auth password to use for calling your webhook URL
Store Report Message Settings
Show child attributes
Show child attributes
Was this page helpful?