Verify webhook signatures
Confirm that a webhook really comes from Meetlane and hasn't been replayed.
Every webhook request includes a Meetlane-Signature header. It contains a timestamp and an HMAC-SHA256 signature of the payload, computed with your endpoint’s signing secret.
Meetlane-Signature: t=1792571422,v1=5f2b7c0e9a4d61c2b8e1f0a3d7c95e48a21b6f3c0d9e8a7b6c5d4e3f2a1b0c9dFind the signing secret
Section titled “Find the signing secret”Open the endpoint under Settings → Developers → Webhooks. The secret starts with whsec_. Each endpoint has its own secret.
Verify with the SDK
Section titled “Verify with the SDK”The SDKs verify the signature and the timestamp in one call:
import osimport meetlane
def handle(request): event = meetlane.Webhook.construct_event( payload=request.body, signature=request.headers["Meetlane-Signature"], secret=os.environ["MEETLANE_WEBHOOK_SECRET"], ) print(event.type) # "booking.created"Verify by hand
Section titled “Verify by hand”- Split the header on
,to gett(timestamp) andv1(signature). - Build the signed string: the timestamp, a full stop and the raw request body,
"{t}.{body}". - Compute HMAC-SHA256 of that string with your signing secret.
- Compare it to
v1with a constant-time comparison. - Reject the request if
tis more than 5 minutes old.