Skip to content

Webhooks

Configure in Settings → Integrations → Webhook. Each event category gets a POST to your endpoint:

POST https://your-app.example/monsys
Content-Type: application/json
X-Monsys-Signature: hmac-sha256(<secret>, body)
{
"event": "alert.created",
"tenant_id": "...",
"agent_id": "...",
"alert": {
"id": "...",
"severity": "critical",
"category": "honeypot",
"title": "Honeypot tripped: /root/.ssh/id_rsa.monsys-backup",
"created_at":"2026-05-09T12:42:18Z"
}
}

Verification

import hmac, hashlib
def verify(secret: bytes, body: bytes, signature: str) -> bool:
mac = hmac.new(secret, body, hashlib.sha256).hexdigest()
return hmac.compare_digest(mac, signature)

Event types

EventWhen
alert.createdAn alert is created
alert.resolvedAn alert is resolved
agent.onlineAgent has come online
agent.offlineHeartbeat-silence ≥ 90 s
honeypot.trippedCanary activated
cve.match.newNew CVE-match (CVSS ≥ 7.0)
emergency.token.issuedToken issued (audit)