Skip to content

Rhombus Webhooks

Configure Rhombus webhooks to receive real-time HTTP POST notifications for camera alerts, door events, sensor thresholds, and button presses without polling.

On this page

Rhombus webhooks deliver real-time HTTP POST notifications to your server when events occur — door opens, camera alerts, sensor threshold breaches, button presses, and more. Instead of polling the API, your application receives events as they happen.

How webhooks work

  1. Add a Webhook

    Add a webhook URL in the console (Settings → Integrations & Developer Resources → Webhooks, with Trigger Type Activity or Diagnostic), or add a webhook action to a rule.

  2. Events Occur

    When a subscribed event happens in your Rhombus environment (e.g., a door is forced open), the system generates an event payload.

  3. Receive Notifications

    Rhombus sends an HTTP POST request to your registered URL with the event details as a JSON payload.

  4. Process & Respond

    Your server returns 200 OK within a few seconds and processes the event afterward. Rhombus doesn't retry a failed delivery; see Delivery.

Event types

Rhombus supports webhook notifications for a wide range of events across your security infrastructure:

Camera Events

Motion detection, analytics alerts, video clips saved, AI-powered detections

Access Control Events

Door open/close, forced entry, access granted/denied, credential scans

Sensor Events

Temperature, humidity, and air quality threshold alerts

Device Events

Button presses, device online/offline status changes

Sample webhook payload

When an event triggers a webhook, Rhombus sends a POST request to your URL with a JSON payload. The body depends on the webhook type.

Rule webhook action

json
{
  "uuid": "event-uuid-here",
  "orgUuid": "org-uuid-here",
  "ruleUuid": "rule-uuid-here",
  "triggeredTimestampMs": 1712678400000,
  "deviceEvents": [
    {
      "eventUuid": "device-event-uuid-here",
      "deviceUuid": "camera-uuid-here",
      "deviceType": "CAMERA",
      "locationUuid": "location-uuid-here",
      "timestampMs": 1712678400000,
      "activities": ["MOTION_HUMAN"]
    }
  ],
  "ruleTriggers": [
    {
      "type": "DEVICE_ACTIVITY_EVENT"
    }
  ]
}

Organization webhook (Activity and Diagnostic)

json
{
  "version": "2",
  "activityTrigger": "MOTION_HUMAN",
  "summary": "One-line summary of the event",
  "deviceUuid": "camera-uuid-here",
  "location": "location-uuid-here",
  "deviceType": "CAMERA",
  "timestampMs": 1712678400000,
  "alertUuid": "alert-uuid-here",
  "durationSec": 10,
  "thumbnailLocation": "storage-region-here",
  "clipLocationMap": {
    "camera-uuid-here": "storage-region-here"
  }
}

Delivery

The two kinds of webhook are delivered differently:

Rule webhook actionOrganization webhook (Activity or Diagnostic)
Set up inA rule's webhook actionSettings → Integrations & Developer Resources → Webhooks, up to four URLs per trigger type
Sent whenThe rule firesRhombus sends a notification of that trigger type. There's no per-webhook event filter: every URL receives every notification of its type
Signature headersx-rhombus-signature-sha256, and x-rhombus-signature-ts-sha256 with x-rhombus-timestampx-rhombus-signature-sha256, x-rhombus-signature-ts-sha256 with x-rhombus-timestamp, and also x-rhombus-signature-sha1
Counts as delivered200 or 202Any 2xx
Time limits2 seconds to connect, 30 seconds to respond5 seconds to connect, 30 seconds to respond
RetriesNoneNone
RedirectsNot followed: a 3xx answer is a failed deliveryNot followed: a 3xx answer is a failed delivery
Client certificateNonePresented when your server asks for one (Verifying the client certificate)
Server certificateMust chain to a public certificate authorityA public certificate authority, or only the certificates you set on the webhook (Trusting your own certificates)

Rhombus makes one delivery attempt. A delivery that fails (your server is down, slow to connect, or answers with another status) isn't sent again, and a failed rule webhook is recorded as an EXTERNAL_WEBHOOK_FAILURE diagnostic event in your organization. Build your receiver for that:

  • Acknowledge first, work later. Return 200 as soon as the signature checks out, and process the event in a queue or background job.
  • Reconcile after an outage. Webhooks are a fast path, not a record. After your endpoint has been unavailable, read what you missed from the API, for example policy alerts with getPolicyAlerts (see Pagination).
  • De-duplicate and order by the payload. Use the IDs in the body (alertUuid, the event uuid) to ignore repeats, and timestampMs rather than arrival order to sequence events.
  • Use HTTPS. New webhook URLs must start with https://; a URL saved earlier with http:// keeps working. Your server's certificate must chain to a public certificate authority unless you set trusted certificates on an organization webhook (Trusting your own certificates).
  • Answer directly. Rhombus doesn't follow redirects, so return your 2xx from the URL you registered.
  • Use a public address. Organization webhooks are delivered only to public IP addresses. If your URL's host resolves to a private, loopback or link-local address (for example 10.0.0.0/8, 192.168.0.0/16 or 169.254.169.254), the delivery fails without connecting. To reach a server on a private network, see Webhook receivers.

