# Accessing Rest API

**URL:** <https://openvidu.discourse.group/t/accessing-rest-api/293>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [March 23, 2020, 11:30am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293 "2020-03-23T11:30:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shovan\_Roy](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shovan_roy/32/162_2.png) [@Shovan\_Roy](https://openvidu.discourse.group/u/Shovan_Roy)\
**Post date:** [March 23, 2020, 11:30am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/1 "2020-03-23T11:30:35Z")

</div>

Hi,

We are working on a project for COVID 19 and considering openvidu for the same. I was able to initiate a conference using [https://demos.openvidu.io/basic-videoconference/](https://demos.openvidu.io/basic-videoconference/). Just wondering if there is any way I can access the Rest API. Our objective is to notify when someone has joined the conference using some back-end process. The rest api will be very helpful. Please let me know how can we access the rest api for [https://demos.openvidu.io](https://demos.openvidu.io)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 23, 2020, 4:39pm UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/2 "2020-03-23T16:39:55Z")

</div>

Hi,

That OpenVidu Server is only meant to be used for demo purposes. **It is not secure and anybody could access all your sessions**. Of course you are supposed to run your own OpenVidu stack.

Plese visit _Deployoment_ section of [OpenVidu Docs](https://openvidu.io/docs/home/).

---

<div class="post-metadata">

**Author:** ![Shovan\_Roy](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shovan_roy/32/162_2.png) [@Shovan\_Roy](https://openvidu.discourse.group/u/Shovan_Roy)\
**Post date:** [March 23, 2020, 9:11pm UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/3 "2020-03-23T21:11:53Z")

</div>

Thanks @pabloFuente,

I was exploring the AWS option… Have a query:  
“Choose if you want to deploy OpenVidu demo applications. If true, then parameter openvidu.secret must be MY\_SECRET for the demos to work out-of-the-box”

What if I select “false” would there be any further configuration needed. How can I use my own password other than “MY\_SECRET”?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 23, 2020, 9:53pm UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/4 "2020-03-23T21:53:33Z")

</div>

Setting the openvidu secret to “MY\_SECRET” when deploying along demos is only needed if you want everything to work out of the box. If you want to set a different secret, you obviously can, but you will need to SSH into the machine and update the secret in several places:

A) In openvidu-server: changing parameter `openvidu.secret`. You may change it in `/opt/openvidu/application.properties`  
B) In all Demos: of course the demo apps need the secret to be able to communicate with openvidu-server. All the deployed [demos](https://openvidu.io/demos) have the secret in a different place. You can visit the documentation of each demo app to learn where to change it:

Basic Videoconference: [https://openvidu.io/docs/tutorials/openvidu-insecure-js/](https://openvidu.io/docs/tutorials/openvidu-insecure-js/)  
Basic Webinar: [https://openvidu.io/docs/tutorials/openvidu-js-java/](https://openvidu.io/docs/tutorials/openvidu-js-java/)  
Getaroom: [https://openvidu.io/docs/demos/openvidu-getaroom/](https://openvidu.io/docs/demos/openvidu-getaroom/)  
OpenVidu Call: [https://openvidu.io/docs/demos/openvidu-call/](https://openvidu.io/docs/demos/openvidu-call/)  
OpenVidu Classroom: [https://openvidu.io/docs/demos/openvidu-classroom/](https://openvidu.io/docs/demos/openvidu-classroom/)

If you have any particular doubt on where to change the secret of a specific demo, post it here.

Regards

---

<div class="post-metadata">

**Author:** ![Shovan\_Roy](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shovan_roy/32/162_2.png) [@Shovan\_Roy](https://openvidu.discourse.group/u/Shovan_Roy)\
**Post date:** [March 24, 2020, 12:15am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/5 "2020-03-24T00:15:59Z")

</div>

may thanks @pabloFuente,

I’m assuming this secret is only needed if we are trying to use the rest api …etc… but not needed for accessing the video conf by any user. is this correct assumption?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 24, 2020, 12:28am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/6 "2020-03-24T00:28:09Z")

</div>

You need at least 2 REST operations for connecting users to a session: the create session operation and the create token operation.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 24, 2020, 12:28am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/7 "2020-03-24T00:28:36Z")

</div>

Go through any tutorial and you will understand.

---

<div class="post-metadata">

**Author:** ![Shovan\_Roy](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shovan_roy/32/162_2.png) [@Shovan\_Roy](https://openvidu.discourse.group/u/Shovan_Roy)\
**Post date:** [March 24, 2020, 3:17am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/8 "2020-03-24T03:17:42Z")

</div>

thanks @pabloFuente is there any way we can disable the password for conference access? we are able to deploy it in aws… but it’s asking for user/password when we are trying to access the link to start a conference… how can we provide direct access?

We followed this link: [https://openvidu.io/docs/deployment/deploying-aws/](https://openvidu.io/docs/deployment/deploying-aws/) … how can we make the conf available to the user so that they don’t need to enter any useri/password?

Is there any settings we need to apply?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 24, 2020, 11:14am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/9 "2020-03-24T11:14:42Z")

</div>

What do you mean with “is asking for user/password when we are trying to access the link to start a conference” ? Which URL is asking for user/password?

Did you deployed the Demos along OpenVidu Server by setting “Deploy Demos” option to true, and when trying to access to them the browser is asking for credentials? Is that what you mean?

---

<div class="post-metadata">

**Author:** ![Shovan\_Roy](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/shovan_roy/32/162_2.png) [@Shovan\_Roy](https://openvidu.discourse.group/u/Shovan_Roy)\
**Post date:** [March 25, 2020, 6:45am UTC](https://openvidu.discourse.group/t/accessing-rest-api/293/10 "2020-03-25T06:45:49Z")

</div>

@pabloFuente, Yes. we didn’t deploy the demo, but we were able to manage it…it’s working now… but now we have e different problem…

is there any recommended settings for running it on a low internet band width client site?
