News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Ways to export call log
Tags: rest api
Jul 17, 2020 at 4:00am   •   1 replies  •  0 likes

Call log record can be obtain using RingCentral Api and can be filtered using date **To** and **From**.

I have went through the Api reference to get call log with API here.

We can see the following Api is used to get all the call log record:

But we need to export this log something in csv format file. What is the way we can do it in a file and save it on local disc?

1 Answer
answered on Jul 17, 2020 at 4:29am  

There are many ways to do it. If you check this reference here you will see, it is suggested to log into RingCentral Online Account Portal ( as an admin view your Call Log data, and download each page into one single csv.

Another reference here suggest to use a programming language to call the call log API and save it as local file.

example, with Node JS and can run it locally on your machine . All you need to do is need to login the developer portal and create an app with the read call log permission. App platform type will be Server only (no UI). Client ID and Client Secret can be used in the sample code in the link given.

code snippet:

platform.get('/account/~/extension/~/call-log', params)
var json = resp.json()
  if (json.records.length > 0){
    var fs = require('fs')
      var cvs = 'uri,startTime,duration,type,direction,action,result,to_name,from_name,transport'
      for (var record of json.records){
        cvs += "\r\n"
       cvs += record.uri + ','
       cvs += record.startTime + ','
        cvs += record.duration + ','
        cvs += record.type + ','
      cvs += record.direction + ','
      cvs += record.action + ','
       cvs += record.result + ','
        if ('name'))
          cvs += + ','
         cvs += 'null,'
      if (record.hasOwnProperty('from')){
         if (record.from.hasOwnProperty('name'))
            cvs += + ','
            cvs += 'null,'
       cvs += 'null,'
       cvs += record.transport


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us