Verifying webhook signatures

Rhombus signs webhook deliveries so you can confirm that a request came from Rhombus and that the body wasn't changed in transit. Every signed delivery carries x-rhombus-signature-sha256: the HMAC-SHA256 of the raw request body, keyed with that webhook's secret, in lowercase hexadecimal. Verify that header.

Webhook typeWhere it's configuredSignature headers
Organization webhooks (Activity and Diagnostic)Console: Settings → Integrations & Developer Resources → Webhooks, or POST /api/integrations/webhooks/updateWebhookIntegrationV2x-rhombus-signature-sha256 (HMAC-SHA256), x-rhombus-signature-ts-sha256 (HMAC-SHA256 with the timestamp), and also x-rhombus-signature-sha1 (HMAC-SHA1)
Rule webhook actionsThe webhook action on a rule (POST /api/rules/createRule, POST /api/rules/updateRule)x-rhombus-signature-sha256 (HMAC-SHA256) and x-rhombus-signature-ts-sha256 (HMAC-SHA256 with the timestamp)

The x-rhombus-signature-sha1 header on organization webhooks is an HMAC-SHA1 of the same body with the same secret. You don't need it when you verify x-rhombus-signature-sha256.

For both types:

  • Signed content: the exact bytes of the HTTP request body (UTF-8 JSON). Verify the signature before you parse or re-serialize the body.
  • Key: the webhook secret string, used as-is (its UTF-8 bytes). Secrets are 22-character base64url strings. Don't decode them.
  • Encoding: lowercase hexadecimal.
  • Scope: x-rhombus-signature-sha256 signs only the body. x-rhombus-signature-ts-sha256 also signs when the request was sent, so a captured request can't be replayed later (Reject replayed requests). Either way, de-duplicate deliveries using IDs in the payload, such as alertUuid or the event uuid.
  • One secret per URL: each webhook URL has its own secret. If you register several URLs, store a secret for each.

Find your secret

Organization webhooks. Rhombus creates a secret when you add a webhook URL, and every organization webhook delivery is signed.

Rule webhook actions. When you create or update a rule with webhook actions, the response includes webhookSecrets, a map from each webhook URL to its secret. Store it securely.

  • Updating a rule keeps the existing secret for URLs that already have one, and creates a secret for new URLs.
  • Rhombus always generates these secrets. A secret sent in the request is ignored.
  • POST /api/rules/revealWebhookSecrets returns webhookSecrets for the ruleUuid you send, and gives a secret to any of the rule's webhook actions that don't have one yet.
  • A webhook action without a secret is delivered without signature headers. Reveal the rule's secrets, or update the rule, to assign one.

Revealing a secret requires the Integration Settings: View & Manage permission, and each reveal is recorded in the audit trail.

Verify a request

  1. Read the raw request body as bytes, before any JSON parsing.
  2. Read the x-rhombus-signature-sha256 header.
  3. Compute the HMAC-SHA256 of the raw body with your secret, hex-encode it in lowercase, and compare it with the header in constant time.
  4. If the header is missing or doesn't match, respond 401 and discard the request. Otherwise process the event and return 200 OK quickly. Rule webhook actions treat only 200 and 202 as delivered.
python
import hashlib
import hmac
import os

from flask import Flask, abort, request

app = Flask(__name__)
WEBHOOK_SECRET = os.environ["RHOMBUS_WEBHOOK_SECRET"]


def rhombus_signature_is_valid(raw_body: bytes, signature: str, secret: str) -> bool:
    expected = hmac.new(secret.encode("utf-8"), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature.strip().lower())  # constant time


@app.post("/rhombus-webhook")
def rhombus_webhook():
    raw_body = request.get_data()  # raw bytes, exactly as sent
    signature = request.headers.get("x-rhombus-signature-sha256", "")  # empty when unsigned
    if not rhombus_signature_is_valid(raw_body, signature, WEBHOOK_SECRET):
        abort(401)
    event = request.get_json()
    # ... handle the event ...
    return "", 200
Tip

To test your implementation, use the secret AAAAAAAAAAAAAAAAAAAAAA and the body {"version":"2","summary":"Test webhook"}. The expected x-rhombus-signature-sha256 is 5d3808f7c72ed8b6e52c12cf3ae13e72667d316178c6110081d58282828b2482, and the expected x-rhombus-signature-sha1 is 7c67f32d7b1320f76fa6d171a1a54dd6808570b6.

