Skip to main content
Every webhook HTTP request includes an X-Ake-Signature header signed with your endpoint’s Webhook Signing Secret (whsec_...):

Verification Steps

  1. Parse the timestamp t (Unix seconds) and signature v1 (lowercase hex) from X-Ake-Signature.
  2. Verify t is within an acceptable tolerance window (recommended: 300 seconds) of your server’s current UTC time to prevent replay attacks.
  3. Construct the signed payload string: ${t}.${rawRequestBody} (UTF-8, using the exact raw bytes before JSON parsing).
  4. Compute HMAC-SHA256 using your signing secret and compare against v1 using a constant-time comparison.

Code Examples