Skip to main content

Webhooks: signed timestamps protect against replayed deliveries

Webhook deliveries, both Motor Block delivery webhooks and Communications workspace webhooks, now carry two new headers:

  • X-Motorical-Timestamp: when the delivery was signed, in Unix seconds.
  • X-Motorical-Signature-V2: HMAC-SHA256 of <timestamp>.<raw body>, keyed with your webhook secret.

Verify v2 and reject a timestamp more than five minutes from your clock. Because the timestamp is signed, someone who captures a delivery cannot send it to you again later, and cannot change the timestamp without breaking the signature. Updated, tested samples in Node.js, Python, Go, PHP and Ruby: Signature verification.

Nothing breaks. X-Motorical-Signature, the old signature over the body alone, is still sent, so existing receivers keep working. Move to v2 when you can.

Documentation changed