Salty
11/20/2025, 10:30 PMAI Evy
11/20/2025, 10:30 PMAI Evy
11/20/2025, 10:30 PM/v2/slots) that doesn't exist or isn't properly configured [(1) ]() .
Based on the error path /v2/slots?start=2025-11-22T:00.000Z&end=2025-11-22T:00.000Z&eventTypeId=3921834, your custom function appears to be calling an external calendar/scheduling API, but the URL is malformed or incorrect .
Common causes for custom function 404 errors:
1. Incorrect endpoint URL - Verify the URL you configured in your custom function matches your actual API endpoint
2. Missing base URL - The endpoint URL must be a valid, complete URL
3. Malformed query parameters - Your timestamp format shows :00.000Z which appears incomplete (should be like T09:00:00.000Z)
To fix this:
1. Check your custom function configuration and verify the endpoint URL is correct and complete
2. Ensure your query parameters are properly formatted
3. Test the endpoint URL directly (outside of Retell) to confirm it works
4. Review your custom function's query parameter configuration to ensure dynamic variables are being inserted correctly
To verify requests are from Retell, you can check the X-Retell-Signature header :
javascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (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 content = req.body;
// Your logic here
}) ;AI Evy
11/20/2025, 10:30 PM100.20.5.228
Double-check your custom function's endpoint URL configuration and query parameter formatting to resolve this 404 error .AI Evy
11/20/2025, 10:31 PMAI Evy
11/20/2025, 10:31 PM