https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey, I'd like to set a webhook endpoint for a Supa...
# ❓・ai-evy-support
j
@AI Evy Hey, I'd like to set a webhook endpoint for a Supabase function. For some reason I don't have the option in the webhook settings within my retell account. Can you please enable webhook configuration access for my project? Thanks a ton.
a
Thanks for tagging me @johnsonofgreyskull. I'll look through relevant sources and get back to you shortly.
### Answer I don't have specific information about enabling webhook configuration access for individual projects in the available sources. However, I can help you understand how to set up webhooks in Retell AI. For webhook configuration, you'll need to create an HTTP or HTTPS endpoint that can accept webhook requests with a POST method [(1) ]() . Here's an example endpoint structure:
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() ;
}) ;
Retell AI supports webhook events like
call_started
,
call_ended
, and
call_analyzed
[(2) ]() . The webhook will POST the payload to your endpoint with a timeout of 10 seconds, and if no success status (2xx) is received, it will be retried up to 3 times . For account-specific webhook configuration issues, you'll need to contact support directly: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Setup guide](https://docs.retellai.com/features/register-webhook) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.