To list the existing recordings -> execute a GET request against the /recordings endpoint.
Note that archived recordings are not listed in this endpoint.
If you want to explicitly see archived recordings use the GET /recordings/archived endpoint instead.
Use the room_id or session_id arguments if you want to filter recordings based on a concrete room or a concrete session.
Since potentially there could be thousands of recordings, pagination is supported with limit, order and after arguments. Read about to learn the details of it. By default maximum 100 recordings will be returned in the response.
If you want to retrieve the details of one concrete recording, then execute a GET request against the /recordings/:id endpoint
Duration of the recording is listed in seconds. Also there are details provided about the participant who initiated the recording and the room/session where the recording happened.
Request (listing all recordings)
curl --request GET \
--url https://api.digitalsamba.com/api/v1/recordings \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY
The total_count is the total amount of recordings you have globally. It is NOT the amount of recordings in the current page returned in the data array. In the above example you have 148 recordings in total, but in the data array there will be maximum 100 recordings (the default limit argument value).
Request (get information about a concrete recording)
curl --request GET \
--url https://api.digitalsamba.com/api/v1/recordings/6e4a5676-c2e8-4c14-90a2-4c6cd71640b \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY
import com.fasterxml.jackson.databind.ObjectMapper;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.util.Base64;
import java.util.Map;
String TEAM_ID = "YOUR_TEAM_ID";
String DEVELOPER_KEY = "YOUR_DEVELOPER_KEY";
String authorizationHeader = "Bearer " + Base64.getEncoder().encodeToString((TEAM_ID + ":" + DEVELOPER_KEY).getBytes());
//Put your recording id here - this value is just an example
String recordingId = "6e4a5676-c2e8-4c14-90a2-4c6cd71640b";
HttpRequest request = HttpRequest.newBuilder()
.GET()
.uri(new URI("https://api.digitalsamba.com/api/v1/recordings/" + roomId))
.header("Authorization", authorizationHeader)
.build();
HttpClient client = HttpClient.newHttpClient();
HttpResponse<String> response = client.send(request, BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Body: " + response.body());