Listar Webhooks API
Secret de signature des webhooks sortants (récupération / rotation). Chaque webhook envoyé sur votre `callbackUrl` porte un en-tête de signature `X-Listar-Signature: t=,v1=`. La signature = HMAC-SHA256 de `timestamp + "." + corps brut`, avec votre secret comme clé : ```js const crypto = require('crypto'); function verify(rawBody, header, secret) { const parts = Object.fromEntries(header.split(',').map((p) => p.split('='))); if (!parts.v1) return false; const expected = crypto .createHmac('sha256', secret) .update(parts.t + '.' + rawBody) .digest('hex'); const a = Buffer.from(expected); const b = Buffer.from(parts.v1); return a.length === b.length && crypto.timingSafeEqual(a, b); } ```