Space Works platform: Notifications

Signed JSON webhooks for your own systems

The webhook module is the Space Works channel that delivers each routed notification as signed JSON to an HTTPS endpoint of your own, verified with an HMAC-SHA256 signature.

Signed webhooks connect Space Works to systems you run, such as an ERP, a bot you wrote or a spreadsheet bridge. A webhook destination sits in the same matrix as the chat rooms and receives exactly the notification a room would, as JSON. Delivery is at least once, so receivers deduplicate by delivery ID.

Module key: webhook.

01 · Capabilities

What Signed webhooks does

  • Each delivery carries X-SpaceWorks-Signature with a timestamp and an HMAC-SHA256 over the timestamp and exact body, plus event and delivery headers.

  • The server generates the signing secret, shown once when the destination is created or rotated, and stores it encrypted.

  • Rotation keeps the old secret valid for a grace window of 0 to 168 hours, 24 by default, signing with both secrets meanwhile.

  • Payload format 2 carries only stable event keys and positive integer IDs, never chat text, contact details or credentials.

  • A JSON Schema catalogue describes every event, so receivers can validate payloads.

  • Endpoints are checked against private and loopback ranges, with the connection pinned to the checked address.

  • Failed deliveries are retried and logged, and a superadmin can re-queue them from the control plane.

02 · Step by step

How Signed webhooks works

  1. Turn on the webhook add-on and add a webhook destination with your HTTPS endpoint.

  2. Copy the generated secret into your receiver straight away.

  3. Enable the events the destination should receive in the matrix and send a delivery test.

  4. Your receiver checks the timestamp and signature before parsing, then fetches any detail it needs through the API.

03 · Roles

Who uses it

RoleWhat they can do
Space ManagerCreates destinations, chooses their events and rotates signing secrets.
DeveloperBuilds the receiver that verifies signatures and deduplicates deliveries.

FAQ

Signed webhooks: questions and answers

How do I verify a Space Works webhook?

Compute HMAC-SHA256 with your secret over the timestamp, a dot and the exact body bytes, compare it in constant time with the v1 value in X-SpaceWorks-Signature and reject stale timestamps.

What if I lose a webhook signing secret?

Rotate it. Space Works never shows a secret again, and rotation can keep the old one valid for a grace window so your receiver can switch over.

Do Space Works webhooks include personal data?

No. Version 2 payloads carry event keys and record IDs only, and receivers fetch detail through the API with their own credentials.

Free and open source

Run it on your own server

Space Works is free under AGPL-3.0-or-later. One command installs it on a 64-bit Linux server, and every area can be switched on later.