# Ability to specify webhook URL and events when creating session

**URL:** <https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814>\
**Category:** Request for enhancement\
**Created:** [March 13, 2021, 10:29am UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814 "2021-03-13T10:29:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghuk\_botaiml](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/raghuk_botaiml/32/239_2.png) [@raghuk\_botaiml](https://openvidu.discourse.group/u/raghuk_botaiml)\
**Post date:** [March 13, 2021, 10:29am UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814/1 "2021-03-13T10:29:57Z")

</div>

I want the ability to specify the webhook URL and the events to subscribe to while creating the session using rest api. The current global configuration is too restrictive to be used in multi-tenant or multi-project environments.

Hope this request will be considered.

Thanks,  
Raghu

---

<div class="post-metadata">

**Author:** ![SamuelWeirich](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@SamuelWeirich](https://openvidu.discourse.group/u/SamuelWeirich)\
**Post date:** [August 16, 2021, 10:35am UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814/2 "2021-08-16T10:35:16Z")

</div>

I would also need this feature for a multi-project environment.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [August 17, 2021, 2:39pm UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814/3 "2021-08-17T14:39:46Z")

</div>

Thank you for suggesting this feature. I’ll be considered for future versions.

In the meantime, you can create a proxy receiving the requests from “global” webhook and redirecting to the appropriate “specific” webhook.

Best regards

---

<div class="post-metadata">

**Author:** ![SamuelWeirich](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@SamuelWeirich](https://openvidu.discourse.group/u/SamuelWeirich)\
**Post date:** [August 17, 2021, 8:35pm UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814/4 "2021-08-17T20:35:58Z")

</div>

Thank you Micael,  
using a proxy is exactly the workaround I came up with.

Greetings

---

<div class="post-metadata">

**Author:** ![raghuk\_botaiml](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/raghuk_botaiml/32/239_2.png) [@raghuk\_botaiml](https://openvidu.discourse.group/u/raghuk_botaiml)\
**Post date:** [August 18, 2021, 6:38am UTC](https://openvidu.discourse.group/t/ability-to-specify-webhook-url-and-events-when-creating-session/2814/5 "2021-08-18T06:38:46Z")

</div>

@micael.gallego I have already implemented the workaround you suggested. But it will be great to be able to reduce the number of moving parts.
