Skip to content
Docs
Qubitara Synapse

Webhooks

Updated Version 4SYNAPSE-62

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

page.created

A page was created

page.updated

A page's draft was saved

page.published

A page was published, or published again

page.unpublished

A page was unpublished

page.moved

A page moved to another parent or space

page.deleted

A page was moved to the trash

page.exploded

A page was deleted for good

comment.created

A comment was added

comment.resolved

A thread was resolved

GET /api/v1/admin/webhooks/events lists them.

Manage webhooks#

Call

Does

GET /api/v1/admin/webhooks

List this organization's webhooks

POST /api/v1/admin/webhooks

Create one: a target URL and the events to send. The answer includes the signing secret — shown once, here, and never again.

PATCH /api/v1/admin/webhooks/:id

Change the URL, the events, or pause it

DELETE /api/v1/admin/webhooks/:id

Remove it

GET /api/v1/admin/webhooks/:id/deliveries

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.