Got 404 not found error when make API call to zoom video sdk APIs

I have one query regarding the zoom video sdk API.

List session users

GET /videosdk/sessions/{sessionId}/users

I use this API for getting users for a particular session.

Below code is implemented in java to make API requests to Zoom.

String apiUrl = “https://api.zoom.us/v2/videosdk/sessions”;

ArrayList interceptors = new ArrayList<>();
interceptors.add(new HeaderRequestInterceptor(“content-type”, “application/x-www-form-urlencoded”));
interceptors.add(new HeaderRequestInterceptor(“Authorization”, "Bearer " + token));

restTemplate.setInterceptors(interceptors);

    URI uri = UriComponentsBuilder.fromUriString(apiUrl)
    .pathSegment(sessionId)
    .path("/users")
            .build()
            .toUri();

ResponseEntity response = restTemplate.getForEntity(uri, String.class);

if (response.getStatusCode().is2xxSuccessful()) {
System.out.println("API Response: " + response.getBody());
return response.getBody();
} else {
System.out.println("Error: " + response.getStatusCode());
return null;
}

This is give me Error : 404 NOT FOUND

My current plan : pay as you go

1 Like

Hey there :wave:

Are you getting a 404 with GET /videosdk/sessions/{sessionId}/users all the time? Are your credentials from your VideoSDK account to access the API?

In case it helps, you can access the insession users directly from the VideoSDK as well - VideoClient | Zoom Video SDK for Web - 1.10.1

Let me know if this helps.

Hii Kelly

Thank you for response

Yes, I got all the time 404 not found error

for this API : GET /videosdk/sessions/{sessionId}/users

But, I got 200 success response and list of sessions below API :

https://api.zoom.us/v2/videosdk/sessions

I don’t know what is wrong here.

Please help me resolve this issue.

I assume that when called, you are also replacing {sessionId} with a valid sessionId, correct?

Yes and I get session Id from below API for session details :

https://api.zoom.us/v2/videosdk/sessions