Prompt

What should I use for webhook signing and verification?

Technology / API Platforms4 observationsLast seen Nov 20, 2026

Latest observation

Nov 20, 2026OpenAI APIWeb search: off

For webhook signing and verification, the standard choice is:

Use an HMAC with SHA-256

  • Signing algorithm: HMAC-SHA256
  • Shared secret: a strong random secret known only to the sender and receiver
  • Payload: the exact raw request body
  • Header: send the signature in a custom header, e.g. X-Signature

Recommended pattern

  1. Sender computes:
    • signature = HMAC_SHA256(secret, raw_body)
  2. Sender includes:
    • X-Signature: <hex-or-base64 signature>
  3. Receiver:
    • reads the raw body exactly as received
    • recomputes HMAC with the same secret
    • compares signatures using a constant-time comparison

Best practices

  • Do not use plain hashes like SHA-256 alone; they are not keyed and don’t prove authenticity.
  • Use HTTPS always, but don’t rely on HTTPS alone for webhook authenticity.
  • Include a timestamp and/or nonce to prevent replay attacks.
  • Rotate secrets periodically if possible.
  • Reject old timestamps if you include one, e.g. older than 5 minutes.
  • Verify before parsing/acting on the payload.

If you want a practical convention

A common format is:

  • X-Webhook-Timestamp: <unix timestamp>
  • X-Webhook-Signature: v1=<HMAC-SHA256(timestamp + "." + raw_body)>

This makes replay protection easier.

If you want, I can also show you a concrete implementation in Python, Node.js, Go, or Java.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (4 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.