Sari la conținut
Help / Integrări

Webhooks cu HMAC signature: cum verifici

Toate webhooks sunt signed cu HMAC-SHA256. Cod sample Node + Python.

Setup

Settings → Webhooks → adaugă URL + selectează events.

Header signature

x-megaforms-signature: hex(HMAC-SHA256(body, secret)).

Verificare Node.js

 expected = crypto.createHmac('sha256', SECRET).update(rawBody).digest('hex'); if (expected !== req.headers['x-megaforms-signature']) throw new Error('Invalid');

Retry

Exponential backoff: 1s, 5s, 25s, 2min, 10min, 1h, 6h, 24h. Max 8 încercări.

Nu rezolvă problema ta?

Contact support