Hello,
I am trying to import phone numbers in retelll via retell api
https://api.retellai.com/v2/import-phone-number
but this is giving 404 not found.
Tried from postman as well from my code, both the places it gave the same result
For the import phone number endpoint, verify these requirements:
Request Format:
Required Body Parameters:
{
"phone_number": "+14157774444",
"termination_uri": "someuri.pstn.twilio.com"
}
The phone_number must be in E.164 format (+country code, then number with no space, no special characters)(1). The termination_uri uniquely identifies your elastic SIP trunk and is used for outbound calls(1). For Twilio elastic SIP trunks it always ends with “.pstn.twilio.com”(1).
Common 404 Causes:
Based on similar issues with other endpoints, 404 errors typically occur when:(2)(3)(4)
- The API key is incorrect(4)
- The phone number format is invalid(2)
- Required parameters are missing(2)
Double-check that your Authorization header format is exactly Bearer YOUR_API_KEY and that you’re using POST with the Content-Type header set to application/json(4).
All the things are as shown in the configuration. Still the same issue
Hello Majid,
To import a phone number via the API, you can use the following endpoint:
https://api.retellai.com/import-phone-number
For more information, please refer to the documentation: