Webhooks1 min read
Webhooks: Real-Time Revocation & Tamper Events
Subscribe to instant webhook alerts when candidates revoke access or when ledger tampering is detected.
Real-Time Webhook Notifications
SabiProfile webhooks deliver instant HTTPS POST payloads to your endpoint whenever key lifecycle or security events occur.
Supported Events
| Event Name | Description | |
|---|---|---|
key.revoked | Triggered when a candidate revokes an active private access key. | |
key.expired | Triggered when a key reaches its designated expiration timestamp. | |
integrity.compromised | Critical security alert: record failed hash verification against the ledger. | |
evaluation.completed | Triggered when an asynchronous batch screening evaluation completes. |
Subscribing to Webhooks
To register a webhook endpoint:
bash
curl -X POST https://www.sabiprofile.com/api/v1/m2m/webhooks \
-H "Content-Type: application/json" \
-H "X-Sabi-Org-Key: sok_live_9f83a84b12c8..." \
-d '{
"endpoint_url": "https://api.yourcompany.com/webhooks/sabiprofile",
"events": ["key.revoked", "integrity.compromised"]
}'
Verifying Signatures
Every webhook request includes an X-Sabi-Signature header containing an HMAC-SHA256 signature calculated with your webhook secret. Verify this signature before processing payloads to guarantee authenticity.