texasranga
08/29/2025, 6:03 PMAI Evy
08/29/2025, 6:03 PMAI Evy
08/29/2025, 6:03 PMAuthorization: Bearer YOUR_API_KEY
[(1) ]()
3. Example usage - here's how you would use the create phone call endpoint:
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) ;
[(2) ]()
You can try out the authentication in the [API Playground]() to see it in action [(1) ]() .
The API key itself is just a token for authentication - the endpoints are documented separately in the API reference.AI Evy
08/29/2025, 6:03 PMAI Evy
08/29/2025, 6:03 PM