nrikike4676
08/30/2025, 10:58 PMAI Evy
08/30/2025, 10:58 PMAI Evy
08/30/2025, 10:58 PMx-retell-signature header together with your Retell API Key to verify that the webhook comes from Retell AI and not from a malicious third party . The platform provides a verify function in their SDKs to help with this authentication process .
Here's how Retell AI's webhook authentication works:
javascript
// 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() ;
}) ;
Additionally, you can allowlist Retell AI's IP address 100.20.5.228 for further security [(1) ]() [(2) ]() .
If you need to integrate with Google Cloud's authentication systems, you would need to implement that as an additional layer in your webhook endpoint after Retell AI's built-in authentication.AI Evy
08/30/2025, 10:58 PMAI Evy
08/30/2025, 10:58 PM