https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can Retellai supports authenticating its webhook c...
# ❓・ai-evy-support
n
@AI Evy Can Retellai supports authenticating its webhook calls using Google Cloud's native authentication
a
Thanks for tagging me @nrikike4676. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, Retell AI does not support Google Cloud's native authentication for webhook calls [(1) ]() . Instead, Retell AI uses its own authentication method for webhook security . Retell AI authenticates webhook calls using the
x-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:
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) => {
 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.
​ To learn more, see the sources I considered: [[1] Secure the webhook](https://docs.retellai.com/features/secure-webhook) [[2] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.