Skip to main content
Verify each request before accepting it into your system. Use the webhook API key and client secret configured for this callback; these are separate from your REST Integrations API key.

Authentication headers

Header names are case-insensitive.

Exactly what is signed

Bridge builds the HMAC input from the JSON event using the Python expression below, then encodes that string as UTF-8:
This sorts object keys recursively, preserves array order, escapes non-ASCII characters, and uses Python’s default spaces after commas and colons. It does not append a newline. The key is the client secret encoded as UTF-8. This is a Python JSON serialization convention, not RFC 8785 / JCS. Do not replace it with a digest of arbitrary raw request bytes, compact JSON, a generic JavaScript JSON.stringify, or a timestamp-prefixed string. Whitespace, Unicode escaping and number formatting can change the HMAC input even when the parsed object looks equivalent. Use the Python verifier below or test another implementation against the vector before connecting it.
The current HMAC input contains the event JSON only. X-Bridge-Timestamp is not included in the signature. Check freshness, but do not treat the timestamp alone as cryptographic replay protection: a previously valid payload and signature can be presented with a different timestamp. Authenticate the webhook API key and use a durable inbox and idempotent business processing as described in Receive events.

Python verifier

Save this as bridge_webhooks.py. It returns the verified parsed object so downstream code uses the same interpretation that was authenticated. Secrets should come from server-side environment variables or your secret store.
The five-minute window is receiver policy; keep your server clock synchronized. The verifier also rejects ambiguous duplicate JSON keys. Do not disable authentication when debugging a mismatch: check the configured webhook credentials and compare the canonical input against the fixture below.

Reproducible signature vector

These values are synthetic fixtures, not live credentials or an event to send to Bridge. When testing freshness checks, set the verifier’s now argument to 1800000000. Event object:
Exact signed JSON string (the \u sequences below are literal ASCII backslashes, not decoded characters):
Changing a field must fail verification. Changing only input key order or sending literal Unicode instead of JSON Unicode escapes must still verify after parsing and rebuilding the same canonical representation.

After verification

Commit the event to a durable inbox before acknowledging it. A valid HMAC confirms the authenticated event representation; it does not prove that your business action has run, that the event is new, or that it is the latest state of the resource. Continue with delivery, duplicates and ordering.