List Active Calls
GET
/pbx/calls/active
const url = 'https://pbx.ring2all.com/api/v1/pbx/calls/active';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://pbx.ring2all.com/api/v1/pbx/calls/active \ --header 'X-API-Key: <X-API-Key>'Returns real-time channel status and active calls across the softswitch cluster.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Active calls list
Media typeapplication/json
Array<object>
object
uuid
string
caller_id_number
string
destination_number
string
duration_seconds
integer
state
string
Example
[ { "uuid": "4c520ef6-953e-4b68-b807-695c5d0f6ee8", "caller_id_number": "+13055551234", "destination_number": "1001", "duration_seconds": 45, "state": "ACTIVE" }]
