ashish_mangoit
08/20/2025, 8:54 AMAI Evy
08/20/2025, 8:54 AMAI Evy
08/20/2025, 8:54 AMAI Evy
08/20/2025, 8:54 AMAI Evy
08/20/2025, 8:54 AMashish_mangoit
08/20/2025, 8:58 AMAI Evy
08/20/2025, 8:58 AMAI Evy
08/20/2025, 8:58 AM<https://your-domain.com/api/custom-function>
If you're still experiencing issues after verifying the URL format, double-check that:
- The endpoint is accessible from external networks
- The server is running and responding to requests
- Any firewall or security settings allow incoming requests from Retell AI [(2) ]()AI Evy
08/20/2025, 8:58 AMAI Evy
08/20/2025, 8:58 AMashish_mangoit
08/20/2025, 9:01 AMashish_mangoit
08/20/2025, 9:02 AMAI Evy
08/20/2025, 9:02 AMAI Evy
08/20/2025, 9:02 AMyourdomain.com with your actual domain name
2. Ensure your server is running and accessible from the internet
3. Make sure the endpoint can receive POST requests (or the HTTP method you've selected)
Example of what a real URL should look like:
<https://myapp.herokuapp.com/api/book-appointment>
<https://api.mycompany.com/custom-function>
<https://12.34.56.78:3000/webhook>
The endpoint must be able to receive requests from Retell AI and respond with the appropriate data . If you're testing locally, you'll need to use a service like ngrok to make your local server accessible from the internet, or deploy your function to a cloud service.AI Evy
08/20/2025, 9:02 AMAI Evy
08/20/2025, 9:02 AMashish_mangoit
08/20/2025, 9:05 AMAI Evy
08/20/2025, 9:05 AMAI Evy
08/20/2025, 9:05 AMbash
curl -I <https://elgonia.mangoitsol.com/test.php>AI Evy
08/20/2025, 9:05 AMAI Evy
08/20/2025, 9:05 AMAI Evy
08/20/2025, 9:05 AMashish_mangoit
08/20/2025, 9:06 AMashish_mangoit
08/20/2025, 9:06 AMAI Evy
08/20/2025, 9:06 AMAI Evy
08/20/2025, 9:07 AM"type": "object", at the top level of your JSON schema :
json
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}
[(1) ]() , [(2) ]()
Request Format Requirements:
Your endpoint needs to handle the specific request format that Retell sends [(1) ]() [(2) ]() :
- **Header**: X-Retell-Signature (encrypted request body using your secret key)
- **Content-Type**: application/json
- Body (for POST, PUT, PATCH) : Contains name, call, and args fields
Security Considerations:
You can also secure your server by allowlisting Retell's IP address: 100.20.5.228 .
Since your URL is responding with a 200 status, the issue is likely with the parameter schema format or how your endpoint handles Retell's specific request structure. Double-check that you've added the "type": "object", field to your parameter schema if you're using one.AI Evy
08/20/2025, 9:07 AMAI Evy
08/20/2025, 9:07 AMashish_mangoit
08/20/2025, 9:45 AMAI Evy
08/20/2025, 9:45 AMAI Evy
08/20/2025, 9:45 AMget_user_details)
2. **Description**: Add a clear description of what the function does
3. **HTTP Method**: Select the appropriate method (GET, POST, PATCH, PUT, DELETE)
4. **Endpoint URL**: Must be a valid URL (which yours appears to be)
For GET Requests:
Since you mentioned no parameters or headers, if you're using a GET request, you can leave the parameter schema empty . However, for POST, PATCH, and PUT requests, parameters are only available and might be required .
Potential Issues to Check:
- Make sure you've selected the correct HTTP method that your endpoint supports
- Verify that the function name contains only valid characters and uses underscores
- Ensure your endpoint can handle requests from external sources [(2) ]()
Testing Your Endpoint:
Your endpoint should be able to process requests from Retell AI and return JSON responses [(1) ]() . Since your curl test shows a 200 response, the basic connectivity is working.
If you're still getting the "invalid hostname" error after verifying these basic settings, try creating a simple test function with minimal configuration to isolate the issue.AI Evy
08/20/2025, 9:45 AMAI Evy
08/20/2025, 9:45 AMashish_mangoit
08/20/2025, 9:49 AMAI Evy
08/20/2025, 9:49 AMAI Evy
08/20/2025, 9:50 AMAI Evy
08/20/2025, 9:50 AMAI Evy
08/20/2025, 9:50 AM