Skip to main content

Run a Video Compliance Check

End-to-end in 2 minutes: get an API key, upload a video, get back timestamped findings.
This walks through the video endpoint (POST /v1/compliance/check-video) — the primary ZebraTruth product. For image or text compliance, see Other Content Types.

1. Get your API key

Sign up at developers.zebratruth.ai and create an API key.
Test keys (zt_test_...) return deterministic sandbox responses with no credit cost. Use them for development and integration testing.

2. Validate your key

Response

3. Request a video upload URL

The video pipeline is fully server-side. No client-side ffmpeg, no preprocessing — your client just gets a signed upload URL, PUTs the bytes, and submits.
Response
Save the requestId + blobPath — you’ll need them in step 5.

4. Upload the video

PUT the video bytes directly to the uploadUrl from step 3. Use exactly the headers in uploadInstructions.headers:
The upload bypasses ZebraTruth servers — bytes go directly to managed blob storage. Max 200 MB.

5. Submit for compliance analysis

Response (HTTP 202)
You’ll get back a 202 Accepted immediately with estimatedCredits reserved. The pipeline runs server-side — no client preprocessing required.

6. Poll for the report

Response (status: completed)
Poll every 2 seconds. Typical completion: 20-60 seconds for a 30-second video.

Status state machine

When status is completed or failed, stop polling. Configure a webhook URL once at the account level, then submit videos with no polling required:
Each delivery is HMAC-signed with a stable signature across retries (5 attempts, exponential backoff). See Async + Webhooks for HMAC verification + retry handling.

Next Steps

Full video guide

Detailed examples, error codes, webhook HMAC verification.

Cost & credits

Per-second pricing math, tier multipliers, credit reservation lifecycle.

LLM Skill installation

Install the ZebraTruth skill so your LLM agent can run video compliance checks autonomously.

Other content types

Image + text endpoints (sync).