petejaws_39681
08/29/2025, 3:48 AMAI Evy
08/29/2025, 3:48 AMAI Evy
08/29/2025, 3:48 AMensure_ascii=False to JSON dump operations may help resolve encoding-related signature verification failures
3. API key format - Ensure your API key doesn't contain weird characters that might cause parsing issues [(3) ]()
## Verification Requirements
You can also allowlist Retell IP addresses: 100.20.5.228 [(1) ]() . The webhook uses the x-retell-signature header together with your Retell API Key to verify authenticity .
If you're still having issues after checking these points, ensure you're using the Retell SDK's built-in verify function rather than implementing custom signature verification.AI Evy
08/29/2025, 3:48 AMjavascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const {event, call} = req.body;
// process the webhook
// Acknowledge the receipt of the event
res.status(204) .send() ;
}) ;AI Evy
08/29/2025, 3:48 AMAI Evy
08/29/2025, 3:48 AM