Report Comment
curl --request POST \
--url https://relay.snipp.gg/comments/{id}/report \
--header 'Content-Type: application/json' \
--header 'relay-key: <api-key>' \
--data '
{
"reason": "Inappropriate content"
}
'import requests
url = "https://relay.snipp.gg/comments/{id}/report"
payload = { "reason": "Inappropriate content" }
headers = {
"relay-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'relay-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Inappropriate content'})
};
fetch('https://relay.snipp.gg/comments/{id}/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://relay.snipp.gg/comments/{id}/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' => 'Inappropriate content'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"relay-key: <api-key>"
],
]);
$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://relay.snipp.gg/comments/{id}/report"
payload := strings.NewReader("{\n \"reason\": \"Inappropriate content\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("relay-key", "<api-key>")
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://relay.snipp.gg/comments/{id}/report")
.header("relay-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Inappropriate content\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.snipp.gg/comments/{id}/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["relay-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Inappropriate content\"\n}"
response = http.request(request)
puts response.read_body{
"reported": true
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}Likes and Comments
Report Comment
Report a comment to the moderation team.
POST
/
comments
/
{id}
/
report
Report Comment
curl --request POST \
--url https://relay.snipp.gg/comments/{id}/report \
--header 'Content-Type: application/json' \
--header 'relay-key: <api-key>' \
--data '
{
"reason": "Inappropriate content"
}
'import requests
url = "https://relay.snipp.gg/comments/{id}/report"
payload = { "reason": "Inappropriate content" }
headers = {
"relay-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'relay-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Inappropriate content'})
};
fetch('https://relay.snipp.gg/comments/{id}/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://relay.snipp.gg/comments/{id}/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' => 'Inappropriate content'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"relay-key: <api-key>"
],
]);
$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://relay.snipp.gg/comments/{id}/report"
payload := strings.NewReader("{\n \"reason\": \"Inappropriate content\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("relay-key", "<api-key>")
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://relay.snipp.gg/comments/{id}/report")
.header("relay-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Inappropriate content\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.snipp.gg/comments/{id}/report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["relay-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Inappropriate content\"\n}"
response = http.request(request)
puts response.read_body{
"reported": true
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"username": "<string>",
"quota": 123,
"used": 123,
"resets_at": "2023-11-07T05:31:56Z",
"failed": [
{
"index": 123,
"error": "<unknown>"
}
]
}
}Report a comment to the moderation team.
Behavior
reasonis optional. When sent it must be a string of at most 200 characters after trimming.- You cannot report your own comment, a comment on a moderated post, or a comment whose author has blocked you.
- Comments on drafts, private posts you do not own, and team posts you are not a member of return
404. - You get a
report_receivednotification confirming the report. - Reports share one rate limit bucket with post reports and user reports: 3 per minute.
Examples
curl -X POST "https://relay.snipp.gg/comments/0b7c4e2a-9f13-4d6b-8a21-5c3e7f9d1a04/report" \
-H "relay-key: YOUR_RELAY_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "Harassment"}'
Responses
{
"reported": true
}
Errors
| Status | Type | When |
|---|---|---|
400 | invalid_request | Invalid id, reason over 200 characters or not a string, or your own comment |
401 | unauthorized | Missing or invalid key |
403 | moderated | The post is moderated |
403 | blocked | The comment’s author has blocked you |
403 | suspended | Your account is suspended |
404 | not_found | No such comment, or you cannot see its post |
429 | rate_limited | Too many reports |