- Qubitara Synapse
- Administration
- Webhooks
Webhooks
Webhooks tell another system — a chat tool, a build pipeline, a ticketing system — when something happens in Synapse. Each webhook is an HTTPS address of yours that Synapse posts to.
Events#
Event | When |
|---|---|
| A page was created |
| A page's draft was saved |
| A page was published, or published again |
| A page was unpublished |
| A page moved to another parent or space |
| A page was moved to the trash |
| A page was deleted for good |
| A comment was added |
| A thread was resolved |
GET /api/v1/admin/webhooks/events lists them.
Manage webhooks#
Call | Does |
|---|---|
| List this organization's webhooks |
| Create one: a target URL and the events to send. The answer includes the signing secret — shown once, here, and never again. |
| Change the URL, the events, or pause it |
| Remove it |
| Recent deliveries with status codes, for debugging |
Webhooks belong to your organization and only ever carry its events.
Receiving a delivery#
Synapse posts a JSON body with the event name, the organization, the page or comment concerned, who acted and when. Verify the signature header with the signing secret (HMAC-SHA256 of the raw body) before trusting a delivery, answer 200 promptly, and do the work afterwards — a slow or failing endpoint is retried with backoff and eventually paused.
Targets#
The target must be a public HTTPS address. Private and link-local addresses are refused, to keep a webhook from being turned into a probe of the platform's own network.