# Expiry details for webinars/meetings not clear

**URL:** <https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597>\
**Category:** API and Webhooks\
**Created:** [June 28, 2020, 7:53pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597 "2020-06-28T19:53:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [June 28, 2020, 7:53pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/1 "2020-06-28T19:53:07Z")

</div>

**Description**

1. Need clarity regarding Expiry for webinars and meetings.
2. Getting message - “ **Webinar has expired.** ” for webinarId - \*\*\*\*\*\*\*\*\*\*\*

**Details**

As it is mentioned [here](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) -  
_For security reasons, the recommended way to retrieve the updated value for the `start_url` field pro-grammatically (after expiry) is by calling the `Retrieve a Meeting/Webinar API`and referring to the value of the `start_url` field in the response._

I have few questions -

1. Could you confirm if the time duration for expiry of a webinar is 2 hour and the start\_url can be generated after the expiry? Is it the same for meetings, if not what is the expiry time of Meetings?
2. Can we control expiry time for the Webinar/Meeting, in terms of duration?
3. What is the security reasons mentioned here?
4. I am also not clear about the language here - **updated value for the `start_url` field pro-grammatically (after expiry)**.  
I am not getting the updated value for `start_url` for webinar id - \*\*\*\*\*\*\*\*\*\*\*. It is showing that Webinar has expired. I should be able to regenerate the start\_url after expiry?  
Could you let me know what I am missing here?
5. If expiry duration is 2 hours, and webinar continues for more than 2 hours. Will it stop the webinar automatically?
6. Will users have to do some settings in this scenario by themselves or can I put some programmatic setting so that webinar doesn’t end abruptly for users?

\*This post has been edited to remove any meeting / webinar IDs

---

<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:** [June 29, 2020, 11:35pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/2 "2020-06-29T23:35:11Z")

</div>

Hey @rahul5,

Just so we are on the same page, the `Webinar has expired.` error is not related to the start\_url expiry.

> [@rahul5](#):
>
> Could you confirm if the time duration for expiry of a webinar is 2 hour and the start\_url can be generated after the expiry? Is it the same for meetings, if not what is the expiry time of Meetings?

Yes it is 2 hours for meetings and webinars, but you can generate a new one for future meetings at any time using the [Get Meeting endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting).

> [@rahul5](#):
>
> Can we control expiry time for the Webinar/Meeting, in terms of duration?

No.

> [@rahul5](#):
>
> What is the security reasons mentioned here?

It is always good practice to have tokens not last forever / long periods of time.

> [@rahul5](#):
>
> I am also not clear about the language here - **updated value for the `start_url` field pro-grammatically (after expiry)**.  
> I am not getting the updated value for `start_url` for webinar id - 84869522612. It is showing that Webinar has expired. I should be able to regenerate the start\_url after expiry?  
> Could you let me know what I am missing here?

This means the webinar has started, and been ended, and or has gone past the end time of the webinar.

> [@rahul5](#):
>
> If expiry duration is 2 hours, and webinar continues for more than 2 hours. Will it stop the webinar automatically?

No, the webinar will not timeout. It will only expire if the webinar is ended and is past the end time.

> [@rahul5](#):
>
> Will users have to do some settings in this scenario by themselves or can I put some programmatic setting so that webinar doesn’t end abruptly for users?

Webinars won’t abruptly end for users.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [June 30, 2020, 4:54am UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/3 "2020-06-30T04:54:26Z")

</div>

Hi @tommy

Thanks for the response, I have a clarity now.

But to solve this problem `Webinar has expired` -

I am calling the [retrieve api](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting) after the expiry, it should give me the start\_url and join\_url, but it is throwing me error that access token is not valid. But using the same token I am able to call the other APIs, even I am able to create webinar/meetings.  
Could you help me with this? You can look into the same webinar (id - \*\*\*\*\*\*\*\*\*\*\*) for debugging.

Note - If I am calling the retrieve API using the same token before expiry it is giving me correct start\_url and join\_url.

\*This post has been edited to remove any meeting / webinar IDs

---

<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:** [June 30, 2020, 10:52pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/4 "2020-06-30T22:52:15Z")

</div>

Hey @rahul5, happy to help! 🙂

> [@rahul5](#):
>
> I am calling the [retrieve api](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting) after the expiry, it should give me the start\_url and join\_url, but it is throwing me error that access token is not valid.

Are you using a JWT app or OAuth app? If it is an OAuth app, what is your app name so I can debug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [July 1, 2020, 6:08am UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/5 "2020-07-01T06:08:38Z")

</div>

@tommy  
I am using OAuth app. App name is - HowNow. This is not a published app yet.

---

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [July 3, 2020, 4:44am UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/7 "2020-07-03T04:44:58Z")

</div>

@tommy Do you have any update on this, please?

---

<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:** [July 7, 2020, 2:09am UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/10 "2020-07-07T02:09:14Z")

</div>

Hey @rahul5,

Let me know if my post here helps:

> [@Meeting 503970516 is not found or has expired](https://devforum.zoom.us/t/meeting-503970516-is-not-found-or-has-expired/5545/10):
>
> Thanks @itsupport, I believe the issue is because that meeting was deleted, so it does not return from the API /meetings/{meetingId} endpoint, but does return from /metrics/meetings/{meetingId} because it did exist at one point in time. Check out this forum answer (it’s same question, but about webinars): Let me know if that helps! Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [July 13, 2020, 9:06am UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/11 "2020-07-13T09:06:26Z")

</div>

@tommy

Thanks for the reply, I have a question - For which I need answers to on urgent basis -

I have implemented - [Update User Settings API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettingsupdate) . We are using this API for setting "_ **embed\_password\_in\_join\_link** _, so that users will always have an embedded password in their join link. In our development app this is working properly but in production it is throwing error -

`"Invalid access token, does not contain scopes: [user:write:admin, user:write, zms:user:write]."`

I deauthorized app from Installed Apps section and reinstalled the App again. Note I am using the - User Level app, with `/me` in URL.

Why is this happening, am I missing something here?

Could you please respond on this at earliest?

---

<div class="post-metadata">

**Author:** ![rahul5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul5/32/10849_2.png) [@rahul5](https://devforum.zoom.us/u/rahul5)\
**Post date:** [July 13, 2020, 2:51pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/12 "2020-07-13T14:51:28Z")

</div>

Adding the request I have made for you reference -

```
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.zoom.us/v2/users/me/settings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request["authorization"] = "Bearer #{user.zoom_integration_access_token}"
request.body = "{\"schedule_meeting\":{\"embed_password_in_join_link\":true}}"

response = http.request(request)
puts response.read_body

```

Also adding user id for which I have tried this - `nEhjczVgQVmegVypPOoq6g`

---

<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:** [July 16, 2020, 6:06pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/13 "2020-07-16T18:06:55Z")

</div>

Hey @rahul5,

Your code looks correct.

Is your app published on the marketplace? If so the scope change won’t take affect until the app update is approved.

What is the name of your App?

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, 10:44pm UTC](https://devforum.zoom.us/t/expiry-details-for-webinars-meetings-not-clear/22597/14 "2020-08-21T22:44:00Z")

</div>

Closed on August 21, 2020, 10:44pm UTC


