# Webhook meeting.ended how it works?

**URL:** <https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894>\
**Category:** API and Webhooks\
**Tags:** webhooks\
**Created:** [September 4, 2024, 8:37am UTC](https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894 "2024-09-04T08:37:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivashchenkoivan5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ivashchenkoivan5/32/60366_2.png) [@ivashchenkoivan5](https://devforum.zoom.us/u/ivashchenkoivan5)\
**Post date:** [September 4, 2024, 8:37am UTC](https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894/1 "2024-09-04T08:37:37Z")

</div>

I have a question related to meeting.ended webhook.  
We are created the meeting by using request body bellow:

> private String buildJsonCreateMeetingRequest(String topic, String meetDescription,  
> LocalDateTime startTime) {  
> try {  
> ZoomCreateMeetingRequest request = ZoomCreateMeetingRequest.builder()  
> .topic(topic)  
> .type(2)  
> .agenda(meetDescription)  
> .duration(40)  
> .startTime(startTime.toString())  
> .timezone(“UTC”)  
> .settings(Settings.builder()  
> .joinBeforeHost(true)  
> .meetingAuthentication(false)  
> .jbhTime(0)  
> .privateMeeting(true)  
> .build())  
> .build();  
> return objectMapper.writeValueAsString(request);  
> } catch (JsonProcessingException e) {  
> logger.error(“Error processing JSON request”, e);  
> return StringUtils.EMPTY;  
> }  
> }

Imagine that we have only 2 participant, whos are not a host. We are getting a request to the webhook when the meeting ended, but the problem is when the first participant entering to the meeting and exit the webhook was trigered, I understand that this is a correct work, but how can I manage or add specific setting to getting webhook only when the two participant entered and after that exit? What shpuld I have to do if I want that webhook trigered only when 2 participant entered and meeting has 2 participant at the same time and after that when they exit and meeting will be had 0 participant I have got a webhook?

I need to set up a webhook to receive notifications only when a meeting has exactly two participants. The webhook should be triggered when both participants leave, so that I receive notifications only when the meeting has exactly two participants.

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [September 6, 2024, 4:05am UTC](https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894/2 "2024-09-06T04:05:20Z")

</div>

Hi @ivashchenkoivan5, you may want to use the [meeting.started](https://developers.zoom.us/docs/api/rest/reference/zoom-api/events/#operation/meeting.started) event, which triggers either when a meeting host joins or when two participants join a meeting.

---

<div class="post-metadata">

**Author:** ![ivashchenkoivan5](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ivashchenkoivan5/32/60366_2.png) [@ivashchenkoivan5](https://devforum.zoom.us/u/ivashchenkoivan5)\
**Post date:** [September 7, 2024, 8:32am UTC](https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894/3 "2024-09-07T08:32:50Z")

</div>

Thank you very much, @michael.zoom , for your helpful advice!  
I think it’ll be helpful to check both “meeting.started” and “meeting. ended” and after that make a logic around these info

---

<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:** [September 11, 2025, 12:09am UTC](https://devforum.zoom.us/t/webhook-meeting-ended-how-it-works/116894/4 "2025-09-11T00:09:04Z")

</div>

Closed on September 11, 2025, 12:09am UTC

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