https://retellai.com/?utm_source=discord&utm_medium=seo logo
Webhook signature header not passing through retel...
# ❓・bug-report
j
We've been experiencing an issue with the webhooks, they are not passing through the validation process for some, reason, I have already checked that we are using the right API key for webhooks, the issue only appeared this week, since monday.
This is using the verify signature process from the sdk, in python, as suggested in https://docs.retellai.com/features/secure-webhook
s
hi @Juanes Make sure you're using the designated webhook API key (not just any API key) in your Retell.verify() function
j
I am, what info do you need from me to show you that the retell verify signature is just not properly returning true for the selected api key
@shahretell @User
@Omar Ashraf | Community Lead
@Colin - Integrations @ Retell AI
Look here's how our verification is setup, here's our org id org_tZw4gFk8Gf0fV0g6 The API Key we've been trying to use is key_****d3f0 which is the one marked as webhook Last week it was working fine, this week is not. Tool calls are still triggering normal (passes the verification decorator), but the webhook is returning false on the verification every time
Here's a sample of us transfering the request coming from Retell in order to validate the signature [INFO] Making POST request to "ouarppdomain" with headers: {'localdomain', 'user-agent': 'axios/1.7.7', 'content-length': '19567', 'accept': 'application/json, text/plain, */*', 'accept-encoding': 'gzip, compress, deflate, br', 'content-type': 'application/json', 'x-forwarded-for': '100.20.5.228', 'x-forwarded-host': 'localdomain', 'x-forwarded-proto': 'https', 'x-retell-signature': 'v=1754650742874,d=0a4d8f28ff3a43fb4592dabd51b088810a46a6ac6fe4f9307e15648554520715'} [INFO] HTTP Request: POST "ourdomain" "HTTP/1.1 401 Unauthorized" [INFO] Response status: 401 [INFO] Response body: {"message":"Unauthorized"}
s
try this brother
The most common cause is incorrect JSON serialization. Make sure you're using: Python: json.dumps(post_data, separators=(",", ":"), ensure_ascii=False) Node.js: JSON.stringify(req.body)
j
That's exaclty what the code shows, please check the screenshot of the code
Can you guys please check the logs of the webhook verification attempts used with our api key for webhooks and tell us whats going on? As I said before, it was working fine last week
@shahretell @Colin - Integrations @ Retell AI @Omar Ashraf | Community Lead
s
Hi @Juanes please double check you are using webhook badge api key ,also try by generating new key verify the timstamp too if it does not solve then send mail to support@retellai.com with complete situation