songyuanyi
11/08/2025, 10:11 PMAI Evy
11/08/2025, 10:11 PMAI Evy
11/08/2025, 10:12 PMjavascript
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',
override_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneCallResponse.agent_id) ;
This approach allows you to route calls to different agents dynamically through the API, without needing multiple phone numbers .AI Evy
11/08/2025, 10:12 PMAI Evy
11/08/2025, 10:12 PM