Webhooks
Set up a webhook that sends ticket routing and status-change events to your own system as HMAC-SHA256 signed JSON, follow retries and verify the signature.
- Admin panel
This article was verified with an older release. Screen names or steps may differ in the current version.
A webhook sends an automatic HTTP request to an address you choose whenever a ticket in EnaFeedback is routed to a resolution team or changes status. Your own work-order system, status board or internal app hears about the change. The Owner sets up the webhook in the admin panel.
This article covers setting up the webhook, the events it sends, delivery and retries, and how to verify with the signature that a request really came from EnaFeedback.
Required role, permission and version
- The webhook setting lives under System → System settings → Integrations and needs the Integrations permission, which only the Owner role has.
- The central queue and automatic retries arrived in EnaFeedback 2.2.0.
Events
| Event | When | Body fields |
|---|---|---|
alert.system.ticket.routed | A ticket is routed to a resolution team that has members (one event per team) | event, ticketId, ticketCode, teamId |
alert.system.ticket.status_changed | A ticket's status is changed in the admin panel or the mobile app | event, ticketId, oldStatus, newStatus |
Status values are NEW, IN_PROGRESS and CLOSED. There is also a test event you send with Send test; its body looks like {"type": "system.test", "at": "…"}.
The status-change event is sent every time the status changes, in the admin panel or in the mobile app Requires: EnaFeedback 2.10.2. Older servers do not send it; build on the routing event there.
The body is kept short and mainly carries IDs and status. Integrations that need the full ticket should treat the request as a trigger.
Delivery and retries
- Each organization has one webhook address. There are no per-event subscriptions; once an address is set, all of the events above are sent.
- The request is a POST with a JSON body. Any response other than 2xx, or a wait longer than 20 seconds, counts as a failure.
- Failed requests are retried automatically from the central queue: up to 5 attempts in total, with waits of 30 seconds, 2 minutes, 10 minutes and 1 hour. The test event is sent with a single attempt.
- Every request has an
Idempotency-Keyheader that stays the same across retries. Store it so you never process the same event twice. - If you set a signing secret, the HMAC-SHA256 signature of the body is sent as hex text in the
X-Ena-Signatureheader. - The target address passes a check that blocks requests to internal network addresses (SSRF protection).
Every attempt shows with the Webhook channel on the Message deliveries view of System → Records. If every attempt fails, the record becomes Failed; open it and choose Send again to queue it once more. See Permissions and delivery.
Set up a webhook
Prepare your endpoint
In your own system, open a POST endpoint that is reachable from the internet and uses HTTPS.
Open Integrations
Go to System → System settings → Integrations and pick the Webhook channel.
Add the Webhook provider
Choose Add provider and the Webhook type. Enter your endpoint address, and a strong, random value in Signing secret. Store the same value safely in your receiving system.
Make the provider active
Select the Webhook provider you added in the list to make it active.
Send a test event
Use Send test. Check that the system.test event arrives at your endpoint and that the signature verifies.
The ENA Gateway does not send webhooks
The webhook channel is not enabled on the ENA Gateway. While the ENA Gateway is active, webhook records are Skipped. You always need your own address to receive webhooks.
Verify the signature
The signature is the HMAC-SHA256 of the raw request body, computed with the signing secret and sent as hex text. Use the body exactly as received, without parsing and re-serializing the JSON, and compare in constant time.
import crypto from 'node:crypto';
import express from 'express';
const app = express();
const SECRET = process.env.ENA_WEBHOOK_SECRET;
app.post('/ena-webhook', express.raw({ type: 'application/json' }), (req, res) => {
const received = req.get('X-Ena-Signature') ?? '';
const expected = crypto.createHmac('sha256', SECRET).update(req.body).digest('hex');
const ok =
received.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));
if (!ok) return res.status(401).end();
const idempotencyKey = req.get('Idempotency-Key');
// Skip the event if idempotencyKey was already processed.
const event = JSON.parse(req.body.toString('utf8'));
// Handle the event…
res.status(200).end();
});Tips
- Design your endpoint to answer fast: store the request, return 200 at once and do heavy work in the background. Slow answers lead to retries and the same event arriving again.
- To find out why an event did not arrive, filter the message records by the Webhook channel and read the error text.
- To change the signing secret, delete the provider, add it again with the new secret, and update the value in your receiving system at the same time.
Known limits
- There is no public REST API and no API key; the webhook is the only integration point that sends data out.
- There are no ready-made connectors for n8n, Make or Zapier.
- There are no per-event subscriptions; each organization has one webhook address.
Related articles
Can't find what you need?
Our support team can help with anything from setup to reporting.
SMS and short links
EnaFeedback builds every SMS from ready-made templates in four languages, keeps it to two segments and adds an ena.run short link. Language and quiet hours.
Home and dashboards
Use the To do and Quick access sections on the admin panel's Home screen, and the mobile app's admin summary with the Last 7 days chart and the Needs attention list.