List call logs for an Account or Contact

I am looking for a way to fetch all the call logs from within the sales account or if not how get the call log for a given contact.

Hi @Neeraj_Dev,

Welcome to the Freshworks Developers community! :tada:

The Freshcaller list calls API returns recording and if the agent had entered in any notes, call_notes is also available in the API response.

Adding a sample response form the documentation.

{
  "id": 25847696,
  "direction": "incoming",
  "parent_call_id": null,
  "root_call_id": null,
  "phone_number_id": 43486,
  "phone_number": "+18582810798",
  "assigned_agent_id": null,
  "assigned_team_id": null,
  "assigned_call_queue_id": 78997,
  "assigned_ivr_id": null,
  "call_notes": "John needs details",
  "bill_duration": 26,
  "bill_duration_unit": "seconds",
  "created_time": "2019-12-18T21:36:03.000+00:00",
  "updated_time": "2019-12-18T21:37:03.000+00:00",
  "recording": {
    "id": 13258090,
    "url": "https://riyazdeenphone.freshcaller.com/api/v1/calls/25847696/recording/13258090",
    "duration": 7,
    "duration_unit": "seconds"
  },
  "participants": [
    {
      "id": 25847687,
      "call_id": 25847696,
      "caller_id": 8584012,
      "caller_number": "+12132142148",
      "participant_id": 25847687,
      "participant_type": "Customer",
      "connection_type": 0,
      "call_status": 10,
      "duration": 26,
      "duration_unit": "seconds",
      "cost": 0.0085,
      "cost_unit": "usd",
      "enqueued_time": null,
      "created_time": "2019-12-18T21:36:03.000+00:00",
      "updated_time": "2019-12-18T21:37:03.000+00:00"
    }
  ]
}

Let me know if this helps!

Hi @zach_jones_noel,

Thanks for the directions. I did have a look at this API, however, my assumption is that you need to have the call id in order to retrieve the call details.

Whereas I am looking to filter the contacts from an sales account with a call log.

Or get all thel call list within the sales account.

Thanks
Neeraj Dev

Hey @Neeraj_Dev,

The API which I shared will give you the list of all the calls in your account.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.