Submit new report
curl --request POST \
--url https://backend.blox.report/v1/reports/new \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"answers": [
{
"questionId": "<string>",
"answer": "<string>"
}
],
"evidence": [
{
"url": "<string>",
"createEvidence": true
}
],
"reporter": {
"id": "<string>"
}
}
'import requests
url = "https://backend.blox.report/v1/reports/new"
payload = {
"userId": "<string>",
"answers": [
{
"questionId": "<string>",
"answer": "<string>"
}
],
"evidence": [
{
"url": "<string>",
"createEvidence": True
}
],
"reporter": { "id": "<string>" }
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userId: '<string>',
answers: [{questionId: '<string>', answer: '<string>'}],
evidence: [{url: '<string>', createEvidence: true}],
reporter: {id: '<string>'}
})
};
fetch('https://backend.blox.report/v1/reports/new', 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://backend.blox.report/v1/reports/new",
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([
'userId' => '<string>',
'answers' => [
[
'questionId' => '<string>',
'answer' => '<string>'
]
],
'evidence' => [
[
'url' => '<string>',
'createEvidence' => true
]
],
'reporter' => [
'id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://backend.blox.report/v1/reports/new"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://backend.blox.report/v1/reports/new")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.blox.report/v1/reports/new")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"appended": true
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}Reports
Submit new report
Requires permissions: reports.submit_report
POST
/
v1
/
reports
/
new
Submit new report
curl --request POST \
--url https://backend.blox.report/v1/reports/new \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "<string>",
"answers": [
{
"questionId": "<string>",
"answer": "<string>"
}
],
"evidence": [
{
"url": "<string>",
"createEvidence": true
}
],
"reporter": {
"id": "<string>"
}
}
'import requests
url = "https://backend.blox.report/v1/reports/new"
payload = {
"userId": "<string>",
"answers": [
{
"questionId": "<string>",
"answer": "<string>"
}
],
"evidence": [
{
"url": "<string>",
"createEvidence": True
}
],
"reporter": { "id": "<string>" }
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userId: '<string>',
answers: [{questionId: '<string>', answer: '<string>'}],
evidence: [{url: '<string>', createEvidence: true}],
reporter: {id: '<string>'}
})
};
fetch('https://backend.blox.report/v1/reports/new', 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://backend.blox.report/v1/reports/new",
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([
'userId' => '<string>',
'answers' => [
[
'questionId' => '<string>',
'answer' => '<string>'
]
],
'evidence' => [
[
'url' => '<string>',
'createEvidence' => true
]
],
'reporter' => [
'id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://backend.blox.report/v1/reports/new"
payload := strings.NewReader("{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://backend.blox.report/v1/reports/new")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.blox.report/v1/reports/new")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"<string>\",\n \"answers\": [\n {\n \"questionId\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"evidence\": [\n {\n \"url\": \"<string>\",\n \"createEvidence\": true\n }\n ],\n \"reporter\": {\n \"id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"appended": true
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"success": false,
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}Authorizations
API key and secret as key:secret in Authorization header.
Body
application/json
Required array length:
1 - 5 elementsShow child attributes
Show child attributes
Required array length:
1 - 5 elementsShow child attributes
Show child attributes
Show child attributes
Show child attributes
Admin/elevated API keys only. Source of the report: api, website, or bot.
Available options:
api, website, bot ⌘I
