{% extends "base.html" %} {% block title %}Webhooks — Stratum{% endblock %} {% block content %}

Webhooks

Receive HTTP POST notifications when scans complete or fail.

Signature Verification

Each request includes X-Stratum-Signature: sha256=<hmac> computed with your webhook secret.

import hmac, hashlib
sig = hmac.new(secret.encode(), body, hashlib.sha256).hexdigest()
assert f"sha256={sig}" == request.headers["X-Stratum-Signature"]
{% if hooks %}
{% for hook in hooks %} {% endfor %}
Label / URL Events Status
{{ hook.label or hook.url }}
{% if hook.label %}
{{ hook.url }}
{% endif %}
{% for ev in hook.events %} {{ ev }} {% endfor %}
{% if hook.enabled %} active {% else %} disabled {% endif %}
{% else %}
No webhooks registered

Add a webhook to receive real-time scan notifications in Slack, PagerDuty, or any HTTP endpoint.

{% endif %}
{% endblock %}