yeye_30087
11/21/2025, 11:48 AMAI Evy
11/21/2025, 11:48 AMAI Evy
11/21/2025, 11:49 AMfrom_number is a phone number you've purchased and configured through Retell AI [(4) ]() [(5) ]()
I don't have specific information in the sources about migrating from legacy API keys to server keys. For assistance with API key migration or workspace configuration, I recommend reaching out to Retell support:
- Visit [Contact Sales]()
- Visit [)AI Evy
11/21/2025, 11:49 AM/v2/create-phone-call [(1) ]() . To use this endpoint, you need your API key for authorization [(2) ]() .
The correct endpoint structure is:
POST /v2/create-phone-call
[(1) ]()
When making requests, ensure you include your API key in the Authorization header as a Bearer token [(3) ]() :
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Here's the basic request format for creating an outbound call:
javascript
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) ;AI Evy
11/21/2025, 11:53 AMAI Evy
11/21/2025, 11:53 AM