Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Signature Validation

Webhook Signature Validation

To ensure the authenticity of incoming webhook requests from WhiteIntel, you must verify the HMAC signature of each request.

Each request includes:

  • X-Signature: Base64-encoded HMAC SHA256 digest

  • X-Signature-Version: Currently always v1

  • X-Timestamp: ISO 8601 UTC timestamp

  • User-Agent: Always WhiteIntel-Webhook


Validation Logic

You must:

  1. Compute HMAC SHA256 with your secret key

  2. Base64 encode the result

  3. Compare with the X-Signature header securely


Important Notes

  • Use === comparison to avoid timing attacks

  • Optionally reject if X-Timestamp is too old

  • Optionally check description values. The values are static based on the match_types and will never change unless we officially announce new descriptions.


Example: PHP

Example: Node.js (Express)

Example: Java (Spring Boot)

Example: Python (Flask)

Example: Ruby (Sinatra)

Example: .NET Core (C#)

Last updated