Report whether a solved task's token worked
curl --request POST \
--url https://api.safeconduct.ai/v1/tasks/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.safeconduct.ai/v1/tasks/{id}/report"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.safeconduct.ai/v1/tasks/{id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.safeconduct.ai/v1/tasks/{id}/report"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", 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))
}{
"id": "<string>",
"verdict": "<string>"
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}Native API
Report whether a solved task's token worked
“incorrect” means the site rejected the token: the next statistics update counts that solve as a failure for the provider, so routing learns from it. Only your own solved tasks, up to an hour after they finished. Nothing is refunded.
POST
/
v1
/
tasks
/
{id}
/
report
Report whether a solved task's token worked
curl --request POST \
--url https://api.safeconduct.ai/v1/tasks/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.safeconduct.ai/v1/tasks/{id}/report"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.safeconduct.ai/v1/tasks/{id}/report', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.safeconduct.ai/v1/tasks/{id}/report"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", 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))
}{
"id": "<string>",
"verdict": "<string>"
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "<string>"
}
}Authorizations
bearerapiKey