x-retell-signature header together with your UponAI API key to verify every webhook request.
Only the API key with a webhook badge next to it can be used to verify webhooks.
100.20.5.228.
Verify with SDK
Node
Verify Without SDK
For languages without an official SDK, verify the signature manually using HMAC-SHA256. Signature format:v— Unix timestamp in milliseconds when the webhook was sentd— HMAC-SHA256 hex digest ofraw_body + timestamp
- Extract the
X-Retell-Signatureheader - Parse
v(timestamp) andd(digest) using patternv=(\d+),d=(.*) - Confirm the timestamp is within 5 minutes of now (prevents replay attacks)
- Compute
HMAC-SHA256(raw_body + timestamp, api_key) - Compare computed digest with
d— if they match, the webhook is authentic
Go