giang5469
09/14/2025, 10:25 AMAI Evy
09/14/2025, 10:25 AMAI Evy
09/14/2025, 10:25 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
For inbound testing, you need to first set up a phone number with an agent bound to it [(2) ]() . You can update a phone number to bind it to your agent:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Based on community feedback, after setting up your number through Retell with the Twilio option and binding an agent for inbound calls, you should be able to call the number directly [(3) ]() . If you experience silence when calling, it may need some time to update and propagate .AI Evy
09/14/2025, 10:25 AMAI Evy
09/14/2025, 10:25 AMgiang5469
09/14/2025, 10:26 AMAI Evy
09/14/2025, 10:26 AMgiang5469
09/14/2025, 10:26 AMAI Evy
09/14/2025, 10:27 AMAI Evy
09/14/2025, 10:27 AMAI Evy
09/14/2025, 10:27 AM