# Restart device via API?

**URL:** <https://devforum.zoom.us/t/restart-device-via-api/6370>\
**Category:** API and Webhooks\
**Created:** [October 22, 2019, 3:47pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370 "2019-10-22T15:47:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 22, 2019, 3:47pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/1 "2019-10-22T15:47:07Z")

</div>

We are running into issues where the devices in our meeting rooms dont always play nice. An example would be our microphone system randomly deciding not to work, and losing an entire meetings audio without much warning.

Does anyone know if its possible or have an example of restarting a device remotely via the API? We solution to the example issue above would be to login to our admin portal and restart the room. Our goal would be to create a page where a user could reset the room their are in, without having to contact IT

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 22, 2019, 4:33pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/2 "2019-10-22T16:33:34Z")

</div>

Hey @jordan.berry, thanks for posting and using Zoom!

You can in fact restart a Zoom Room via our API. Check out the Restart Zoom Room Client endpoint:

> **[Zoom Rooms API - Zoom Rooms - Documentation](https://marketplace.zoom.us/docs/guides/zoom-rooms/zoom-rooms-api#restart)**
>
> We are excited to announce the APIs to control Zoom Rooms. These first set of APIs allow your app to get the list of rooms on your account, select a roo...

Let me know if this helps! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 22, 2019, 5:56pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/3 "2019-10-22T17:56:42Z")

</div>

Hey Tommy, Thank you!

Forgive me, but I am pretty bad when it comes to api calls. Do you have an example of calling this function with its headers/authentication? If not, no worries!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 22, 2019, 6:44pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/4 "2019-10-22T18:44:36Z")

</div>

Hey @jordan.berry, no worries, happy to help!

POST [https://api.zoom.us/v2/rooms/{roomId}/zrclient](https://api.zoom.us/v2/rooms/%7BroomId%7D/zrclient)

(You can [get the Zoom Room ID from here](https://marketplace.zoom.us/docs/api-reference/zoom-api/rooms/listzoomrooms), same authentication headers as below.)

HEADERS:

```json
{
   "Authentication": "Bearer JWT_TOKEN_HERE"
}

```

BODY:

```json
{
  "method": "restart"
}

```

If you don’t have a JWT Token yet, you can [create a JWT app here](https://marketplace.zoom.us/develop/create).

 ![42%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/84187443d08f62e964ab88ba1946266f64c2c331.png)

Let me know if this makes sense! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 22, 2019, 8:34pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/5 "2019-10-22T20:34:18Z")

</div>

Awesome. I will give this a shot here soon and report back. Thank you!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 22, 2019, 10:00pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/6 "2019-10-22T22:00:40Z")

</div>

Happy to help!

Let me know how it goes! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 22, 2019, 10:29pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/7 "2019-10-22T22:29:10Z")

</div>

Feel like I am missing something extremely obvious here, and I am sorry for asking such basic questions. Here is what I have written in Python:

```
import requests

headers = {"Authentication": "Bearer long_token"}
endpoint = 'https://api.zoom.us/v2/rooms/PXuefyUASZ2trO2BJgwRCQ/zrclient'

data = {"method": "restart"}

r = requests.post( url = endpoint, data = data, headers = headers)

print(r.text)

```

And that returns

```
{"code":124,"message":"Invalid access token."}

```

Any idea what I did wrong here?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 22, 2019, 11:03pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/8 "2019-10-22T23:03:08Z")

</div>

Hey @jordan.berry, this all looks good.

To confirm, you are using a JWT token in place of `long_token`?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 22, 2019, 11:08pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/9 "2019-10-22T23:08:53Z")

</div>

Hey Tommy,

Yes, the long\_token is the token provided by JWT with the expiration date set to 1 week for testing

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 22, 2019, 11:29pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/10 "2019-10-22T23:29:54Z")

</div>

Thanks for joining the Zoom meeting! Glad we got the request working over postman! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jordan.berry](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@jordan.berry](https://devforum.zoom.us/u/jordan.berry)\
**Post date:** [October 23, 2019, 2:41pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/11 "2019-10-23T14:41:30Z")

</div>

Thank you very much for all your help Tommy!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 23, 2019, 3:24pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/12 "2019-10-23T15:24:30Z")

</div>

You are welcome! Happy to help! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:01pm UTC](https://devforum.zoom.us/t/restart-device-via-api/6370/13 "2020-08-21T19:01:05Z")

</div>

Closed on August 21, 2020, 7:01pm UTC


