Webhook Authentication
The HoopAI Platform signs webhook payloads with a digital signature so you can verify that requests are coming from a trusted source.How It Works
1. Receiving the Webhook
When your endpoint receives a webhook request, it will include the following: Headers:x-wh-signature: The digital signature of the payload.
2. Verifying the Signature
To verify the authenticity of the webhook request:- Retrieve the
x-wh-signatureheader from the request. - Use the public key below to verify the signature.
- Compute the signature on your end using the payload and the public key.
- Compare your computed signature with the
x-wh-signatureheader.
3. Handling Replay Attacks
To protect against replay attacks:- Ensure the
timestampin the payload is within an acceptable time window (e.g., 5 minutes). - Reject any requests with duplicate
webhookIdvalues.