Reject replayed requests

Every signed delivery also carries two headers that let you refuse a request someone captured and sent again:

  • x-rhombus-timestamp: when Rhombus sent the request, in Unix seconds.
  • x-rhombus-signature-ts-sha256: the HMAC-SHA256 of the timestamp, a period (.) and the raw body (<x-rhombus-timestamp>.<body>), keyed with the same secret, in lowercase hexadecimal.

Verify x-rhombus-signature-ts-sha256 the same way as x-rhombus-signature-sha256, in constant time, and reject the request when the timestamp is more than five minutes from your server's clock.

import hashlib
import hmac
import time


def rhombus_request_is_recent_and_signed(raw_body: bytes, headers, secret: str, tolerance_s: int = 300) -> bool:
    timestamp = headers.get("x-rhombus-timestamp", "")
    signature = headers.get("x-rhombus-signature-ts-sha256", "")
    if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > tolerance_s:
        return False
    signed = timestamp.encode("ascii") + b"." + raw_body
    expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature.strip().lower())  # constant time
Tip

With the secret AAAAAAAAAAAAAAAAAAAAAA, the body {"version":"2","summary":"Test webhook"} and the timestamp 1700000000, the expected x-rhombus-signature-ts-sha256 is 563cfefe8be9c694db8df78bbcfcfab89c98a5536a67cee9e85d8053b6a29863.

Rotate a secret

Rotate a webhook's secret if it may have been exposed, or on your own schedule. The new secret signs deliveries right away, and for the next 24 hours Rhombus also signs them with the secret it replaced, so your receiver keeps accepting deliveries while you update it.

Both endpoints return the new secret as webhookSecret. Like revealing, rotating requires the Integration Settings: View & Manage permission and is recorded in the audit trail.

For 24 hours after a rotation, each delivery carries two more headers, computed exactly like the usual ones but with the replaced secret:

  • x-rhombus-signature-sha256-previous
  • x-rhombus-signature-ts-sha256-previous, over the same x-rhombus-timestamp

A receiver that still has the old secret checks the usual header first and, when it doesn't match, the -previous header with the same secret. Move your receiver to the new secret within 24 hours; after that the -previous headers stop. Rotating again inside the 24 hours replaces the previous secret, so the secret from two rotations ago stops working at once. On organization webhooks, x-rhombus-signature-sha1 is signed with the new secret only.

def rhombus_signature_is_valid_during_rotation(raw_body: bytes, headers, secret: str) -> bool:
    return any(
        rhombus_signature_is_valid(raw_body, headers.get(name, ""), secret)
        for name in ("x-rhombus-signature-sha256", "x-rhombus-signature-sha256-previous")
    )

Check x-rhombus-signature-ts-sha256-previous the same way when you verify the timestamped signature.

One secret for the organization

An organization can sign every webhook it sends with one secret: its organization webhooks and the webhook actions of every rule. A receiver then needs one secret per organization instead of one per webhook URL. Rhombus generates the secret, as it does every webhook secret.

For 7 days after a switch, deliveries also carry the -previous headers, signed with the secret that signed before: each webhook's own secret after switching to one secret, the organization secret after switching back. Verify them as during a rotation, and move your receivers within those 7 days. While the 7 days run, getWebhookSigning returns modeChangeOverlapEndsAtMs.

While one secret signs every webhook:

  • Revealing a webhook's secret, and the webhookSecret or webhookSecrets that create and update responses return, give the organization secret.
  • POST /api/integrations/webhooks/rotateOrgWebhookSecret rotates it: the new secret signs at once and the replaced one signs in the -previous headers for 24 hours. A rotation is refused during the 7 days after a switch. Rotating a single webhook's secret is refused.

These endpoints require the Integration Settings: View & Manage permission, and each reveal, rotation and switch is recorded in the audit trail.

Verifying the client certificate

Rhombus delivers organization webhooks over TLS and presents a client certificate when your server asks for one (mutual TLS). Require it to accept connections only from Rhombus, and keep checking the signature, which ties the body to your webhook's secret.

  • The certificate's subject is CN=webhook-client.rhombus.com, and it's for client authentication only. It's issued by the Rhombus Webhook Client CA, and every region uses it.
  • Rhombus renews the certificate before it expires. Trust the CA, not the certificate itself.
  • Rule webhook actions don't present a client certificate.

The Rhombus Webhook Client CA certificate is valid until October 28, 2036. Its SHA-256 fingerprint is 09:84:D2:D4:88:40:3C:BC:EA:BB:31:33:15:9B:8E:C6:2E:5F:EB:F9:38:56:94:48:A5:E9:99:D4:F2:E7:FB:2B.

