Skip to Content
ZeroLeaksDocs
API Reference

ZeroLeaks skill scan webhooks

Receive ZeroLeaks asynchronous skill scan completion events and verify the optional HMAC-SHA256 signature.

Asynchronous skill scans can send a webhook to your public HTTPS endpoint. Set webhookUrl and a private webhookSecret on the create request. Synchronous delivery does not send webhooks. Runtime and endpoint scans use polling rather than webhooks.

ZeroLeaks sends an HTTP POST with a JSON body and these headers:

HeaderValue
Content-Typeapplication/json
X-ZeroLeaks-Eventskills_scan.completed or skills_scan.failed
X-ZeroLeaks-Scan-IdThe skill scan ID
Idempotency-KeyscanId:event
X-ZeroLeaks-Signaturesha256= followed by a lowercase hex HMAC-SHA256 digest, when a secret was supplied

Verify the signature over the exact raw UTF-8 request body using your webhookSecret before parsing JSON. Compare digests in constant time. Reject unsigned events if your integration requires signatures. Store processed idempotency keys to avoid applying a delivery twice.

The receiver must be publicly reachable over HTTPS; private network destinations are rejected and redirects are not followed. Delivery has a 15-second timeout. A failed delivery is retried up to 5 attempts in total, waiting 1, 2, 4, then 8 minutes between them; every attempt carries the same Idempotency-Key. If all attempts fail, poll the scan ID to get the result. Events are not ordered. Keep the webhook secret separate from your ZeroLeaks API key.