Kt109 avatar image
Kt109 asked Kt109 commented

Ways to export call log

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?

rest api
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anirban avatar image
Anirban answered Kt109 commented

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

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Kt109 avatar image Kt109 commented ·

Let me check... will come back for queries

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys