Latest Legacy

Retrieve All Live Calls v2

The method outlined below allows you to retrieve the details of all ongoing calls from an account.

API Endpoint

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

Arguments

call_direction optional

The direction of the call, if you want to filter results by call direction.

Allowed values: inbound, outbound

number optional

The number from/to which the calls were made. You can filter results by source & destination number using the exact number or the prefix.

Returns

Returns the call UUIDs along with the call details of all ongoing calls.

Response

{
  "api_id": "2bfa4869-babb-4926-bca0-b2d226cfbc44",
  "meta": {
    "count": 2,
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null
  },
  "objects": [
    {
      "call_status": "in-progress",
      "call_uuid": "d144ed7e-f677-4017-a79e-5094f8a0b854",
      "caller_name": "PLIVO54115552876164304265638",
      "direction": "outbound",
      "from": "+15732629XXX",
      "request_uuid": "d144ed7e-f677-4017-a79e-5094f8a0b854",
      "session_start": "2024-02-07 13:55:28.141067",
      "stir_attestation": "Not Applicable",
      "stir_verification": "Not Applicable",
      "to": "919003459XXX"
    },
    {
      "call_status": "in-progress",
      "call_uuid": "19334e79-f40c-48a9-81e6-0ba47eb00610",
      "caller_name": "PLIVO",
      "direction": "inbound",
      "from": "sip:PLIVO43042XXXX@phone.plivo.com",
      "request_uuid": "19334e79-f40c-48a9-81e6-0ba47eb00610",
      "session_start": "2024-02-07 13:55:23.959929",
      "stir_attestation": "Not Applicable",
      "stir_verification": "Not Applicable",
      "to": "919003459XXX"
    }
  ]
}

1
2
curl -i --user AUTH_ID:AUTH_TOKEN \
    https://api.plivo.com/v2/Account/{auth_id}/Call/?status=live