{% extends "base.html" %} {% block title %}sendword — {{ name }}{% endblock %} {% block crumbs %}
HOOKS/ {{ slug | upper }}
{% endblock %} {% block actions %} EDIT
{% endblock %} {% block content %}

{{ name }}

{% if enabled %} ENABLED {% else %} DISABLED {% endif %}
{% if description %}

{{ description }}

{% endif %}
{# ── Left: config ── #}
OVERVIEW
Slug
{{ slug }}
{% if description %}
Description
{{ description }}
{% endif %}
Endpoint
/hook/{{ slug }}
Status
{% if enabled %} ENABLED {% else %} DISABLED {% endif %}
EXECUTOR
Type
{{ executor_type }}
{{ executor_value_label }}
{{ executor_command }} {% if script_edit_url %} EDIT SCRIPT {% endif %}
{% if cwd %}
Working dir
{{ cwd }}
{% endif %}
Timeout
{{ timeout_secs }}s
{% if env_vars %}
Environment
{% for var in env_vars %} {{ var }} {% endfor %}
{% endif %}
{% if auth_mode != "none" %}
AUTHENTICATION
Mode
{{ auth_mode | upper }}
{% if auth_header %}
Header
{{ auth_header }}
{% endif %} {% if auth_algorithm %}
Algorithm
{{ auth_algorithm }}
{% endif %}
{% endif %} {% if payload_fields is defined and payload_fields %}
PAYLOAD SCHEMA
{% for field in payload_fields %} {% endfor %}
NAME TYPE REQUIRED
{{ field.name }} {{ field.type }} {% if field.required %} REQUIRED {% else %} optional {% endif %}
{% endif %} {% set has_trigger_rules = (trigger_filter_rows and trigger_filter_rows | length > 0) or (trigger_window_rows and trigger_window_rows | length > 0) or trigger_cooldown or trigger_rate_max %} {% if has_trigger_rules %}
TRIGGER RULES
{% if trigger_cooldown or trigger_rate_max %}
{% if trigger_cooldown %}
Cooldown
{{ trigger_cooldown }}
{% endif %} {% if trigger_rate_max %}
Rate limit
{{ trigger_rate_max }} per {{ trigger_rate_window }}
{% endif %}
{% endif %} {% if trigger_filter_rows and trigger_filter_rows | length > 0 %} {% for row in trigger_filter_rows %} {% endfor %}
FIELDOPERATORVALUE
{{ row.field }} {{ row.operator }} {{ row.value if row.value else "—" }}
{% endif %} {% if trigger_window_rows and trigger_window_rows | length > 0 %} {% for row in trigger_window_rows %} {% endfor %}
DAYSSTARTEND
{{ row.days }} {{ row.start_time }} {{ row.end_time }}
{% endif %} {% endif %} {% if hook_rate_limit_max_per_minute is defined and hook_rate_limit_max_per_minute %}
RATE LIMIT
Max per minute
{{ hook_rate_limit_max_per_minute }}
{% endif %}
{# ── Right: activity ── #}
{% endblock %}