Report Message
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"details": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report"
payload = {
"reason": "<string>",
"details": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>', details: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => '<string>',
'details' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyChat — Messages
Report Message
Submit a report on a chat message
POST
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
/
messages
/
:messageId
/
report
Report Message
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"details": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report"
payload = {
"reason": "<string>",
"details": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>', details: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => '<string>',
'details' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/messages/:messageId/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"details\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySubmits a report flagging a message for review. The caller must be a member of the conversation and cannot report their own messages.
If a report for this message already exists, the caller’s report is added to it (incrementing the reporter count). If the caller already reported this message, a 200 is returned without creating a duplicate.
Path Parameters
string
required
The ID of the conversation.
string
required
The ID of the message to report.
Body Parameters
string
required
The reason for the report (e.g.
"spam", "harassment", "inappropriate").string
Optional additional details about the report.
Response
Returns one of:201 Created— new report submitted:{ "message": "Report submitted.", "code": "report/created" }200 OK— added to existing report:{ "message": "Report updated.", "code": "report/updated" }200 OK— already reported by this user:{ "message": "Report already registered by this user.", "code": "report/already-reported" }
Error Responses
Forbidden — 403
Forbidden — 403
{ "error": "You are not a member of this conversation.", "code": "chat/not-a-member" }
Not Found — 404
Not Found — 404
{ "error": "Message not found.", "code": "chat/message-not-found" }
Self-Report — 400 Bad Request
Self-Report — 400 Bad Request
{ "error": "You cannot report your own message.", "code": "report/self-report" }

