Verifying webhook signatures

Every webhook Quillstack sends includes a signature header. Verify it before you trust the payload, so that an attacker cannot send fake events to your endpoint.

How signing works

Quillstack signs the raw request body with HMAC-SHA256, using your endpoint's signing secret as the key. The result is sent in the Quillstack-Signature header, together with a Unix timestamp.

The header looks like this:

Quillstack-Signature: t=1767225600,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

Signing secret rotation

You can rotate a secret from the dashboard at any time. During rotation both the old and new secrets stay valid for 24 hours, and Quillstack sends one v1 value for each.

Header valueMeaningRequired
tUnix timestamp when the event was signedYes
v1HMAC-SHA256 signature, hex encodedYes
v0Legacy SHA1 signature, sent only to endpoints created before 2024No

Troubleshooting

  • Signatures never match: make sure your framework is not re-serialising the JSON body.
  • Signatures match locally but not in production: check that a proxy is not changing line endings.
  • Still stuck: see Testing webhooks locally.