v1
latestOpenAPI 3.0.12026-07-226992320.0 KBCalls
Create Phone Call
Initiates an outbound call with the specified agent, caller, and destination numbers. Supports dynamic variables for personalization. Returns the created call record, including the callId for future retrieval or cancellation.
post/v1/calls
Request body
Example request
{
"fromPhoneNumber": "+14155552671",
"toPhoneNumber": "+14155552671",
"agentId": "D5D0p7TUs66TTAEAx",
"dynamicVariables": {
"customer_name": "Michael",
"account_id": "ACC-001"
}
}Response
Created
Example response
{
"callId": "call_AuUKK371Spr5nHJS",
"callType": "outbound",
"phoneNumber": {
"sipPhoneNumber": "+14155552671",
"provider": "twilio",
"inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"terminationSipURI": "sip.telnyx.com",
"friendlyName": "Support Line - US"
},
"campaign": {
"campaignId": "camp_XiQEBcj9cc5TFRB4",
"campaignName": "Q4 Outreach Campaign",
"campaignStatus": "live",
"scheduledDate": "2025-09-25T19:00:00.000Z",
"concurrentCalls": 5,
"agent": {
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
},
"phoneNumber": {
"sipPhoneNumber": "+14155552671",
"provider": "twilio",
"inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"terminationSipURI": "sip.telnyx.com",
"friendlyName": "Support Line - US"
},
"errors": [
"Row 3: missing required variable 'customer_name'",
"Row 7: invalid phone number '+1234'"
]
},
"status": "ended",
"startTime": "2024-04-20T10:00:00.000Z",
"endTime": "2024-04-20T10:02:00.000Z",
"duration": 120,
"terminationReason": "user_ended_call",
"createdAt": "2024-04-20T09:59:50.000Z",
"updatedAt": "2024-04-20T10:02:05.000Z",
"dynamicVariables": {
"customer_name": "Michael",
"account_id": "ACC-001"
},
"recordingUrl": "https://livekitmedia.blob.core.windows.net/recording-container-prod/room-ST_abc123/recording.mp3",
"agent": {
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
}
}