Report something
Report a published work, a public profile or a comment — with a key that holds community:write, as your account, ten an hour; or with no key, anonymously, paced per address and network and paying a…
curl -X POST https://api.auray.ai/v1/community/reports \
-H "content-type: application/json" \
-d '{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}'import { createClient } from "@auray/client";
const auray = createClient(); // this route needs no key
const answer = await auray.platform.community.report({ kind: "publication", id: "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d", category: "copyright", details: "This is my photograph, published without my permission." });
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # this route needs no key
answer = auray.platform.community.report(kind="publication", id="3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d", category="copyright", details="This is my photograph, published without my permission.")
print(answer)const res = await fetch("https://api.auray.ai/v1/community/reports", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}),
});
console.log(await res.json());import requests
r = requests.post(
"https://api.auray.ai/v1/community/reports",
json={
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
body := []byte(`{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/community/reports", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/community/reports");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"kind" => "publication",
"id" => "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category" => "copyright",
"details" => "This is my photograph, published without my permission.",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/community/reports")
req = Net::HTTP::Post.new(uri)
req["Content-Type"] = "application/json"
req.body = {
"kind" => "publication",
"id" => "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category" => "copyright",
"details" => "This is my photograph, published without my permission."
}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/reports"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/community/reports");
var body = """
{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"kind": "<string>",
"category": "<string>",
"received": true,
"merged": true,
"hidden": true,
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}Report a published work, a public profile or a comment — with a key that holds community:write, as your account, ten an hour; or with no key, anonymously, paced per address and network and paying a proof-of-work challenge from POST /v1/community/reports/challenge (send its challenge and your nonce; one challenge is one report). The same report again while it is open is merged into it. A severe report (csam, nonconsensual_likeness) is read first; it hides a work or a comment while our team reviews it once severe reports from enough accounts of some standing have been filed, never on one account's word, and an anonymous report never counts toward that. A report names no account of yours or of the target's.
Authorizations
No key needed: a report with none is anonymous, paced per address and network, and pays a proof-of-work challenge from POST /v1/community/reports/challenge — send its challenge and your nonce in the body. A key that holds community:write reports as its account and solves none.
"publication", "creator", "comment"."csam", "nonconsensual_likeness", "violent_extremism", "voice_cloning", "harassment", "copyright", "disinformation", "other".POST /v1/community/reports/challenge, unchanged. Ignored with a key.sha256("<salt>.<nonce>") begins with the challenge's bits zero bits. Ignored with a key. 0 to 64 characters.Received.
"report"."publication", "creator", "comment"."csam", "nonconsensual_likeness", "violent_extremism", "voice_cloning", "harassment", "copyright", "disinformation", "other".Headers:
| Header | Description |
|---|---|
RateLimit-Limit | Burst capacity. |
RateLimit-Remaining | |
RateLimit-Reset | Seconds until refill. |
X-RateLimit-Limit | |
X-RateLimit-Remaining | |
X-RateLimit-Reset | Unix seconds. The X- spelling is what client libraries read. |
X-Request-Id |
Was this page helpful?
curl -X POST https://api.auray.ai/v1/community/reports \
-H "content-type: application/json" \
-d '{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}'import { createClient } from "@auray/client";
const auray = createClient(); // this route needs no key
const answer = await auray.platform.community.report({ kind: "publication", id: "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d", category: "copyright", details: "This is my photograph, published without my permission." });
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # this route needs no key
answer = auray.platform.community.report(kind="publication", id="3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d", category="copyright", details="This is my photograph, published without my permission.")
print(answer)const res = await fetch("https://api.auray.ai/v1/community/reports", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}),
});
console.log(await res.json());import requests
r = requests.post(
"https://api.auray.ai/v1/community/reports",
json={
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
body := []byte(`{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/community/reports", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/community/reports");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"kind" => "publication",
"id" => "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category" => "copyright",
"details" => "This is my photograph, published without my permission.",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/community/reports")
req = Net::HTTP::Post.new(uri)
req["Content-Type"] = "application/json"
req.body = {
"kind" => "publication",
"id" => "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category" => "copyright",
"details" => "This is my photograph, published without my permission."
}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/reports"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/community/reports");
var body = """
{
"kind": "publication",
"id": "3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d",
"category": "copyright",
"details": "This is my photograph, published without my permission."
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"kind": "<string>",
"category": "<string>",
"received": true,
"merged": true,
"hidden": true,
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}