Webinar Registration through Java

Webinar Registration through Java

New development for calling zoom webinar from Java code
On clicking the link the user will be directed to Zoom webinar for registration along with name and email address

Please let me know the end point(URL) and the parameters need to be passed


Hey @raju.jan86,

Did you have a question? I don’t understand.


Hi Tommy

Requirement : From my Application I need to call webinar(zoom) with the user details, so that the user will register for the webinar which has been already created.

Example Webinar URL : https://api.zoom.us/v2/webinars/123456789/registrants/

Step 1: I need to get access tone from zoom
Step 2: I need to call webinar URL using the access token

I had tried below code for getting access token from Zoom

I am getting below response

Response Body : {“reason”:“Invalid request : Redirect URI mismatch.”,“error”:“invalid_request”}

What should be the fix for the above error

public void getAccessToken() {

String authorization = (client_id +":"+client_secret).toString();
String authBase64String = Base64.getEncoder().encodeToString(authorization.getBytes());

RequestBody formBody = new FormBody.Builder()
		.add("code", "obBEe8ewaL_KdYKjnimT4KPd8KKdQt9FQ") //code copied from google
		.add("redirect_uri", webinarURL)
Request request = new Request.Builder()
		.addHeader("Authorization", "Basic "+authBase64String)

try {
	Response response = httpClient.newCall(request).execute();

	System.out.println("Response Body : "+response.body().string());
} catch (Exception e) {
	System.out.println("getAccessToken Exception : "+e);


Hey @raju.jan86,

For the Redirect URI mismatch make sure you have your redirect url in your whitelist in the app marketplace settings.

Also your redirect url is not your webinarURL, it is the redirect url set in your app marketplace: