Poll job status
curl --request GET \
--url https://api.zebratruth.ai/v1/compliance/jobs/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/compliance/jobs/{jobId}"
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/jobs/{jobId}', 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/jobs/{jobId}",
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/jobs/{jobId}"
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/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/compliance/jobs/{jobId}")
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{
"jobId": "<string>",
"status": "queued",
"completedAgents": [
"ai-laws",
"advertising-law"
],
"totalAgents": 7,
"result": {
"requestId": "<string>",
"reportId": "rpt_abc123",
"score": 72,
"decision": "PUBLISH",
"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"
]
}
],
"checksById": {},
"indexes": {
"byJurisdiction": {},
"byPlatform": {},
"bySeverity": {},
"byStatus": {},
"byCategory": {},
"byCategoryAll": {},
"byAgent": {}
},
"annotations": [
{
"type": "text-span",
"agentId": "ai-laws",
"severity": "critical",
"message": "'Guaranteed results' may violate FTC endorsement guides",
"checkRef": "<string>",
"checkId": "chk_a1b2c3d4",
"suggestion": "Consider 'may help' instead of 'guaranteed'",
"textLocation": {
"start": 120,
"end": 138,
"matchedText": "guaranteed results"
},
"timelineLocation": {
"startMs": 15000,
"endMs": 28000,
"track": "audio"
},
"imageLocation": {
"imageUrl": "<string>",
"boundingBox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
}
}
],
"profile": {
"detectedJurisdictions": [
"<string>"
],
"applicableRules": [
{}
],
"targetPlatforms": [
"<string>"
],
"confidence": 0.5,
"reasoning": "<string>"
},
"agentSummaries": {},
"versionInfo": {
"engineVersion": "1.3.2",
"rulesVersion": "2026-04-01",
"agentVersions": {
"advertising-law": "1.1.0",
"ai-laws": "1.3.0"
},
"stackVersion": "2026.04-a7f3"
},
"costBreakdown": {
"totalCredits": 123,
"agents": [
{
"agent": "jurisdiction",
"stage": "A",
"credits": 123,
"cached": false
}
]
},
"creditsCharged": 123,
"cached": true,
"coverageIncomplete": true,
"coverageGaps": [
{
"agentId": "<string>",
"reason": "memory_disabled"
}
],
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"regulatedActors": [
"advertiser"
],
"agentsRun": [
{
"id": "ai-laws",
"outcome": "completed",
"reason": "timeout"
}
],
"decisionReasons": [
"blocking_check"
],
"_meta": {
"mode": "test",
"sandbox": true,
"creditsCharged": 123,
"estimatedProductionCost": 123,
"scenarioId": "claim-violation"
}
}
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}Jobs & Reports
Poll job status
Check the status of an async compliance check job.
GET
/
compliance
/
jobs
/
{jobId}
Poll job status
curl --request GET \
--url https://api.zebratruth.ai/v1/compliance/jobs/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zebratruth.ai/v1/compliance/jobs/{jobId}"
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/jobs/{jobId}', 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/jobs/{jobId}",
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/jobs/{jobId}"
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/jobs/{jobId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/compliance/jobs/{jobId}")
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{
"jobId": "<string>",
"status": "queued",
"completedAgents": [
"ai-laws",
"advertising-law"
],
"totalAgents": 7,
"result": {
"requestId": "<string>",
"reportId": "rpt_abc123",
"score": 72,
"decision": "PUBLISH",
"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"
]
}
],
"checksById": {},
"indexes": {
"byJurisdiction": {},
"byPlatform": {},
"bySeverity": {},
"byStatus": {},
"byCategory": {},
"byCategoryAll": {},
"byAgent": {}
},
"annotations": [
{
"type": "text-span",
"agentId": "ai-laws",
"severity": "critical",
"message": "'Guaranteed results' may violate FTC endorsement guides",
"checkRef": "<string>",
"checkId": "chk_a1b2c3d4",
"suggestion": "Consider 'may help' instead of 'guaranteed'",
"textLocation": {
"start": 120,
"end": 138,
"matchedText": "guaranteed results"
},
"timelineLocation": {
"startMs": 15000,
"endMs": 28000,
"track": "audio"
},
"imageLocation": {
"imageUrl": "<string>",
"boundingBox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
}
}
],
"profile": {
"detectedJurisdictions": [
"<string>"
],
"applicableRules": [
{}
],
"targetPlatforms": [
"<string>"
],
"confidence": 0.5,
"reasoning": "<string>"
},
"agentSummaries": {},
"versionInfo": {
"engineVersion": "1.3.2",
"rulesVersion": "2026-04-01",
"agentVersions": {
"advertising-law": "1.1.0",
"ai-laws": "1.3.0"
},
"stackVersion": "2026.04-a7f3"
},
"costBreakdown": {
"totalCredits": 123,
"agents": [
{
"agent": "jurisdiction",
"stage": "A",
"credits": 123,
"cached": false
}
]
},
"creditsCharged": 123,
"cached": true,
"coverageIncomplete": true,
"coverageGaps": [
{
"agentId": "<string>",
"reason": "memory_disabled"
}
],
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"regulatedActors": [
"advertiser"
],
"agentsRun": [
{
"id": "ai-laws",
"outcome": "completed",
"reason": "timeout"
}
],
"decisionReasons": [
"blocking_check"
],
"_meta": {
"mode": "test",
"sandbox": true,
"creditsCharged": 123,
"estimatedProductionCost": 123,
"scenarioId": "claim-violation"
}
}
}{
"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