curl --request GET \
--url https://api.zebratruth.ai/v1/compliance/check-video/{requestId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/compliance/check-video/{requestId}"
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/compliance/check-video/{requestId}', 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/compliance/check-video/{requestId}",
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/compliance/check-video/{requestId}"
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/compliance/check-video/{requestId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/compliance/check-video/{requestId}")
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{
"requestId": "<string>",
"tenantId": "<string>",
"status": "queued",
"phase": "<string>",
"reportStatus": "complete",
"billingStatus": "reserved",
"workerCompletedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"error": "<string>",
"reportBlobPath": "<string>",
"report": {
"schemaVersion": "video-report.v1",
"preprocessorVersion": "video-preprocessor.v1",
"evidenceVersion": "evidence-timeline.v1",
"tenantId": "<string>",
"requestId": "<string>",
"generatedAt": "2023-11-07T05:31:56Z",
"status": "complete",
"checks": [
{
"id": "chk_a1b2c3d4",
"agentId": "ai-laws",
"checkName": "Unsubstantiated Health Claim - 'Cure Cancer'",
"status": "pass",
"severity": "critical",
"message": "'Guaranteed to cure cancer' is an unsubstantiated health claim under FTC and EU UCPD.",
"recommendation": "Remove the guarantee or substantiate with peer-reviewed clinical evidence.",
"citation": "FTC Endorsement Guides, 16 CFR Part 255",
"metadata": "<string>",
"jurisdictions": [
"us",
"eu"
],
"platforms": [
"youtube",
"instagram"
],
"scope": "global",
"primaryCategory": "celebrity-endorsement",
"categories": [
"unsubstantiated-health-claim",
"performance-claim"
],
"evidenceIds": [
"frame_007",
"ocr_012"
],
"timelineLocation": {
"startMs": 1,
"endMs": 1,
"track": "audio"
}
}
],
"preprocessing": {
"transcriptionStatus": "complete",
"frameAnalysisStatus": "ok",
"degraded": true,
"evidenceTruncated": true
},
"reason": "<string>",
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"detections": "<unknown>"
},
"reportFetchFailed": true
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}Poll video job status + retrieve report
Returns the current state of a video compliance job. When the job is
terminal (status: completed | failed), the full report payload is
inlined in the response — no extra fetch needed.
Polling cadence: every 2 seconds is recommended; the engine has a 3-minute upper bound on a single job’s worker time.
reportFetchFailed. Blob storage is eventually-consistent — a
read immediately after the worker completes can occasionally miss.
Rather than 500, the response surfaces reportFetchFailed: true so
the client can retry the same endpoint shortly.
Tenant scoping. A requestId belonging to a different tenant
returns 404 (no info leak about another tenant’s jobs).
curl --request GET \
--url https://api.zebratruth.ai/v1/compliance/check-video/{requestId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/compliance/check-video/{requestId}"
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/compliance/check-video/{requestId}', 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/compliance/check-video/{requestId}",
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/compliance/check-video/{requestId}"
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/compliance/check-video/{requestId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/compliance/check-video/{requestId}")
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{
"requestId": "<string>",
"tenantId": "<string>",
"status": "queued",
"phase": "<string>",
"reportStatus": "complete",
"billingStatus": "reserved",
"workerCompletedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"error": "<string>",
"reportBlobPath": "<string>",
"report": {
"schemaVersion": "video-report.v1",
"preprocessorVersion": "video-preprocessor.v1",
"evidenceVersion": "evidence-timeline.v1",
"tenantId": "<string>",
"requestId": "<string>",
"generatedAt": "2023-11-07T05:31:56Z",
"status": "complete",
"checks": [
{
"id": "chk_a1b2c3d4",
"agentId": "ai-laws",
"checkName": "Unsubstantiated Health Claim - 'Cure Cancer'",
"status": "pass",
"severity": "critical",
"message": "'Guaranteed to cure cancer' is an unsubstantiated health claim under FTC and EU UCPD.",
"recommendation": "Remove the guarantee or substantiate with peer-reviewed clinical evidence.",
"citation": "FTC Endorsement Guides, 16 CFR Part 255",
"metadata": "<string>",
"jurisdictions": [
"us",
"eu"
],
"platforms": [
"youtube",
"instagram"
],
"scope": "global",
"primaryCategory": "celebrity-endorsement",
"categories": [
"unsubstantiated-health-claim",
"performance-claim"
],
"evidenceIds": [
"frame_007",
"ocr_012"
],
"timelineLocation": {
"startMs": 1,
"endMs": 1,
"track": "audio"
}
}
],
"preprocessing": {
"transcriptionStatus": "complete",
"frameAnalysisStatus": "ok",
"degraded": true,
"evidenceTruncated": true
},
"reason": "<string>",
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"detections": "<unknown>"
},
"reportFetchFailed": true
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}Authorizations
API key starting with zt_live_ (production) or zt_test_ (sandbox).
Get your key at https://developers.zebratruth.ai
Response
Current status + report (when terminal)