sysgraph Docs
Teams & cloud

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

  1. Open Workspace › Integrations and choose Add webhook.
  2. Give it a name and the address that will receive the requests. The address must start with https and be reachable from the internet; internal addresses and addresses with a user name or password are not accepted.
  3. 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).
  4. Tick the events you want.
  5. 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.

Note

Deliveries are sent from a queue, so there can be a few minutes between the event and the request.

Events

EventWhen
decision.proposedA decision becomes Proposed
decision.acceptedA decision is accepted
decision.supersededA decision is replaced by a newer one
project.statusA project moves to another status
project.completedA project is completed
approval.waitingA decision or project starts waiting for approval
import.waitingAn automatic code import has items waiting for a decision
radar.findingA main-branch scan brings new high severity findings
comment.createdSomeone writes a comment or a reply (on a flow, project, decision, endpoint or catalog item)
flow.changedA 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:

Eventdata
decision.*decision: id, number, name, status, from, by, tags
project.*project: id, number, name, status, from, by
approval.waitingkind (decision / project) and the record as above
import.waitingimport: id, repo, commit, waiting
radar.findingrepo, count, findings (id, rule, title, file; at most 10)
comment.createdcomment: id, text (at most 300 characters), by, reply, target (type, id, name)
flow.changedflow: id, name, action (created / changed / deleted), by

Headers:

HeaderValue
X-Sysgraph-EventThe event name
X-Sysgraph-DeliveryThe delivery id (same as id; stays the same on retries)
X-Sysgraph-Signaturesha256= 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 2xx status 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-Delivery to 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.