ompatel2019
08/07/2025, 9:10 AMAI Evy
08/07/2025, 9:10 AMAI Evy
08/07/2025, 9:10 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+61483980711') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
If the number isn't properly imported, you'll need to import it using the Import Phone Number API [(2) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+61483980711',
termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;AI Evy
08/07/2025, 9:10 AMjavascript
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+61483980711',
termination_uri: 'your-termination-uri.pstn.twilio.com',
sip_trunk_auth_username: 'username',
sip_trunk_auth_password: '123456'
}) ;
The 404 errors you're seeing suggest the number might not be fully provisioned in Retell's system. Try re-importing the number with the correct configuration, and ensure your Twilio SIP trunk is properly set up with the correct termination URI [(3) ]() .AI Evy
08/07/2025, 9:10 AMAI Evy
08/07/2025, 9:10 AMompatel2019
08/07/2025, 9:20 AMompatel2019
08/07/2025, 9:23 AMompatel2019
08/07/2025, 9:23 AMompatel2019
08/07/2025, 9:23 AMompatel2019
08/07/2025, 9:23 AMAI Evy
08/07/2025, 9:23 AMAI Evy
08/07/2025, 9:24 AMAI Evy
08/07/2025, 9:24 AMAI Evy
08/07/2025, 9:24 AMAI Evy
08/07/2025, 9:24 AMompatel2019
08/07/2025, 9:32 AMAI Evy
08/07/2025, 9:32 AMAI Evy
08/07/2025, 9:33 AMGET <https://api.retellai.com/get-phone-verification-application/+61483980711> 404 (Not Found)
This error indicates your phone number doesn't have a verified phone number application set up [(1) ]() . Phone verification helps prevent your number from being marked as "Spam Likely" . To fix this, you need to create a business profile and apply for phone number verification through the dashboard .
*2. Branded Call Application Error (404) *
GET <https://api.retellai.com/get-branded-call-application/+61483980711> 404 (Not Found)
This means your number doesn't have a branded caller ID application configured [(2) ]() . Branded caller IDs display your business name when making calls, which builds customer trust . You can set this up by creating a business profile and applying for branded calling through the phone number configuration .
*3. A2P Application Error (404) *
GET <https://api.retellai.com/get-a2p-application/+61483980711> 404 (Not Found)
This indicates there's no Application-to-Person (A2P) registration for your number. A2P registration is typically required for business messaging and calling compliance.
4. Spam Remediation Errors
Error fetching spam remediation: Error: Not Found
Error: getA2PApplicationByPhoneNumber: A2P Application not found for the given phone numberAI Evy
08/07/2025, 9:33 AMAI Evy
08/07/2025, 9:33 AMAI Evy
08/07/2025, 9:33 AM