{% extends "madga/studio/base.html" %} {% load i18n madga_studio_tags %} {% block breadcrumbs %} {% trans "Webhooks" %} / {% if endpoint %}{% trans "Edit endpoint" %}{% else %}{% trans "New endpoint" %}{% endif %} {% endblock %} {% block content %}

{% if endpoint %}{% trans "Edit webhook endpoint" %}{% else %}{% trans "New webhook endpoint" %}{% endif %}

{% trans "MADGA POSTs every matching event as JSON with an HMAC-SHA256 signature in the X-Madga-Signature header. Compute the same HMAC of \"{timestamp}.{body}\" on your side with the secret to verify." %}

{% csrf_token %}
{% trans "Receiver should respond with HTTP 200-299 to acknowledge. Anything else triggers a retry." %}
{% for evt, desc in events %} {% endfor %}
{% trans "Leave none selected = subscribe to every event." %}
{% if endpoint %}
{{ endpoint.secret }} {% trans "Configure your receiver to compute HMAC-SHA256 with this value." %}
{% endif %}
{% trans "Cancel" %}
{% endblock %}