API Documentation
v1
- GETGet Alerts
- GETGet Applications
- POSTCreate Application
- GETGet Application
- PUTUpdate Application
- DELDelete Application
- GETGet Calls
- POSTCreate call (version 3)
- GETGet Call
- PUTUpdate Call - Live Call Control
- DELDelete Call
- GETGet RecentCalls
- GETGet SpeechCredentials
- POSTCreate SpeechCredential
- GETGet SpeechCredential
- DELDelete SpeechCredential
- GETTest SpeechCredential
- GETGet VoipCarriers
- POSTCreate VoipCarrier
- GETGet VoipCarrier
- POSTCreate a SipGateway
- DELDelete a SipGateway
v1
Get Calls
Retrieve a list of calls for the account that are in progress or recently ended.
Note: calls that have ended more than ten minutes ago will not be returned.
GET
/
v1
/
Accounts
/
{account_sid}
/
Calls
[
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "a173fe94-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "a4941f23-66b8-4b52-b495-94192adee7ec",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 5,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"application_sid": "9984fdc5-89ec-4ffe-9cee-880255a46253",
"call_id": "7ed07f1e-3be0-123a-28b2-0efdfb356c0d",
"call_sid": "6b4931df-436a-4bfe-864e-3513d2917c02",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 16,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "6f7c2d1c-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "65d1cefe-c21a-4f03-92c0-947d6a17fe01",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 5,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "13f2f4b9-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "8f0eb6f4-85d9-40c7-84a8-a7a8228f9816",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 0,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
}
]
Path Parameters
Example:
"5f8e8f60-4771-44cb-92a6-94ea66df0450"
Response
200 - application/json
Get Calls
The response is of type object[]
.
[
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "a173fe94-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "a4941f23-66b8-4b52-b495-94192adee7ec",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 5,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"application_sid": "9984fdc5-89ec-4ffe-9cee-880255a46253",
"call_id": "7ed07f1e-3be0-123a-28b2-0efdfb356c0d",
"call_sid": "6b4931df-436a-4bfe-864e-3513d2917c02",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 16,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "6f7c2d1c-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "65d1cefe-c21a-4f03-92c0-947d6a17fe01",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 5,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
},
{
"account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
"call_id": "13f2f4b9-3be1-123a-28b2-0efdfb356c0d",
"call_sid": "8f0eb6f4-85d9-40c7-84a8-a7a8228f9816",
"call_status": "completed",
"caller_name": "",
"direction": "outbound",
"duration": 0,
"from": "15083728299",
"service_url": "http://172.31.32.144:3000",
"sip_status": 200,
"to": "15083084809"
}
]
Assistant
Responses are generated using AI and may contain mistakes.