cancel
Showing results for 
Search instead for 
Did you mean: 

Account does not enabled REST API

InstDuCommerce
Listener

Hello,

I am contacting you because I get a 400 status response from you API, and I cannot figure out how to fix this issue.

Here is the whole process:

- My application is hosted on my localhost

- With a Zoom One Pro account, I created on the marketplace a Server-to-Server OAuth application (with well-configured scopes)

- Im my application, I am requesting a token from the OAuth application, which works just fine. 

- I then use this token to POST a request to "https://api.zoom.us/v2/users/me/webinars", but get a 400 status code response from your API, with the following payload:

{
"code": 200,
"message: "Account does not enabled REST API."
}

Here is how I am performing my test request:

$response = Http::withToken($this->token)->post("https://api.zoom.us/v2/users/me/webinars", [
'agenda' => Str::uuid(),
'schedule_for' => '***********',
'start_time' => now()->addWeek()->format('Y-m-d\TH:i:s\Z')
]);

Token obtained as follow:

/**
* Request's API access token if needed.
*
* @return void
*/
private function authenticate(): void
{
if ($this->token && $this->tokenValidUntil->isFuture()) {
return;
}

$response = Http::asForm()->post('https://zoom.us/oauth/token', [
'client_id' => config('zoom.client.id'),
'client_secret' => config('zoom.client.secret'),
'grant_type' => 'client_credentials',
]);

$this->token = $response->json('access_token');

$this->tokenValidUntil = now()->addSeconds($response->json('expires_in'));
}

 

Can you please help me figure out what is going wrong ?

Regards,

4 REPLIES 4

NarayanPatel
Listener

Hello Zoom Community,

 

I also getting same error while trying to create a meet via rest api using java ..providing valid access token and all the necessary configuration is already done which are required to enable api communication via zoom dev account... 

 

can some one assist us 

 

Thanks in advance 

Narayan

Yosh0124
Listener

I also have same issue while trying to create a meet via REST API using golang.

Same Issue while trying to create a meet via REST API

 

Please Resolved 

 

 

Ray_Harwood
Community Champion | Customer
Community Champion | Customer

These questions are more appropriate for the Developers Forum at https://developers.zoom.us/


Ray - Need cost-effective Zoom Events Help? Visit Z-SPAN.com.
Please click Accept As Solution if this helped you !