Account does not enabled REST API | Community
Skip to main content
Newcomer
October 10, 2023
Question

Account does not enabled REST API

  • October 10, 2023
  • 2 replies
  • 3 views

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,

2 replies

Newcomer
October 12, 2023

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

Newcomer
October 22, 2023

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

Newcomer
November 22, 2023

Same Issue while trying to create a meet via REST API

 

Please Resolved 

 

 

Ray_Harwood
Community Super Champion | Customer
Community Super Champion | Customer
November 25, 2023

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