Webhooks
A webhook tells your own tools when something happens in a cloud workspace: sysgraph sends a signed HTTP request to an address you choose. Use it to post to a chat channel, open a ticket or start an automation.
Webhooks are managed by the workspace owner in Workspace › Integrations. They exist in cloud workspaces only.
Adding a webhook
- Open Workspace › Integrations and choose Add webhook.
- Give it a name and the address that will receive the requests. The address must start with
httpsand be reachable from the internet; internal addresses and addresses with a user name or password are not accepted. - Choose the format: JSON (signed envelope) for your own service or automation tools, or Slack / Microsoft Teams to post readable messages to a channel (see Slack and Teams).
- Tick the events you want.
- Save. The secret is shown once — copy it and keep it somewhere safe. The receiver needs it to verify requests.
A workspace can have up to 10 webhooks. Send test queues a ping event so you can try the receiver, and Deliveries shows the last 50 deliveries with their state, number of attempts and the HTTP answer.
Deliveries are sent from a queue, so there can be a few minutes between the event and the request.
Events
| Event | When |
|---|---|
decision.proposed | A decision becomes Proposed |
decision.accepted | A decision is accepted |
decision.superseded | A decision is replaced by a newer one |
project.status | A project moves to another status |
project.completed | A project is completed |
approval.waiting | A decision or project starts waiting for approval |
import.waiting | An automatic code import has items waiting for a decision |
radar.finding | A main-branch scan brings new high severity findings |
comment.created | Someone writes a comment or a reply (on a flow, project, decision, endpoint or catalog item) |
flow.changed | A flow is created, its diagram changes or it is deleted (a project's working copy doesn't count; renaming alone doesn't either) |
More events can be added over time; receivers should ignore events they don't know.
What is sent
With the JSON format, a POST with a JSON body:
{
"id": "5b0c…",
"event": "decision.accepted",
"at": "2026-11-11T10:00:00Z",
"workspace": { "id": "…", "name": "Payments" },
"data": { "decision": { "id": "…", "number": 12, "name": "Use a queue", "status": "accepted", "from": "proposed", "by": "Ada" } },
"url": "https://sysgraph.dev/app/#/decisions/…"
}data holds a short summary of the record, never its full content. url opens the record in the app. The fields of each event stay as they are; new fields may be added over time:
| Event | data |
|---|---|
decision.* | decision: id, number, name, status, from, by, tags |
project.* | project: id, number, name, status, from, by |
approval.waiting | kind (decision / project) and the record as above |
import.waiting | import: id, repo, commit, waiting |
radar.finding | repo, count, findings (id, rule, title, file; at most 10) |
comment.created | comment: id, text (at most 300 characters), by, reply, target (type, id, name) |
flow.changed | flow: id, name, action (created / changed / deleted), by |
Headers:
| Header | Value |
|---|---|
X-Sysgraph-Event | The event name |
X-Sysgraph-Delivery | The delivery id (same as id; stays the same on retries) |
X-Sysgraph-Signature | sha256= followed by the HMAC-SHA256 of the request body, made with the secret |
Slack and Teams
With the Slack or Microsoft Teams format sysgraph sends a short readable message instead of the JSON envelope: the workspace, what happened, who did it and a link that opens the record.
- Slack: create an incoming webhook for the channel in Slack and use its address (
https://hooks.slack.com/services/…). - Microsoft Teams: add a Workflows webhook to the channel ("Post to a channel when a webhook request is received") and use its address. The message is sent as an adaptive card.
The message is written in the language you were using when you added the webhook (English or Turkish). These tools do not check the signature, so the secret is not needed for them; the address itself is the secret — share it with care.
Verifying the signature
Compute the HMAC-SHA256 of the raw body with your secret and compare it with the header, for example in Node.js:
import crypto from 'node:crypto';
function verified(rawBody, header, secret) {
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
return header.length === expected.length && crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected));
}Reject requests whose signature does not match. If the secret leaks, use Renew the secret: the old one stops working immediately.
Retries and failures
- Answer with a
2xxstatus within 5 seconds. Anything else counts as a failure. - A failed delivery is retried after 1 minute, 10 minutes and 1 hour, then marked Failed.
- Because of retries the same delivery can arrive more than once; use
X-Sysgraph-Deliveryto ignore repeats. - Redirects are not followed.
- After 20 failed deliveries in a row the webhook is stopped and the workspace owner gets a notification (Integrations in the bell and the email digest). Fix the address and save it as Enabled to start it again.
- When a webhook is turned off (or stopped), deliveries still waiting in the queue are not sent; they appear as Failed (turned off) in Deliveries. Send test works for a turned-off webhook too.
See also Notifications for the in-app bell and the email digest.