Get the review packet for a proposal
curl --request GET \
--url https://api.zebratruth.ai/v1/memory/review-queue/{proposalId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}', 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.zebratruth.ai/v1/memory/review-queue/{proposalId}",
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.zebratruth.ai/v1/memory/review-queue/{proposalId}"
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.zebratruth.ai/v1/memory/review-queue/{proposalId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}")
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{
"packetVersion": "human-review-packet.v1",
"packetEtag": "<string>",
"generatedAt": "2023-11-07T05:31:56Z",
"proposal": {},
"proposedCard": {},
"proposedCardDiff": {},
"sourceSnapshots": [
{}
],
"gateResults": [
{
"gateId": "<string>",
"status": "passed",
"severity": "info",
"reason": "<string>",
"evidenceRefs": [
"<string>"
]
}
],
"humanReviewTrigger": [
"<string>"
],
"authority": {},
"entailment": {
"score": 123,
"status": "entailed",
"rationale": "<string>"
},
"bitemporal": {},
"scope": {},
"conflict": {},
"reviewer": {
"reviewerId": "<string>",
"roles": [
"<string>"
],
"isProposalAuthor": true
},
"actionPolicy": {},
"decisionHistory": [
{}
],
"sla": {
"dueAt": "<string>",
"status": "ok"
}
}Corpus
Get the review packet for a proposal
Everything needed to decide: proposed card and diff, source snapshots, gate results,
authority and entailment, scope, conflicts, allowed actions and decision history.
Echo packetEtag on the action you take. Dashboard session only.
GET
/
memory
/
review-queue
/
{proposalId}
Get the review packet for a proposal
curl --request GET \
--url https://api.zebratruth.ai/v1/memory/review-queue/{proposalId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}', 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.zebratruth.ai/v1/memory/review-queue/{proposalId}",
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.zebratruth.ai/v1/memory/review-queue/{proposalId}"
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.zebratruth.ai/v1/memory/review-queue/{proposalId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/memory/review-queue/{proposalId}")
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{
"packetVersion": "human-review-packet.v1",
"packetEtag": "<string>",
"generatedAt": "2023-11-07T05:31:56Z",
"proposal": {},
"proposedCard": {},
"proposedCardDiff": {},
"sourceSnapshots": [
{}
],
"gateResults": [
{
"gateId": "<string>",
"status": "passed",
"severity": "info",
"reason": "<string>",
"evidenceRefs": [
"<string>"
]
}
],
"humanReviewTrigger": [
"<string>"
],
"authority": {},
"entailment": {
"score": 123,
"status": "entailed",
"rationale": "<string>"
},
"bitemporal": {},
"scope": {},
"conflict": {},
"reviewer": {
"reviewerId": "<string>",
"roles": [
"<string>"
],
"isProposalAuthor": true
},
"actionPolicy": {},
"decisionHistory": [
{}
],
"sla": {
"dueAt": "<string>",
"status": "ok"
}
}Authorizations
API key starting with zt_live_ (production) or zt_test_ (sandbox).
Get your key at https://developers.zebratruth.ai
Response
Review packet
Everything a reviewer needs to decide on one proposal: the proposed card and its diff,
source snapshots, automated gate results, authority and entailment assessments,
bitemporal validity, scope, any open conflict, the caller's allowed actions, and the
decision history. packetEtag must be echoed on every action.