https://retellai.com/?utm_source=discord&utm_medium=seo logo
cual es mi tu_endpoint_id
# ❓・ai-evy-support
a
@AI Evy cual es mi tu_endpoint_id?
a
Thanks for tagging me @alejo8888_48252. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]()
Copy code
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) => {
 const {event, call} = req.body;
 switch (event) {
 case "call_started":
 console.log("Call started event received", call.call_id) ;
 break;
 case "call_ended":
 console.log("Call ended event received", call.call_id) ;
 break;
 case "call_analyzed":
 console.log("Call analyzed event received", call.call_id) ;
 break;
 default:
 console.log("Received an unknown event:", event) ;
 }
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
En el ejemplo de configuración de webhook, el endpoint se define como "/webhook" . Para crear tu propio endpoint, necesitas configurar una URL HTTP o HTTPS que pueda aceptar solicitudes webhook con método POST . Tu endpoint_id sería la URL completa donde tienes configurado tu servidor, por ejemplo: ` o si usas ngrok para pruebas locales: ` . Para configurar tu endpoint: 1. Crea tu servidor endpoint que pueda aceptar solicitudes POST 2. Despliega tu endpoint usando ngrok o tu propio dominio 3. Registra tu webhook endpoint en el dashboard de Retell AI
​ To learn more, see the sources I considered: [[1] Setup guide](https://docs.retellai.com/features/register-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.