List report reasons
curl --request GET \
--url https://{host}/v1/report-reasons \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/report-reasons', 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://{host}/v1/report-reasons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://{host}/v1/report-reasons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "report-reasons",
"id": "harassment",
"attributes": {
"label": "Harassment or abuse",
"description": "Threats, insults, or unwanted contact.",
"needsNote": false
}
},
{
"type": "report-reasons",
"id": "off_platform_payment",
"attributes": {
"label": "Asked me to pay outside Wristler",
"description": "A request to pay by bank transfer or anything outside the checkout. This is how most fraud here starts.",
"needsNote": false
}
},
{
"type": "report-reasons",
"id": "other",
"attributes": {
"label": "Something else",
"description": "Tell us what happened and we will look at it.",
"needsNote": true
}
}
]
}{
"errors": [
{
"status": "404",
"code": "watch_reserved",
"title": "Not Found",
"detail": "<string>",
"meta": {},
"source": {
"pointer": "/data/attributes/reference",
"parameter": "<string>"
}
}
],
"jsonapi": {
"version": "1.0"
}
}Messaging (Reports)
List report reasons
Scope: messages:read
What somebody may say is wrong, with the wording to put in front of them — translated to the caller’s language.
Fetch it rather than compiling the list in: a reason added here appears without
an app release, and the labels arrive in the right language. needsNote says
whether the sheet must make somebody write something before the button does
anything; today that is other, and an app that hardcodes which one it is will
be wrong when a second one arrives.
GET
/
v1
/
report-reasons
List report reasons
curl --request GET \
--url https://{host}/v1/report-reasons \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/report-reasons', 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://{host}/v1/report-reasons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://{host}/v1/report-reasons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "report-reasons",
"id": "harassment",
"attributes": {
"label": "Harassment or abuse",
"description": "Threats, insults, or unwanted contact.",
"needsNote": false
}
},
{
"type": "report-reasons",
"id": "off_platform_payment",
"attributes": {
"label": "Asked me to pay outside Wristler",
"description": "A request to pay by bank transfer or anything outside the checkout. This is how most fraud here starts.",
"needsNote": false
}
},
{
"type": "report-reasons",
"id": "other",
"attributes": {
"label": "Something else",
"description": "Tell us what happened and we will look at it.",
"needsNote": true
}
}
]
}{
"errors": [
{
"status": "404",
"code": "watch_reserved",
"title": "Not Found",
"detail": "<string>",
"meta": {},
"source": {
"pointer": "/data/attributes/reference",
"parameter": "<string>"
}
}
],
"jsonapi": {
"version": "1.0"
}
}Authorizations
oauth2bearerAuth
Response
The reasons.