# Not able to create new meeting

**URL:** <https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853>\
**Category:** Meetings\
**Tags:** api\
**Created:** [December 28, 2023, 2:17am UTC](https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853 "2023-12-28T02:17:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daanamuplift](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@daanamuplift](https://devforum.zoom.us/u/daanamuplift)\
**Post date:** [December 28, 2023, 2:17am UTC](https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853/1 "2023-12-28T02:17:45Z")

</div>

_Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context._

[api.zoom.us/v2/users/me/meetings](http://api.zoom.us/v2/users/me/meetings)

**Description**  
I had JWT application and was creating user and meeting pragmatically.  
Now, after migration to OAuth2.0 Server-to-Server authentication, I am not able to create a meeting.

**Error?**  
HTTP/1.1 401 Unauthorized  
“{“code”:124,“message”:“This API does not support client credentials for authorization.”}”

**How To Reproduce**  
I am able to generate token

String authUrl = “[https://zoom.us/oauth/token?grant\_type=client\_credentials](https://zoom.us/oauth/token?grant_type=client_credentials)”;

---

<div class="post-metadata">

**Author:** ![jenzushsu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenzushsu/32/34251_2.png) [@jenzushsu](https://devforum.zoom.us/u/jenzushsu)\
**Post date:** [December 28, 2023, 3:24am UTC](https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853/2 "2023-12-28T03:24:01Z")

</div>

Hi @daanamuplift,

Thank you for reaching out to Zoom Developer Forum.

For Server-to-Server OAuth, you should be using `account_credentials` as the grant\_type. You can refer to our documentation [here](https://developers.zoom.us/docs/internal-apps/s2s-oauth/#generate-access-token).

---

<div class="post-metadata">

**Author:** ![daanamuplift](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@daanamuplift](https://devforum.zoom.us/u/daanamuplift)\
**Post date:** [December 28, 2023, 5:42am UTC](https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853/3 "2023-12-28T05:42:06Z")

</div>

Hi Jenzus,  
Thank you for prompt reply.  
I am able to generate token with grant=client\_credentials

```auto
{
    "access_token": "eyJzdiI6IjAwMDAwMSIsIm [rest truncated...]",
    "token_type": "bearer",
    "expires_in": 3599,
    "scope": "user:write:admin meeting_token:read:admin:local_recording report_chat:read:admin user:read:admin meeting:read:admin:sip_dialing recording:write:admin dashboard_home:read:admin report:read:admin dashboard_crc:read:admin webinar:read:admin account:master imchat:read:admin user:master webinar:write:admin room:master dashboard:master dashboard_webinars:read:admin meeting:read:admin group:master dashboard_meetings:read:admin recording:read:admin meeting:write:admin chat_message:read:admin webinar:master dashboard_zr:read:admin dashboard_im:read:admin chat_message:write:admin report:master meeting_token:read:admin:live_streaming group:write:admin room:write:admin recording:master account:read:admin group:read:admin imchat:bot chat_channel:write:admin account:write:admin webinar_token:read:admin:local_recording meeting:master meeting_token:read:admin:local_archiving webinar_token:read:admin:local_archiving webinar_token:read:admin:live_streaming imchat:write:admin chat_channel:read:admin room:read:admin"
}

```

But when I use, grant=account\_credentials, I get bad request error.

```auto
{
    "reason": "Bad Request",
    "error": "invalid_request"
}

```

Thanks,

---

<div class="post-metadata">

**Author:** ![daanamuplift](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@daanamuplift](https://devforum.zoom.us/u/daanamuplift)\
**Post date:** [December 28, 2023, 5:57am UTC](https://devforum.zoom.us/t/not-able-to-create-new-meeting/100853/4 "2023-12-28T05:57:31Z")

</div>

This is fixed. I was using Account ID from Zoom License, not from App credentials.

Thanks,
