Receive Mailkick email HTML on your own endpoint via signed webhooks
This integration lets you push your Mailkick email HTML to any HTTPS endpoint you control (Zapier, n8n, your own backend). Every payload is HMAC-SHA256 signed so you can verify it really comes from Mailkick.
Take the raw request body as a UTF-8 string. Do not re-serialize it from a parsed object: JSON key ordering and whitespace must match exactly what Mailkick signed.
Concatenate ${timestamp}.${rawBody}.
Compute HMAC-SHA256(secret, signedString) and hex-encode the result.
Compare against the v1 value from X-Mailkick-Signature using a constant-time comparison.
Reject the request if the timestamp drifts from your server’s clock by more than 5 minutes (replay protection).
Mailkick retries a delivery on 5xx errors or network failures, with up to three attempts and waits of 1 second and then 4 seconds between attempts. All retries share the same delivery_id, Idempotency-Key, and X-Mailkick-Delivery UUID. After verifying the signature, use the delivery_id from the signed body to deduplicate requests. The HTTP delivery headers are not covered by the signature on their own.4xx responses are treated as permanent errors and are not retried. Return 4xx only if you want to definitively reject the payload.
The new secret takes effect immediately when you click Rotate secret in Settings → Integrations → Webhook. There is no overlap period with the old secret.For a planned rotation, pause webhook syncs, rotate the secret in Mailkick, copy the new value to your receiver, then test a sync before resuming normal use. If the secret has leaked, rotate it immediately and update your receiver as soon as possible. A receiver still using the old secret will reject deliveries during the transition.
Make sure you sign the raw request body, not a re-serialized JSON. Express’s req.body after express.json() is parsed, not raw: capture it via the verify callback as shown above.
Check that t= and v1= are read in the right order and not swapped.
Confirm your server clock is within 5 minutes of UTC.