curl --request GET \
--url https://api.moonbounce.ai/v1/review/items/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.moonbounce.ai/v1/review/items/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonbounce.ai/v1/review/items/{item_id}', 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://api.moonbounce.ai/v1/review/items/{item_id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonbounce.ai/v1/review/items/{item_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonbounce.ai/v1/review/items/{item_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonbounce.ai/v1/review/items/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"environment": "production",
"id": "<string>",
"decision_id": "<string>",
"evaluation_id": "<string>",
"lane": "active",
"reason": {
"tag": "uncertain",
"text": "<string>"
},
"tags": [
"uncertain"
],
"blind": true,
"rank": 123,
"queued_at": "2023-11-07T05:31:56Z",
"content": {
"subject": [
{
"type": "text",
"text": "<string>",
"name": "<string>",
"sensitive": true
}
],
"context": [
{
"type": "text",
"text": "<string>",
"name": "<string>",
"sensitive": true
}
]
},
"sensitive": true,
"outcome_choices": [
{
"outcome": "<string>",
"display": "<string>"
}
],
"features": [
{
"name": "<string>",
"node_hash": "<string>",
"prompt": "<string>",
"effect": "raises",
"guidance": "<string>",
"criteria": {
"true": "<string>",
"false": "<string>"
}
}
],
"decision_title": "<string>",
"decision_index": 1,
"version": {
"structure": "<string>",
"weights": "<string>"
},
"guidance": "<string>",
"shown_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"target": "<string>",
"cuts": [
{
"at": 123,
"outcome": "<string>"
}
],
"below": "<string>",
"prediction": {
"features": {},
"score": 123,
"outcome": "<string>",
"contributions": {}
},
"handled": {
"state": "confirmed",
"at": "2023-11-07T05:31:56Z",
"feedback_id": "<string>",
"changed_at": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"target": true,
"matched": true
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}Get a review item
One of the reviewer’s items in any state. A blind item shows its prediction only once answered. Another reviewer’s item is 404.
curl --request GET \
--url https://api.moonbounce.ai/v1/review/items/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.moonbounce.ai/v1/review/items/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonbounce.ai/v1/review/items/{item_id}', 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://api.moonbounce.ai/v1/review/items/{item_id}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonbounce.ai/v1/review/items/{item_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonbounce.ai/v1/review/items/{item_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonbounce.ai/v1/review/items/{item_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"environment": "production",
"id": "<string>",
"decision_id": "<string>",
"evaluation_id": "<string>",
"lane": "active",
"reason": {
"tag": "uncertain",
"text": "<string>"
},
"tags": [
"uncertain"
],
"blind": true,
"rank": 123,
"queued_at": "2023-11-07T05:31:56Z",
"content": {
"subject": [
{
"type": "text",
"text": "<string>",
"name": "<string>",
"sensitive": true
}
],
"context": [
{
"type": "text",
"text": "<string>",
"name": "<string>",
"sensitive": true
}
]
},
"sensitive": true,
"outcome_choices": [
{
"outcome": "<string>",
"display": "<string>"
}
],
"features": [
{
"name": "<string>",
"node_hash": "<string>",
"prompt": "<string>",
"effect": "raises",
"guidance": "<string>",
"criteria": {
"true": "<string>",
"false": "<string>"
}
}
],
"decision_title": "<string>",
"decision_index": 1,
"version": {
"structure": "<string>",
"weights": "<string>"
},
"guidance": "<string>",
"shown_at": "2023-11-07T05:31:56Z",
"summary": "<string>",
"target": "<string>",
"cuts": [
{
"at": 123,
"outcome": "<string>"
}
],
"below": "<string>",
"prediction": {
"features": {},
"score": 123,
"outcome": "<string>",
"contributions": {}
},
"handled": {
"state": "confirmed",
"at": "2023-11-07T05:31:56Z",
"feedback_id": "<string>",
"changed_at": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"target": true,
"matched": true
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"reason": "<string>",
"param": "<string>",
"details": {}
}
}Authorizations
An API key, sent as Authorization: Bearer <key>. Each operation lists the scope its key needs: decisions:evaluate (evaluate and read evaluations), decisions:feedback (your app's feedback) or decisions:develop (everything else, including owner feedback and the review queue). An operation listing no scope takes any scoped key. A key with no scope, or without the operation's, gets 403 INSUFFICIENT_SCOPE.
Path Parameters
The review item’s id (inb_…), not your own item_id.
^inb_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Response
The item
The environment of the key that made the call: production or test. Evaluations, feedback, reviews and suggestions are separate per environment; registered structures are shared.
production, test ^inb_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$^[a-z][a-z0-9_.-]{0,127}$^evl_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$active, random Show child attributes
Show child attributes
1uncertain, novel, spot_check, near_cut Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
x >= 0Show child attributes
Show child attributes
1Show child attributes
Show child attributes
^[a-z][a-z0-9_]{0,63}$Show child attributes
Show child attributes
Show child attributes
Show child attributes