get https://api-smartflo.tatateleservices.com/v1/live_calls
This API allows you to fetch details of active calls.
Sample Request
curl --request GET \
--url https://api-smartflo.tatateleservices.com/v1/live_calls \
--header 'accept: application/json'
📘 Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Query Params)
The following parameter is required to fetch details of active calls.
Variable Name | Description | Data Type |
---|---|---|
agent_number | Number of the agent. | string |
extension | Extension of the agent. | string |
did_number | Number from which the call is routed from. | string |
call_id | Unique ID of the call. | string |
Sample Response
[
{
"id": 176363835,
"user_id": 4753,
"client_id": null,
"call_id": "1715252026.405915",
"direction": 2,
"source": "+9100000000029",
"type": "click-to-call",
"did": "+917969664304",
"multiple_destination_type": "c2c",
"multiple_destination_name": "PJSIP/+9643116782",
"destination": "09xxxxx6782,096cccccc16782",
"state": "Answered",
"queue_state": null,
"channel_id": "PJSIP/BangaloreTestingSIP1-New-8069651000_622342b6e7a80-0002fbf7",
"created_at": "2024-05-09 16:23:46",
"sip_domain": "10.104.69.118",
"broadcast_id": null,
"broadcast_no": null,
"call_time": "00:00:52",
"agent_name": "xyz",
"customer_number": "0964xxxx782"
}
]
Response Variables
The response returned is as following:
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 |
queue_state | Call’s state while waiting in queue. | 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 |
customer_number | Customer number at which the call was directed. | String |