# Failed to create meeting, error: {"code":124,"message":"Invalid access token."}

**URL:** <https://devforum.zoom.us/t/failed-to-create-meeting-error-code-124-message-invalid-access-token/70099>\
**Category:** Meetings\
**Created:** [June 7, 2022, 6:17pm UTC](https://devforum.zoom.us/t/failed-to-create-meeting-error-code-124-message-invalid-access-token/70099 "2022-06-07T18:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![siren](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@siren](https://devforum.zoom.us/u/siren)\
**Post date:** [June 7, 2022, 6:17pm UTC](https://devforum.zoom.us/t/failed-to-create-meeting-error-code-124-message-invalid-access-token/70099/1 "2022-06-07T18:17:46Z")

</div>

Description:  
Our internal service that calls the zoom API has random started to give us an error preventing us from created new meetings programmatically. No code changes or credential changes have taken place as far as we can tell.

Error:  
Return Status: 401  
`Failed to create meeting, error: {"code":124,"message":"Invalid access token."}`

Which App Type?:  
JWT

Which endpoints:  
Our Python code runs through this and error gets logged in our logging application  
“[https://api.zoom.us/v2/users/](https://api.zoom.us/v2/users/)” + user\_id + “/meetings”

user ID is the email of the user that has the JWT app assigned to them?

How to Reproduce:

```auto
header = {
           'Authorization': 'Bearer ' + jwt_string,
           'Content-type':'application/json'
       }
   zoom_url = "https://api.zoom.us/v2/users/siren@shipt.com/meetings"
   meeting_data = {'topic': 'Planned Maintenance for background_checks', 'start_time': '2022-06-07T13:00:00-05:00', 'duration': 60}
       r = requests.post(
           headers=header,
           url=self.zoom_url,
           data=json.dumps(meeting_data)
       )

```