rhombus-webhook-client-ca.pem
-----BEGIN CERTIFICATE-----
MIIF4DCCA8igAwIBAgIQNaPS90xw81I7t27Fm9dQETANBgkqhkiG9w0BAQsFADCB
iTELMAkGA1UEBhMCVVMxFjAUBgNVBAoMDVJob21idXMsIEluYy4xFDASBgNVBAsM
C0VuZ2luZWVyaW5nMRMwEQYDVQQIDApDYWxpZm9ybmlhMSIwIAYDVQQDDBlSaG9t
YnVzIFdlYmhvb2sgQ2xpZW50IENBMRMwEQYDVQQHDApTYWNyYW1lbnRvMB4XDTI2
MTAyODE1NTc1MloXDTM2MTAyODE2NTc1MlowgYkxCzAJBgNVBAYTAlVTMRYwFAYD
VQQKDA1SaG9tYnVzLCBJbmMuM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V4Z0R
STSmmbOVTQn07HgTfh/ItWEpA8PINV7Jo/yJfRvr747iP4nR67+pqa3iFXE4P3x7
BjVpQ05iMLFydTXQeA7vYkn3aGxce4/xzVeiPesbDout8mM1/Tn2PbVYH1riuHan
WnXIrOhVwDM0nNFW3+ramPWaNIXpdK/7hcfMrzD9Q54LCVvjLFyjlOnM/v1+2Oku
vKwGfB2S59ACTXHj4SzWNC+0WqdP0QLNBAc7jwgUc+bKPrGvu8tYop6jIL5wY3DH
krEzeXNN4iURdlnOSDOAzZjJsYtX6hgml8eJva1S4EOA6a5taFzrHjY7MY6goY7x
ijFTAN1om6LrOirCK2Zp5wac3TvMSr1pxiR+SQDhMkTbIImBBtN7m1iXBrQp8K/R
BTfGqE1+NRvbkpD8XNa9H//ZJRLOqz3pd2einug+HmbtziKOkWEW+cGVLnToQbyf
f1ZWS1GDhMOMOl10sRc6jHTjKxWQNtFwzbV77uuFxIM3j7MtW1+ml/504XJfXbgp
HDAmq8fcg3mEtjM5nXy3pXQo2/2x49Ag1SumQ8s1sEdO687Dvvds+18UHsuKcbgF
4tTpL1VYhXQt3sgqaw/lNd1mkew=
-----END CERTIFICATE-----

To require the certificate:

  1. Configure your server or load balancer to request a client certificate and to trust only the Rhombus Webhook Client CA for client certificates. If it lists acceptable certificate authorities in the TLS handshake, include this one.
  2. Accept the connection only when the client certificate chains to that CA and its subject is CN=webhook-client.rhombus.com.
  3. Then verify the signature as described above.

For example, with nginx:

nginx
ssl_client_certificate /etc/nginx/rhombus-webhook-client-ca.pem;
ssl_verify_client on;

location /rhombus-webhook {
    if ($ssl_client_s_dn != "CN=webhook-client.rhombus.com") {
        return 403;
    }
    proxy_pass http://127.0.0.1:8080;
}

Trusting your own certificates

By default, an organization webhook's server certificate must chain to a public certificate authority. To use a private certificate authority, or to pin your server's own certificate, set trusted CA certificates on the webhook. Rhombus then trusts only those certificates for that webhook, and still checks that the server certificate matches the URL's host name.

  • Console: paste the certificates in Trusted CA certificates when you add the webhook, or choose Add Trusted Certificates (or Edit Trusted Certificates) on the webhook's row and then Save. Clear the field to go back to public certificate authorities.
  • API: send trustedCaCertificates with a new webhookUrl to updateWebhookIntegrationV2, or set or remove trustedCaCertificates on the webhook's entry in updatedWebhookSettings. getWebhookIntegration returns it with each webhook.
  • What's accepted: up to 10 PEM CERTIFICATE blocks, 32 KB in total, on a webhook whose URL starts with https://. Any certificate can be a trust anchor, including a self-signed server certificate. A private key is refused.
  • When it doesn't match: the delivery fails like any other and is recorded as a Custom Webhook notification failure diagnostic that starts with TLS handshake failed.

Rule webhook actions always use public certificate authorities.

Managing webhooks via the API

Organization webhooks are managed with the Webhook Integrations operations:

Each URL receives every notification of its trigger type; there's no filter to set. Rule webhook actions belong to their rule and are managed with the Rules operations in the API Reference.

Implementation guide

Webhook receivers builds a complete receiver: signature checks on the raw body, queuing, reaching systems on a private network without opening it to the internet, and local testing.

No-code alternatives

If you prefer a visual workflow builder over writing custom webhook handlers, Rhombus integrates with:

  • Zapier — instant triggers for rule events, button presses, door events, and sensor alerts
  • Make.com — webhook triggers with advanced data routing
  • n8n — self-hosted webhook processing with AI agent capabilities