curl --request POST \
--url https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback_id": "<string>"
}
'import requests
url = "https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw"
payload = { "feedback_id": "<string>" }
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({feedback_id: '<string>'})
};
fetch('https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw', 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}/withdraw",
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([
'feedback_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.moonbounce.ai/v1/review/items/{item_id}/withdraw"
payload := strings.NewReader("{\n \"feedback_id\": \"<string>\"\n}")
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))
}HttpResponse<String> response = Unirest.post("https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"feedback_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"feedback_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"environment": "production",
"item": {
"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": {}
}
}{
"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": {}
}
}Withdraw a review answer
Undoes the reviewer’s own recent answer, within 10 minutes of the original answer. Send the current chain head as feedback_id (from handled.feedback_id). Corrections do not renew the window. A stale head, expired window, skipped, expired, unanswered or already withdrawn item is 409; another reviewer or environment is 404. A retry with the same Idempotency-Key replays even after expiry. The answer stops counting, but a blind item’s revealed prediction stays visible and the item is not requeued.
curl --request POST \
--url https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"feedback_id": "<string>"
}
'import requests
url = "https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw"
payload = { "feedback_id": "<string>" }
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({feedback_id: '<string>'})
};
fetch('https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw', 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}/withdraw",
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([
'feedback_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.moonbounce.ai/v1/review/items/{item_id}/withdraw"
payload := strings.NewReader("{\n \"feedback_id\": \"<string>\"\n}")
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))
}HttpResponse<String> response = Unirest.post("https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"feedback_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonbounce.ai/v1/review/items/{item_id}/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"feedback_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"environment": "production",
"item": {
"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": {}
}
}{
"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.
Headers
Makes a retry safe. For 24 hours, the same key with the same request returns the first stored result (with Idempotent-Replayed: true); the same key with a different request is a 422 IDEMPOTENCY_KEY_REUSED. Keys are scoped to the organization and environment across every operation, so use a fresh key per request. A request that failed before its result was stored runs again when retried with its key.
1 - 255^[\x20-\x7e]+$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}$Body
^fbk_[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Response
Withdrawn