import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.live_calls.get('10f0cb68-7533-45ed-acb5-87ceac29ee48')
print(response)
{
  "direction": "inbound",
  "from": "15856338537",
  "call_status": "in-progress",
  "api_id": "45223222-74f8-11e1-8ea7-12313806be9a",
  "to": "14154290945",
  "caller_name": "+15856338537",
  "call_uuid": "6653422-91b6-4716-9fad-9463daaeeec2",
  "Stir_attestation": "A",
  "session_start": "2021-03-23 14:49:39.722551" // Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
}

This method lets you retrieve details of a specific ongoing call.

API Endpoint

GET
https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/?status=live

Arguments

No arguments need to be passed.

Returns

Returns the details of the specific call as a Call object.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.live_calls.get('10f0cb68-7533-45ed-acb5-87ceac29ee48')
print(response)
{
  "direction": "inbound",
  "from": "15856338537",
  "call_status": "in-progress",
  "api_id": "45223222-74f8-11e1-8ea7-12313806be9a",
  "to": "14154290945",
  "caller_name": "+15856338537",
  "call_uuid": "6653422-91b6-4716-9fad-9463daaeeec2",
  "Stir_attestation": "A",
  "session_start": "2021-03-23 14:49:39.722551" // Format: YYYY-MM-DD HH:mm:ss.sssss Timezone: UTC
}