ayoub22_52006
09/30/2025, 2:05 PMAI Evy
09/30/2025, 2:05 PMAI Evy
09/30/2025, 2:06 PMjavascript
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.AI Evy
09/30/2025, 2:06 PMAI Evy
09/30/2025, 2:06 PMAI Evy
09/30/2025, 2:10 PM