Handle Message Report
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
"<string>"
],
"messageId": "<string>",
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId"
payload = {
"actions": ["<string>"],
"messageId": "<string>",
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actions: ['<string>'],
messageId: '<string>',
summary: '<string>',
userId: '<string>',
reason: '<string>'
})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId', 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/spaces/:spaceId/chat/reports/:reportId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'actions' => [
'<string>'
],
'messageId' => '<string>',
'summary' => '<string>',
'userId' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/spaces/:spaceId/chat/reports/:reportId"
payload := strings.NewReader("{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySpace — Moderation
Handle Message Report
Resolve a reported chat message within a space
Handle Message Report
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
"<string>"
],
"messageId": "<string>",
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId"
payload = {
"actions": ["<string>"],
"messageId": "<string>",
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actions: ['<string>'],
messageId: '<string>',
summary: '<string>',
userId: '<string>',
reason: '<string>'
})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId', 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/spaces/:spaceId/chat/reports/:reportId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'actions' => [
'<string>'
],
'messageId' => '<string>',
'summary' => '<string>',
'userId' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/spaces/:spaceId/chat/reports/:reportId"
payload := strings.NewReader("{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/chat/reports/:reportId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actions\": [\n \"<string>\"\n ],\n \"messageId\": \"<string>\",\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyResolves a filed report against a chat message in a space’s integrated conversation. Requires the caller to be a moderator or admin of that space.
Path Parameters
string
required
UUID of the space.
string
required
UUID of the chat message report to resolve.
Body Parameters
string[]
required
One or more actions to take. Must contain at least one value. Available actions:
"remove-message"— marks the message as removed via moderation (requiresmessageId)"ban-user"— bans the target user from the space (requiresuserIdandreason)"dismiss"— dismisses the report without action (cannot be combined with other actions)
string
UUID of the message to remove. Required when
remove-message is included in actions.string
Optional summary of the action taken. Stored as
actionTaken on the report record.string
UUID of the user to ban. Required when
ban-user is included in actions.string
Reason for the ban. Required when
ban-user is included in actions.Response
Returns200 OK:
{ "message": "Report handled successfully.", "code": "report/handled" }
Error Responses
Report Not Found — 404
Report Not Found — 404
{ "error": "Report not found.", "code": "report/not-found" }
Report Not in Space — 404
Report Not in Space — 404
{ "error": "Report does not belong to this space.", "code": "report/not-found-in-space" }
Message Not Found — 404
Message Not Found — 404
{ "error": "Message not found.", "code": "chat/message-not-found" }
User Not Found — 404
User Not Found — 404
{ "error": "User not found.", "code": "report/user-not-found" }
User Not a Member — 404
User Not a Member — 404
{ "error": "User is not a member of this space.", "code": "space/member-not-found" }
Invalid Action Combination — 400
Invalid Action Combination — 400
{ "error": "Cannot combine 'dismiss' with other actions.", "code": "report/invalid-actions" }

