Skip to content

Webhooks: setting up

Besides being queried through the integration API, ITS can notify another system the moment something happens: an idea submitted, a status change, a validated gain. That notice is a webhook, and with it the receiving system doesn't have to keep asking from time to time.

The screen is in Administration > Integrations > Webhooks and only shows for people with the Manage integrations (API and webhooks) permission (out of the box, the Administrator).

What controls the notices?

  1. The webhooks switch turns all of them on and off. It requires the integration API master switch to be on.
  2. The Allowed destinations are the list of places ITS may call. Nothing goes out to anywhere off the list, not even to the internal network.
  3. A subscription belongs to an integration and says where to send and which events. The integration only receives events from the modules and scope it already has.

With the switch off, nothing is sent and no new event is stored. Whatever was waiting is retried when you turn the switch back on; anything older than 48 hours becomes a failure.

How do I set up webhooks?

1. Turn on the switch

In the Webhooks tab, click Turn on webhooks. If the integration API master switch is off, the screen says so and asks you to turn it on first, in the Integrations tab.

2. Register the allowed destinations

In Allowed destinations, enter one per line, up to 50, and click Save the list:

TypeExampleWhat it covers
Nameerp.company.localOnly that server
Wildcard domain*.company.comThe subdomains (not the bare domain)
IP or range10.20.0.0/16The addresses in the range

Some address classes are always blocked, even if listed: the computer itself (localhost), link-local addresses (including the cloud metadata one, 169.254.169.254), 0.0.0.0 and multicast. ITS checks the address at send time, not only when you save, so changing DNS later doesn't divert the notice.

3. Create the subscription

In Subscriptions, click New subscription, choose the Integration, give it a Name, enter the Address (URL) and tick the Events:

  • Use https://. http:// only works for an internal network destination that's on the list. Don't put a username and password in the URL.
  • Only events from the modules the integration has appear. Each integration can have up to 5 subscriptions.
  • Enter the Secret validity (days), from 1 to 365.

4. Keep the secret

When you create the subscription, ITS shows the secret, which starts with whsec_, only once. Copy it and hand it to whoever builds the receiving side through a safe channel. After you close the window, only the start stays visible, and there's no way to recover the value.

Whoever will receive the notices needs Webhooks: how to receive.

5. Test

Open the subscription and click Send test. ITS sends a test notice through the same path as real notices, with the same destination check and the same signature, and shows the result right away: the HTTP code of the response or the reason for the failure. The test doesn't depend on any idea or scope. What reaches the receiving system is described in Webhooks: how to receive.

Which events can I subscribe to?

A subscription can notify when:

Scope counts at the moment of the event: the integration only receives the event of an idea (or campaign) it can see at that moment. The technical name of each event and the module it requires are in the full table in Webhooks: how to receive.

How do I follow deliveries?

In the subscription, the Deliveries table shows each send and its result, with a filter by status. If the destination doesn't answer or answers with a server error, ITS retries at longer and longer intervals; definitive errors aren't retried. The same notice can arrive more than once, and out of order. The retry intervals and which errors count as definitive are in Webhooks: how to receive.

If 20 sends in a row fail for good, ITS suspends the subscription and flags it in system health. Fix the destination, use Send test and then Reactivate.

A failed delivery can go out again with Resend: it goes back to pending and is sent unchanged. The log never keeps the destination's response and follows the same retention as observability.

How do I replace the secret?

In the subscription, use Generate new secret. During the overlap window (default 24 hours, up to 72), each notice carries two signatures, one from the new secret and one from the old, so you can switch on the receiving system without losing anything. Each subscription has at most 2 active secrets. When you're done switching, use Revoke secret on the old one.

How do I suspend or remove a subscription?

Suspend pauses the subscription's notices, and Reactivate resumes them. Remove deletes the subscription and its delivery log. If the integration is suspended or revoked, none of its notices go out.

How does health report on webhooks?

The secret must have an expiry date, and system health gets two items:

  • Webhook secret: attention 30 days before expiry and failure at 7 days (or once expired).
  • Webhook delivery: failure if any subscription was suspended for failures; attention if there was a definitive failure in the last 24 hours or a notice has been waiting for delivery for more than 15 minutes.

The failure raises the alert for people with the observability permission. See Reading observability.

What goes into the audit log?

Everything you do goes into Audit: turning the switch on or off, changing the destination list, creating, changing, suspending, reactivating and removing subscriptions, creating, rotating and revoking secrets, and asking for a resend or a test. Automatic suspension for failures is recorded too. The audit log keeps only the server of the address, never the path or the query (which can carry a secret), and never the secret. The sends themselves don't go into the audit log: they stay in the delivery log.

What does the Documentation tab show?

In Integrations > Documentation, at the end of the page, you'll find the list of events, the notice format, the headers and the steps to check the signature, with a code example. The example data is made up.