get https://api.servetel.in/v1/live_calls
Details of all live calls
Using the below method details of current live calls can be retrieved.
curl --request GET \
--url https://api.servetel.in/v1/live_calls \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere'
Response variables
| Variable Name | Description | Data Type |
|---|---|---|
| id | ID of the call | Integer |
| user_id | Customer's unique ID | Integer |
| client_id | Customer's client ID | String |
| call_id | Unique ID of call | String |
| direction | Direction of call [1: inbound, 2: outbound] | Integer |
| source | Number from where call originated | String |
| type | Type of call | String |
| did | Caller ID shown to customer | String |
| multiple_destination_type | Type of multi-destination call. [ eg: Click to call (c2c) ] | String |
| multiple_destination_name | Number for multi-destination call | String |
| destination | Destination number for call | String |
| state | Call's current state | String |
| channel_id | Channel ID | String |
| created_at | Start stamp of call | String |
| sip_domain | Sip domain for call | String |
| broadcast_id | Unique ID of broadcast | String |
| broadcast_no | Lead's number | String |
| call_time | Duration of call | String |
| agent_name | Agent's name | String |
broadcast_id: is not null only if call type is broadcast
broadcast_no: is not null only if call type is broadcast
[
{
"id": 1,
"user_id": 1,
"client_id": null,
"call_id": "15xxxxxxxx.xx..",
"direction": 2,
"source": "+910000000000",
"type": "click-to-call",
"did": "+911200000000",
"multiple_destination_type": "xxx",
"multiple_destination_name": "xxxx...xxxx",
"destination": "910000000000",
"state": "Ringing",
"channel_id": "xxxx...xxxx",
"created_at": "2019-01-29 00:00:00",
"sip_domain": "1.2.3.4",
"broadcast_id": null,
"broadcast_no": null,
"call_time": "00:00:07",
"agent_name": "Test"
},
{
"id": 2,
"user_id": 1,
"client_id": null,
"call_id": "15xxxxxxxx.xx..",
"direction": 2,
"source": "+910000000000",
"type": "click-to-call",
"did": "+911200000000",
"multiple_destination_type": "xxx",
"multiple_destination_name": "xxxx....xxxx",
"destination": "910000000000",
"state": "Answered",
"channel_id": "xxxx...xxxx",
"created_at": "2019-01-29 01:00:00",
"sip_domain": "1.2.3.4",
"broadcast_id": null,
"broadcast_no": null,
"call_time": "00:00:07",
"agent_name": "Test"
}
]
