curl -X POST "https://{workspace_id}.firetell.app/api/v1/calls/make" \
-H "Authorization: ApiKey sk-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": { "number": "+14155550100", "name": "Firetell Sales" },
"to": { "number": "+12125550123", "name": "Morgan Lee" },
"actions": [
{
"action": "connect_voice_agent",
"params": {
"voice_agent_id": "va_sales_qualifier",
"welcome_message": "Hi Morgan, thanks for requesting a demo. Do you have 2 minutes?",
"max_duration_seconds": 180
}
},
{
"action": "connect_team",
"params": { "team_id": "team_sales_ae", "timeout": 30 }
}
]
}'