Skip to content

Outbound webhooks

Live By plan Org admin
Access
Org admin sets it up
Plan
Included by plan
Security
HTTPS only, signed with HMAC-SHA256

Send DevGlimpse events to your own systems, such as a BI pipeline, an automation tool or an internal service.

By plan Outbound webhooks come with the public API. If your plan does not include it, requests are refused with a message that says so. Check Admin → License → Plan features.
Setup screen coming This works in DevGlimpse today, but its setup screen is not in the app yet. An org admin sets it up through the API with their signed-in session. Contact support if you need help.

Events

Event Sent when
alert.fired An alert rule fires for a team or group. Only rules owned by an org admin send it.
ai_budget.threshold_reached An AI budget for the organisation, a team or a group reaches a threshold.
ping An org admin sends a test event.

Events describe a team, a group or the whole organisation. They never name a person and never include pull request text or comments. They carry the same information as the alert messages DevGlimpse posts in Slack or Teams.

Register an endpoint

An org admin registers up to 10 endpoints per workspace. Each one lists the events it receives.

POST /outbound-webhooks
{ "url": "https://hooks.example.com/devglimpse", "eventTypes": ["alert.fired"] }
  • The URL must use HTTPS on the standard port and a public host name. IP addresses, internal host names, DevGlimpse’s own host names and redirects are refused.
  • The response includes a signing secret, starting whsec_. It is shown once. Store it in your receiver.

Other actions: GET /outbound-webhooks lists endpoints, POST /outbound-webhooks/test sends a ping, POST /outbound-webhooks/disable, /enable and /delete take { "id": ... }, and GET /outbound-webhooks/deliveries?endpoint=<id> lists recent deliveries, newest first, with a nextCursor for the next page.

Check the signature

Each request is a JSON POST with these headers:

Header Value
X-DevGlimpse-Event The event type.
X-DevGlimpse-Event-Id The event id. The same for every retry. Use it to drop duplicates.
X-DevGlimpse-Timestamp When this attempt was sent, in Unix seconds.
X-DevGlimpse-Signature v1= and the hex HMAC-SHA256 of <timestamp>.<raw body> under your secret.

In your receiver:

  1. Compute the HMAC over the timestamp, a dot and the raw request body, and compare it to the signature in constant time. The key is the whole secret as text, including whsec_. Do not base64-decode it.
  2. Refuse timestamps more than five minutes old.
  3. Answer with any 2xx status within 10 seconds.

Retries

A request that does not get a 2xx answer, times out or is redirected is retried with growing delays, six attempts in all. After that the delivery is marked failed. After 10 failed deliveries in a row the endpoint is turned off until an org admin turns it back on.

Deliveries stop when the org admin who registered the endpoint is no longer an org admin, or when your plan no longer includes the API.