Webhooks for developers
Every tender that matches an alert reaches your system as a signed POST. Available on Business.
Payload
The body is JSON; the only event today is tender.matched.
{
"type": "tender.matched",
"timestamp": "2026-09-26T09:00:00Z",
"data": {
"notification_id": 1,
"search_id": "…",
"search_name": "تكييف القصيم",
"tender": {
"tenderId": 1106290,
"name": "…"
},
"url": "https://…"
}
}Verifying the signature
Every message is signed per Standard Webhooks with the webhook-id, webhook-timestamp and webhook-signature headers. Verify before processing:
import crypto from "node:crypto";
// secret: "whsec_..." as shown once when the endpoint was added
export function verify(secret, headers, rawBody) {
const id = headers["webhook-id"];
const ts = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // replay window
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = crypto.createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest("base64");
// during a rotation two signatures are sent, space separated
return headers["webhook-signature"].split(" ").some((s) => {
const sig = s.replace(/^v1,/, "");
return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
});
}Retries and disabling
We wait 10 seconds for a response and don't follow redirects. We retry on timeouts, network errors, 408, 429 and 5xx. A 410 disables the endpoint at once, as do 24 hours of continuous failure.