boroca.guy_67514
11/19/2025, 1:27 PMAI Evy
11/19/2025, 1:27 PMAI Evy
11/19/2025, 1:28 PMcall object in the body, which contains call details including phone numbers .
For example, you can access call information like this in your custom function:
json
{
"name": "your_function_name",
"call": {
"from_number": "+12137771234",
"to_number": "+12137771235"
},
"args": {
"your_parameters": "values"
}
}
You can then extract the to_number from the call object in your backend when processing the POST request .
**AI Evy
11/19/2025, 1:28 PMAI Evy
11/19/2025, 1:28 PMboroca.guy_67514
11/19/2025, 1:33 PMAI Evy
11/19/2025, 1:33 PMAI Evy
11/19/2025, 1:33 PMAI Evy
11/19/2025, 1:33 PMjson
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}
You can adapt this structure to include a destination_number or to_number parameter that accepts dynamic values collected during the conversation.
When Retell sends the POST request to your endpoint, it includes [(2) ]() :
- The function name
- The call object (which contains call details)
- The args (your defined parameters as a JSON object)
The request body is sent in JSON format , and you can extract the dynamic destination number from the args in your backend when processing the request.
**AI Evy
11/19/2025, 1:33 PM