opyebWebhookLab

Slack · Events API

Verify Slack request signatures (X-Slack-Signature)

One-line answer

Slack signs the string v0:<timestamp>:<body> with HMAC-SHA256 and sends the hex digest as v0= in X-Slack-Signature.

Slack sends the timestamp in a separate header. It has to be joined into the signed string, so copying the body alone can never match.

Sign & verify

e.g. GitHub webhook Secret, Stripe whsec_…, Slack Signing Secret

Generated signature header

X-Hub-Signature-256

Enter a secret and body, then press Generate signature.

Verify a received signature

Original vs re-encoded body

Any proxy or framework that re-serializes JSON breaks the signature. Compare the body you received with the one your server rebuilt.

How to verify

  1. Enter the Signing Secret from your Slack app → Basic Information.
  2. Put the X-Slack-Request-Timestamp value into the timestamp field.
  3. Paste the raw body and compare with X-Slack-Signature (v0=…). Reject requests older than five minutes.

Verify a signature in your browser right now.

Guides

Frequently asked questions

What is X-Slack-Request-Timestamp used for?

It is part of the signed string and the basis for the five-minute window, so you need it for both.

Are url_verification requests signed too?

Yes. Slack signs every request. Verify the signature before returning the challenge.

How wide is Slack's tolerance?

The documentation recommends five minutes (300 seconds), which is also the default here.

The signature matches but Slack keeps failing. Why?

A newline may have been appended to the body, or a proxy changed the content encoding. Check the byte count and line endings in the body diagnostics.

Verifier by platform

WebhookVerify GitHub webhook signatures (X-Hub-Signature-256)Compute and verify push / pull_request signatures.WebhookVerify Stripe webhook signatures (Stripe-Signature)Compute t=,v1= signatures and check the 300 s window.WebhookVerify Shopify webhook HMAC (X-Shopify-Hmac-Sha256)Compute and verify the base64 HMAC.WebhookVerify Toss Payments webhook signatures (v1)Compute and verify the body:time signature.