leenalhamwi
09/30/2025, 4:46 PMAI Evy
09/30/2025, 4:46 PMAI Evy
09/30/2025, 4:46 PMcall object in the request body that contains the call ID and other context [(1) ]() [(2) ]() . The request structure is:
json
{
"name": "function_name",
"call": "call_object_with_call_id_and_context",
"args": "function_arguments"
}AI Evy
09/30/2025, 4:46 PMcall object contains real-time transcript up to the time the request is sent and provides more context about the call, including the call ID [(1) ]() [(2) ]() .
## Common Troubleshooting Steps
1. **Verify Request Authentication**: Check that the X-Retell-Signature header is being properly verified using your secret key
2. **Response Format**: Ensure your endpoint returns a status code between 200-299 to indicate success
3. **Function Parameters**: Verify your JSON schema parameters are valid - a common mistake is not adding "type": "object", to the top level of the JSON schema
4. **Timeout and Retries**: The request will timeout in your specified timeout period, or 2 minutes if not specified. When requests fail, they will be retried up to 2 times
## Similar Issue Reference
There's a documented case where custom functions stopped working due to webhook delivery issues - specifically where only the initial webhook fires but subsequent function calls don't reach the endpoint [(3) ]() . This could be related to your intermittent call ID issue.
To debug the call ID inconsistency, I'd recommend adding logging to your endpoint to verify:
- Whether the call object is consistently present in the request body
- The structure and content of the call object when it arrives
If the issue persists, you may want to check your endpoint logs to see if requests are being received consistently from Retell.AI Evy
09/30/2025, 4:46 PMAI Evy
09/30/2025, 4:46 PMAI Evy
09/30/2025, 5:27 PMleenalhamwi
09/30/2025, 5:28 PMleenalhamwi
09/30/2025, 5:28 PMAI Evy
09/30/2025, 5:28 PMAI Evy
09/30/2025, 5:29 PMcall object in the request body that contains the call ID and other context [(1) ]() [(2) ]() . The request structure is:
json
{
"name": "the name of the custom function",
"call": "the call object for you to get more context about the call, it also contains real time transcript up to the time the request is sent",
"args": "the arguments for the custom function, as a JSON object"
}
The call object contains the call ID and provides more context about the call, including real-time transcript up to the time the request is sent . You can access the call ID from this call object in your backend endpoint when processing the custom function request.
For more details about the call object structure, check out the Get Call API documentation .AI Evy
09/30/2025, 5:29 PMAI Evy
09/30/2025, 5:29 PMleenalhamwi
09/30/2025, 5:33 PMAI Evy
09/30/2025, 5:33 PMAI Evy
09/30/2025, 5:34 PMcall object [(2) ]() [(3) ]() , then extract only the variables you need in your backend processing, rather than relying on the args only option.
The standard request structure includes:
- `name`: the name of the custom function
- `call`: the call object containing call ID and other context
- `args`: the arguments for the custom functionAI Evy
09/30/2025, 5:34 PMAI Evy
09/30/2025, 5:34 PM