anthonylovatt_26757
08/22/2025, 9:09 AMAI Evy
08/22/2025, 9:09 AMAI Evy
08/22/2025, 9:10 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.registerPhoneCall({
agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneCallResponse.agent_id) ;AI Evy
08/22/2025, 9:10 AMfrom_number and to_number fields should be in E.164 format (e.g., "+64" prefix for New Zealand numbers) .
However, there are some considerations for New Zealand numbers:
- Retell AI doesn't currently provide native New Zealand phone numbers [(4) ]()
- You'll need to set up SIP trunking with providers like Twilio or Telnyx [(1) ]() [(2) ]()
- Make sure your Twilio account is not in trial mode, as this limits outbound calls to verified numbers only [(1) ]()
- SIP trunking can be more expensive due to per-minute billing [(4) ]()
For New Zealand phone number availability directly from Retell AI, you can contact support@retellai.com .AI Evy
08/22/2025, 9:10 AMAI Evy
08/22/2025, 9:10 AM