Fetch details of active calls

This API allows you to fetch details of active calls.

Sample Request

curl --request GET \
     --url https://api.servetel.in/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 NameDescriptionData Type
agent_numberNumber of the agent.string
extensionExtension of the agent.string
did_numberNumber from which the call is routed from.string
call_idUnique ID of the call.string

Sample Response

[
  {
    "id": 793133114,
    "user_id": 10959,
    "client_id": null,
    "call_id": "1714657799.11930963",
    "direction": 2,
    "source": "+9198999998829",
    "type": "click-to-call",
    "did": "+9180889990031",
    "multiple_destination_type": "c2c",
    "multiple_destination_name": "SIP/+20607011215773",
    "destination": "+917011215773,+917011215773",
    "state": "Answered",
    "queue_state": null,
    "channel_id": "SIP/TATA-BLR-UNLIMITED-8069182000_6163f238316cf-0077db44",
    "created_at": "2024-05-03 00:49:59",
    "sip_domain": "192.168.5.25",
    "broadcast_id": null,
    "broadcast_no": null,
    "call_time": "00:00:33",
    "agent_name": "XYZ",
    "customer_number": "20607011215773"
  }
]

Response Variables

The response returned is as following:

Variable NameDescriptionData Type
idID of the callInteger
user_idCustomer's unique IDInteger
client_idCustomer's client IDString
call_idUnique ID of callString
directionDirection of call
[1: inbound, 2: outbound]
Integer
sourceNumber from where call originatedString
typeType of callString
didCaller ID shown to customerString
multiple_destination_typeType of multi-destination call.
[ eg: Click to call (c2c) ]
String
multiple_destination_nameNumber for multi-destination callString
destinationDestination number for callString
stateCall's current stateString
queue_stateCall’s state while waiting in queue.String
channel_idChannel IDString
created_atStart stamp of callString
sip_domainSip domain for callString
broadcast_idUnique ID of broadcastString
broadcast_noLead's numberString
call_timeDuration of callString
agent_nameAgent's nameString
customer_numberCustomer number at which the call was directed.String
Language
Click Try It! to start a request and see the response here!