https://retellai.com/?utm_source=discord&utm_medium=seo logo
WHY MY NUMBER IS UNDIFIENED
# ❓・ai-evy-support
a
@AI Evy WHY MY NUMBER IS UNDIFIENED?
a
Thanks for tagging me @ayoub22_52006. I'll look through relevant sources and get back to you shortly.
### Answer If your number is showing as "undefined," this usually means the phone number value is not being properly retrieved or set in your code or API call. Make sure you are using the correct E.164 format (e.g., "+14157774444") when working with phone number APIs in Retell AI. For example, when retrieving a phone number, it should look like this:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(1) ]() If you do not provide a valid phone number string in the expected format, the response may be undefined or not include the necessary details. Double-check that your input matches the E.164 format and that the number exists in your Retell account.
​ To learn more, see the sources I considered: [[1] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.