K
02/11/2026, 11:22 AMAI Evy
02/11/2026, 11:22 AMAI Evy
02/11/2026, 11:23 AM{bookingUid} instead of double curly braces {{bookingUid}}. [(1) ]()
To use dynamic variables in your custom function URL path, you must use the {{variable_name}} syntax. Your URL should be:
<https://api.cal.com/v2/bookings/%7B%7BbookingUid%7D%7D/cancel>
[(2) ]() , [(1) ]()
**Important requirement**: For the variable to be substituted in the URL path, you need to extract it as a dynamic variable before the custom function is called. If you're extracting bookingUid from a previous tool call's response, you should use the Extract Dynamic Variables function to save it, not just the response variable extraction within the custom function itself. [(3) ]()
A community member reported a similar issue where variables weren't populating in path parameters—the resolution was:
- Use the variable name directly like {{bookingUid}} (double curly braces)
- Extract the variable using the Extract Dynamic Variables tool before calling the custom function that uses it in the URL
Regarding the extra fields error (call, name, args properties) , this appears to be happening because the request is hitting the wrong endpoint (the literal {bookingUid} path) . Once you fix the URL syntax and ensure the variable is properly extracted beforehand, the correct endpoint should receive the properly formatted request body. [(2) ]()AI Evy
02/11/2026, 11:23 AMAI Evy
02/11/2026, 11:23 AMK
02/11/2026, 11:59 AMAI Evy
02/11/2026, 11:59 AMAI Evy
02/11/2026, 11:59 AMcall, name, and args properties by default, which the Cal.com API doesn't expect. [(1) ]()
When Retell sends a POST request to your custom function endpoint, the body automatically includes:
- `name`: the name of the custom function
- `call`: the call object with context about the call
- `args`: the arguments for the custom function as a JSON object
**The issue**: Cal.com's cancel endpoint expects a specific request body format, but it's receiving Retell's standard wrapper with these extra properties.
**Solution options**:
1. **Create a middleware/proxy endpoint**: Build your own server endpoint that receives Retell's request, extracts only the data Cal.com needs from the args object, and forwards a properly formatted request to Cal.com.
2. **Use a different HTTP method**: If Cal.com's cancel endpoint accepts DELETE requests without a body, you could try switching the HTTP method to DELETE. For GET and DELETE requests, the request body handling differs.
3. **Check if Cal.com accepts query parameters**: You could potentially pass the cancellation reason (if needed) via query parameters instead of the request body, since query parameters are appended separately from the body. , [(2) ]()
The middleware approach is the most reliable solution—your proxy would receive Retell's request, extract what you need from content.args, and make a clean request to Cal.com with only the properties their API expects.AI Evy
02/11/2026, 11:59 AMAI Evy
02/11/2026, 11:59 AMK
02/11/2026, 12:04 PMAI Evy
02/11/2026, 12:04 PMAI Evy
02/11/2026, 12:04 PMargs object, and forward a clean request to Cal.com. The documentation includes an example of handling incoming requests:
javascript
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;
if (content.args.city === "New York") {
return res.json("25f and sunny") ;
} else {
return res.json("20f and cloudy") ;
}
}) ;AI Evy
02/11/2026, 12:04 PMcontent.args to extract the parameters you need, then make your own call to Cal.com with only the fields their API expects.
**Security consideration**: You can verify requests are from Retell using the X-Retell-Signature header and the Retell SDK's verify function. , [(2) ]()
For specific middleware platform recommendations (serverless functions, API gateways, etc.) , I don't have that information in the available sources. Would you like a general answer based on common industry practices?AI Evy
02/11/2026, 12:04 PMAI Evy
02/11/2026, 12:04 PM