# Webinar.ended webhook event duration

**URL:** <https://devforum.zoom.us/t/webinar-ended-webhook-event-duration/89353>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [May 31, 2023, 10:26am UTC](https://devforum.zoom.us/t/webinar-ended-webhook-event-duration/89353 "2023-05-31T10:26:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbohdanets](https://avatars.discourse-cdn.com/v4/letter/v/d26b3c/32.png) [@vbohdanets](https://devforum.zoom.us/u/vbohdanets)\
**Post date:** [May 31, 2023, 10:26am UTC](https://devforum.zoom.us/t/webinar-ended-webhook-event-duration/89353/1 "2023-05-31T10:26:54Z")

</div>

### Format Your New Topic as Follows:

**API Endpoint(s) and/or Zoom API Event(s)**

- webinar.ended
- webinar.created

**Description**

Hello! We’ve noticed instances where the “duration” field in our records shows a value of 0. We’re experiencing this behavior with the `webinar.created` and `webinar.ended` webhook events.

Could you please confirm whether this is expected? If so, could you guide us through the steps to consistently reproduce this scenario?

Examples of webhook payload:

`webinar.ended`

```auto
{"account_id":" *******","object":{"duration":0,"start_time":"2023-05-10T17:05:18Z","timezone":"America/New_York","end_time":"2023-05-10T17:17:20Z","topic":"********","id":"81427003773","type":5,"uuid":"MLJrFXTXTJG0qMYtqfyAOA==","host_id":" ********"}}}

```

`webinar.created` for same webinar

```auto
{"account_id":" ******","operator":"******","operator_id":" ******","object":{"uuid":"MLJrFXTXTJG0qMYtqfyAOA==","id":81427003773,"host_id":"****","topic":" *****","type":5,"start_time":"2023-05-10T17:15:00Z","duration":0,"timezone":"America/New_York","join_url":"******","password":" *****","settings":{"use_pmi":false,"alternative_hosts":""}}}}

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [June 7, 2023, 2:40pm UTC](https://devforum.zoom.us/t/webinar-ended-webhook-event-duration/89353/2 "2023-06-07T14:40:12Z")

</div>

Hi @vbohdanets  
Thanks for reaching out to us!  
The duration field for both webinar.ended and webinar.created, is the value of the scheduled webinar duration.  
This will be returned only if you set up the duration of the webinar when you create it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 10, 2024, 6:16am UTC](https://devforum.zoom.us/t/webinar-ended-webhook-event-duration/89353/3 "2024-06-10T06:16:12Z")

</div>

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
