Jefferey Lockyer avatar image
Jefferey Lockyer asked Phong Vu answered

Call recordings to Onedrive (Via, etc)

I'm looking to use a PnP API connection tool such as Make/Zapier, etc to try and automate a daily call recording file transfer from our call logs, to a Sharepoint/Onedrive location in our O365 cloud.

I can connect to my account, retrieve the call logs, but it seems there is a missing connector to "store" the file, as the token doesn't get shared from RingCentral, and I basically end up with a text file which contains:

"errorCode" : "AGW-401", "message" : "Authorization header is not specified"

Has anyone successfully created a process using a tool such as this, which would allow a scheduled dump of calls (based on the call log for the previous day - this part has been tested)

I am using a re-branded version of RingCentral through Telus Business Connect and so far, the API calls don't seem to be any different, so I don't think that will have any effect on what I am trying to accomplish. TIA, much appreciate for any direction.

rest apizapier
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

Phong Vu avatar image
Phong Vu answered

I am not familiar with the tool you are using. But you need to set a valid access token (the token you use to read the same call log record that gives you the call recording contentUri) to the HTTP Authorization header. Here is an example how I set it in Node JS.

const download_new = function(domain, path, accessToken, dest, cb) {
    var file = fs.createWriteStream(dest);
    var options = {
          host: domain,
          path: path,
          method: "GET",
          headers: {
            Authorization: `Bearer ${accessToken}`
    const req = https.request(options, res => {
    console.log(`statusCode: ${res.statusCode}`)
    file.on('finish', function() {
  req.on('error', error => {

Where the domain and path is taken from the contentUri


path: /restapi/v1.0/account/xxxx/recording/xxxxxxxx/content

1 |3000

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

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