joe-t10101 avatar image
joe-t10101 asked

Example code calling REST API to retrieve Call Recording from Sandbox

My overall goal is to call someone in the sandbox, then record the call, and then retrieve the recording thru the REST API.

I've been successful setting up the sandbox and generating the call recordings, and I can see them in the web account of USER1. So far so good.

I am using Ringcentral's Java API found here:

and I am exploring the REST API here:

I've been successful setting up OAuth and can get simple REST calls to work, for example:

import com.ringcentral.RestClient;

import com.ringcentral.RestException;

import com.ringcentral.definitions.*;

public class Main {

public static void main(String[] args) throws IOException, RestException {

RestClient restClient = new RestClient("USER1clienttid", "USER1clientsecret", RestClient.SANDBOX_SERVER);

restClient.authorize("+18001234567", "102", "USER1password");

VersionInfo versionInfo = restClient.get("/restapi/v1.0", VersionInfo.class);

System.out.println("RESULT: " + versionInfo.versionString);


// TODO: example code to do call recording retrieval



What is the sequence of REST calls do I need to learn to retrieve a Call Recording? For example:

Is the RingCentral Java API mature enough to download Call Recordings? I see other examples (e.g. SMS) in the Java API, but no Call Recording related ones. How do I specify a certain Call Recording to download? Probably a URI. But do I need to get the Call Log to learn the Call Recording URI first?

I have made USER1 Super Admin to avoid permission issues.

Thank you in advance,


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.

0 Answers

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