CookbooksHelios Cookbooks
Review Queue and Webhooks
Handle borderline review decisions with polling plus push webhooks for your manual review queue.
- Register a
callback_urlto receive decision JSON automatically - Poll the status endpoint for current decision and scores
- Verify
X-Helios-Signatureand route approvals to a review queue
Time to complete: ~12 minutes
Prerequisites
SAGEA_API_KEYset in your environment asBearerauth.- Read Send your first API request to create a key.
- Read How Helios works to understand
approvedandreviewanddeclinedstates. - A public HTTPS endpoint for callbacks, for example
https://example.com/webhooks/helios.
Step 1: Register a callback URL
Set callback_url in the request or in the dashboard. Helios POSTs the full decision JSON to it when verification completes.
Step 2: Poll the status endpoint
Step 3: Verify webhook signatures and queue reviews
Helios signs each callback with X-Helios-Signature. Verify it, then push review decisions into your analyst queue.
Verify
A healthy flow returns HTTP 200 on status polls and HTTP 200 from your webhook receiver. If it fails, check below.
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | API key missing or webhook secret mismatch | Check echo $SAGEA_API_KEY and secret rotation |
400 missing_artifact | Initial submit omitted required files | Include front and back images plus video in v1 |
413 Payload Too Large | Video exceeds about 50MB | Compress to 720p and trim to range 3 to 10s |
422 spoof_detected | Liveness anti-spoofing triggered | Ask user to recapture live video in good light |
