Integrations
Check the webhook signature
Every webhook request is signed with a secret. By checking the signature, your system makes sure the lead came from Sellora and was not changed on the way. This article is for the developer who receives the leads.
Request headers
| Header | Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| X-Sellora-Event | the event kind: lead.created, lead.stage_changed or test |
| X-Sellora-Delivery | the delivery number; a retry has the same one, so use it to drop duplicates |
| X-Sellora-Timestamp | the time of this attempt, in Unix seconds |
| X-Sellora-Signature | sha256= followed by the signature in hex |
Sellora does not read the response body: only the response code matters.
How the signature is computed
The signature is an HMAC-SHA256 with the integration secret over the string “the time from X-Sellora-Timestamp, a dot, the request body byte for byte”. The time is part of the signature so that you can reject an old intercepted request: we suggest a 5-minute window.
A check in Node.js, with no libraries:
import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody: the request body as it arrived (Buffer), before parsing the JSON.
export function isFromSellora(rawBody, headers, secret) {
const timestamp = headers["x-sellora-timestamp"];
const signature = headers["x-sellora-signature"] ?? "";
if (!timestamp || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = "sha256=" + createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest("hex");
const a = Buffer.from(signature);
const b = Buffer.from(expected);
return a.length === b.length && timingSafeEqual(a, b);
}In Python: hmac.new(secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256).hexdigest() and a comparison with hmac.compare_digest.
Important: compute the signature over the body exactly as it arrived, before parsing the JSON. Re-serialized JSON can differ in spaces and field order.
Show or change the secret
“Show secret” in “Settings and deliveries”: available to the owner and admins. If you signed in more than 15 minutes ago, Sellora asks you to sign in again. Showing the secret is written to the activity log.
“Change secret”: the old one stops working at once, and the next leads are signed with the new one. Put the new secret into your system, or it will stop accepting leads.
Do not send the secret in chats and do not publish it.
Related articles
Обновлено 25 ноября 2026 г.