curl --request POST \
--url https://api.zebratruth.ai/v1/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"jurisdictions": [],
"platforms": [],
"content": {
"text": "<string>"
}
}
'import requests
url = "https://api.zebratruth.ai/v1/agents/{agentId}"
payload = {
"jurisdictions": [],
"platforms": [],
"content": { "text": "<string>" }
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({jurisdictions: [], platforms: [], content: {text: '<string>'}})
};
fetch('https://api.zebratruth.ai/v1/agents/{agentId}', 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/agents/{agentId}",
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([
'jurisdictions' => [
],
'platforms' => [
],
'content' => [
'text' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.zebratruth.ai/v1/agents/{agentId}"
payload := strings.NewReader("{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.zebratruth.ai/v1/agents/{agentId}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/agents/{agentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"agentId": "ai-laws",
"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"
]
}
],
"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
}
}
}
],
"cached": true,
"creditsCharged": 123,
"costBreakdown": {
"totalCredits": 123,
"agents": [
{
"agent": "jurisdiction",
"stage": "A",
"credits": 123,
"cached": false
}
]
},
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"partial": true,
"error": "<string>",
"pricing": {
"feature": "<string>",
"baseCredits": 123,
"marginMultiplier": 123,
"estimatedCredits": 123
}
}{
"statusCode": 400,
"message": "jurisdictions: Required, platforms: Required",
"error": true,
"url": "<string>",
"statusMessage": "jurisdictions: Required, platforms: Required"
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}{
"statusCode": 402,
"message": "Insufficient credits",
"error": true,
"url": "<string>",
"statusMessage": "Insufficient credits",
"data": {
"creditsRemaining": 3,
"creditsNeeded": 123,
"upgradeUrl": "https://developers.zebratruth.ai/dashboard/billing"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": true,
"url": "<string>",
"statusMessage": "Rate limit exceeded",
"data": {
"retryAfter": 5,
"limit": 60,
"remaining": 0
}
}Invoke a single agent
Run a single compliance agent directly instead of the full pipeline. Useful for targeted re-checks or building custom workflows.
curl --request POST \
--url https://api.zebratruth.ai/v1/agents/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"jurisdictions": [],
"platforms": [],
"content": {
"text": "<string>"
}
}
'import requests
url = "https://api.zebratruth.ai/v1/agents/{agentId}"
payload = {
"jurisdictions": [],
"platforms": [],
"content": { "text": "<string>" }
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({jurisdictions: [], platforms: [], content: {text: '<string>'}})
};
fetch('https://api.zebratruth.ai/v1/agents/{agentId}', 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/agents/{agentId}",
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([
'jurisdictions' => [
],
'platforms' => [
],
'content' => [
'text' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.zebratruth.ai/v1/agents/{agentId}"
payload := strings.NewReader("{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.zebratruth.ai/v1/agents/{agentId}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zebratruth.ai/v1/agents/{agentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jurisdictions\": [],\n \"platforms\": [],\n \"content\": {\n \"text\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"requestId": "<string>",
"agentId": "ai-laws",
"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"
]
}
],
"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
}
}
}
],
"cached": true,
"creditsCharged": 123,
"costBreakdown": {
"totalCredits": 123,
"agents": [
{
"agent": "jurisdiction",
"stage": "A",
"credits": 123,
"cached": false
}
]
},
"analysisDiagnostics": [
{
"code": "evidence_truncated",
"message": "<string>",
"severity": "info",
"evidenceIds": [
"<string>"
]
}
],
"partial": true,
"error": "<string>",
"pricing": {
"feature": "<string>",
"baseCredits": 123,
"marginMultiplier": 123,
"estimatedCredits": 123
}
}{
"statusCode": 400,
"message": "jurisdictions: Required, platforms: Required",
"error": true,
"url": "<string>",
"statusMessage": "jurisdictions: Required, platforms: Required"
}{
"statusCode": 401,
"message": "Invalid API key",
"error": true,
"url": "https://api.zebratruth.ai/v1/whoami",
"statusMessage": "Invalid API key"
}{
"statusCode": 402,
"message": "Insufficient credits",
"error": true,
"url": "<string>",
"statusMessage": "Insufficient credits",
"data": {
"creditsRemaining": 3,
"creditsNeeded": 123,
"upgradeUrl": "https://developers.zebratruth.ai/dashboard/billing"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 123,
"message": "<string>",
"error": true,
"url": "<string>",
"statusMessage": "<string>",
"data": {
"code": "review_scope_not_enabled"
}
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": true,
"url": "<string>",
"statusMessage": "Rate limit exceeded",
"data": {
"retryAfter": 5,
"limit": 60,
"remaining": 0
}
}Authorizations
API key starting with zt_live_ (production) or zt_test_ (sandbox).
Get your key at https://developers.zebratruth.ai
Headers
Path Parameters
The agent to invoke (use GET /agents to discover available IDs)
Agent identifier. Use GET /agents to discover all available agents dynamically.
The list is filtered to the industries your workspace has selected.
Financial services. The six fs-compliance-* agents correspond one-to-one to the
review scopes (financial_promotion → fs-compliance-financial-promotion, and so on).
In a full check they are selected with reviewScopes. Via POST /agents/{agentId}
only fs-compliance-financial-promotion can be invoked directly today; the other five
return 400 review_scope_not_enabled on direct invocation and must run through
POST /compliance/check. financial-services-compliance is a read-only alias of
fs-compliance-financial-promotion accepted for older clients.
Pharma and healthcare. pharma-healthcare-compliance runs for workspaces on the
pharma_healthcare industry and honours regulatedActor.
ai-laws is the canonical id; jurisdiction-detection is accepted as an
input alias for backward compatibility with historical clients. New
integrations should use ai-laws.
Note on rights-clearance variants. GET /agents exposes two registered agents
for rights clearance: rights-clearance-text and rights-clearance-image — invoke
them via POST /agents/{agentId} using those qualified IDs. On check response
objects, however, text rights-clearance findings carry the bare agentId: "rights-clearance". Treat bare rights-clearance and rights-clearance-text as
the same logical pipeline — the bare form is the value that appears on checks[]
entries from that agent.
ai-laws, jurisdiction-detection, advertising-law, platform-policy, metadata-labeling, rights-clearance, rights-clearance-text, rights-clearance-image, compliance-score, fs-compliance-financial-promotion, fs-compliance-advisory-suitability, fs-compliance-credit-servicing, fs-compliance-markets-trading, fs-compliance-financial-crime, fs-compliance-ai-governance, financial-services-compliance, pharma-healthcare-compliance Body
Optional. Scopes the agent's rule set to one regulated actor.
advertiser, manufacturer, platform, provider, payer, pharmacy, HCP, telehealth_provider, adviser, broker_dealer, bank, lender, servicer, debt_collector, fund_manager, payment_service_provider, insurer Response
Agent result
Agent identifier. Use GET /agents to discover all available agents dynamically.
The list is filtered to the industries your workspace has selected.
Financial services. The six fs-compliance-* agents correspond one-to-one to the
review scopes (financial_promotion → fs-compliance-financial-promotion, and so on).
In a full check they are selected with reviewScopes. Via POST /agents/{agentId}
only fs-compliance-financial-promotion can be invoked directly today; the other five
return 400 review_scope_not_enabled on direct invocation and must run through
POST /compliance/check. financial-services-compliance is a read-only alias of
fs-compliance-financial-promotion accepted for older clients.
Pharma and healthcare. pharma-healthcare-compliance runs for workspaces on the
pharma_healthcare industry and honours regulatedActor.
ai-laws is the canonical id; jurisdiction-detection is accepted as an
input alias for backward compatibility with historical clients. New
integrations should use ai-laws.
Note on rights-clearance variants. GET /agents exposes two registered agents
for rights clearance: rights-clearance-text and rights-clearance-image — invoke
them via POST /agents/{agentId} using those qualified IDs. On check response
objects, however, text rights-clearance findings carry the bare agentId: "rights-clearance". Treat bare rights-clearance and rights-clearance-text as
the same logical pipeline — the bare form is the value that appears on checks[]
entries from that agent.
ai-laws, jurisdiction-detection, advertising-law, platform-policy, metadata-labeling, rights-clearance, rights-clearance-text, rights-clearance-image, compliance-score, fs-compliance-financial-promotion, fs-compliance-advisory-suitability, fs-compliance-credit-servicing, fs-compliance-markets-trading, fs-compliance-financial-crime, fs-compliance-ai-governance, financial-services-compliance, pharma-healthcare-compliance