dr.romik
10/02/2025, 6:00 AMAI Evy
10/02/2025, 6:00 AMAI Evy
10/02/2025, 6:00 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
10/02/2025, 6:00 AMcall_started webhook won't trigger, but call_ended and call_analyzed will still be sent
Other users have reported similar issues with missing webhook notifications [(3) ]() , so double-check your endpoint configuration and response handling.AI Evy
10/02/2025, 6:00 AMAI Evy
10/02/2025, 6:00 AM