# Room lifecycle

> How a room moves from active to started, ended, and closed, what scheduled_at and meeting_duration control, and how automatic cleanup works.

Source: https://help.meetone.io/developers/video-api/room-lifecycle
Last updated: 2026-11-13

---

Every room moves through a small set of statuses from creation to closing — this article explains what each one means and what controls the timing around it.

## Room statuses

A room's `status` is one of four values:

| Status | Meaning |
|---|---|
| `active` | The default status right after creation. The room exists and can be joined, but the call hasn't started yet. |
| `started` | The call is underway: the host has joined. `started_at` is recorded. A room stays `active` while only guests have joined. |
| `ended` | The call has finished. A room automatically moves to `ended` when the host leaves the call, whether or not guests are still in it, and `ended_at` is recorded. An `ended` room can still be joined again until it is closed. |
| `closed` | The room has been closed and can no longer be accessed at all. `closed_at` is recorded and the display names are deleted. See [Closing a room](https://help.meetone.io/developers/video-api/room-lifecycle#closing-a-room) below, and [Retention](https://help.meetone.io/developers/video-api/room-lifecycle#retention) for when a closed room is deleted. |

> **Note**
>
> A room is usable from the moment it's created until it's closed — there's no restriction based on `scheduled_at` or the current `status`. See [Rooms endpoints](https://help.meetone.io/developers/video-api/rooms-endpoints) for the full field reference.

Permanent rooms follow the same transitions: when the host leaves, a permanent room moves to `ended` too and can be joined again, until it is closed. What sets them apart is the automatic cleanup and the retention period — see [Additional participants & permanent rooms](https://help.meetone.io/developers/video-api/additional-participants-permanent-rooms).

## Scheduled time and duration

`scheduled_at` and `meeting_duration`, set when [creating](https://help.meetone.io/developers/video-api/rooms-endpoints#create-a-room) or [updating](https://help.meetone.io/developers/video-api/rooms-endpoints#update-a-room) a room, are informational only:

- **`scheduled_at`** is used to display the time remaining until the meeting starts. It has no technical effect on whether the room can be joined.
- **`meeting_duration`** is the expected duration of the meeting, in minutes, shown alongside `scheduled_at`.

A room isn't locked to its `scheduled_at` time — participants can join as soon as the room exists, and it stays usable until it's closed or deleted, regardless of how much time has passed since (or until) that timestamp. Where your installation has a [retention period](https://help.meetone.io/developers/video-api/room-lifecycle#retention), a room that is never closed is deleted once it has been neither used nor changed for that long.

## Closing a room

`PUT /api/rooms/{public_id}/close`

Closes a room. A closed room can not be accessed anymore. Anyone still in the call when you close the room is disconnected: their call ends and they are sent on to the feedback page. A room embedded in an `<iframe>` of your page reports `meetone.call-ended` with the reason `host_ended` to it. `{public_id}` is the `public_id` the room was created with; the deprecated `token` is accepted in its place until 2027-01-01 (see [Identifying a room](https://help.meetone.io/developers/video-api/rooms-endpoints#identifying-a-room)).

```bash
curl -X PUT "https://acme.meetone.io/api/rooms/3f2b8c1e-6a4d-4e9b-9c1a-2f6e8d7b5a10/close" \
  -H "Authorization: Bearer $MEETONE_API_TOKEN"
```

A successful request returns `204 No Content`.

Closing deletes the names participants were given: `host_display_name`, `guest_display_name` and the `display_name` of each additional access token. The room's own `name` stays. A permanent room keeps the display names, and a room that has only `ended` keeps them until it is closed.

> **Warning**
>
> Closing is final and immediate — there's no way to reopen a closed room through the API. If the call needs to continue, create a new room instead.

## Automatic cleanup

Rooms can also be closed automatically by a scheduled cleanup job: it runs every 12 hours and closes any room whose `scheduled_at` is more than 24 hours in the past. Its display names are deleted as with `/close`.

A room closed this way sends no `room.closed` and no `room.participant_left`. For every guest still in its waiting room, it sends a [`room.participant_waiting_ended`](https://help.meetone.io/developers/webhooks/webhook-events-reference#roomparticipant_waiting-roomparticipant_waiting_ended) with the reason `room_closed`. If it has billable minutes, it sends one `room.billing_calculated`, with the same payload as after `/close`, when the cleanup closes it rather than when the call ended. A room without billable minutes and without a waiting guest is closed without a webhook.

> **Note**
>
> Whether automatic cleanup runs for your tenant depends on your MeetOne plan/setup — contact support if you'd like it enabled or adjusted. Explicitly closing rooms via the `/close` endpoint once you know a call has ended is recommended regardless, rather than relying on cleanup alone.

Permanent rooms are excluded from this cleanup job entirely, and from deletion after a [retention period](https://help.meetone.io/developers/video-api/room-lifecycle#retention) — see [Additional participants & permanent rooms](https://help.meetone.io/developers/video-api/additional-participants-permanent-rooms).

## Retention

Where your installation deletes room data after a retention period, a room is deleted that long after it was closed. A room that is not closed counts from its last use or its last change, whichever is later. Permanent rooms are kept.

A deleted room answers `404 Not Found` and is missing from `GET /api/rooms`. No `room.deleted`, no `room.participant_left` and no `room.participant_waiting_ended` webhook is sent for it, and its [feedback](https://help.meetone.io/developers/video-api/room-feedbacks) is deleted with it. Keep what you need from the [`room.billing_calculated`](https://help.meetone.io/developers/webhooks/webhook-events-reference#roombilling_calculated) webhook, which carries the billed minutes of each room. Contact support to find out whether your installation has a retention period and how long it is.

## Billing

For organizations on the Video API plan, usage is billed per participant minute. A room becomes billable as soon as two or more participants were present at the same time for at least 60 seconds. It does not matter whether the host is one of them.

- Each participant, host included, is billed for their presence within the period in which at least two participants were present at the same time. Time in which guests are together without the host is billed too.
- Each participant's time is rounded up to the next whole minute: every started minute is billed.
- Billing is calculated when the room is closed, and `room.billing_calculated` fires with the result (after the [automatic cleanup](https://help.meetone.io/developers/video-api/room-lifecycle#automatic-cleanup), only for a room with billable minutes): `is_billable`, `total_billable_minutes` and the per-participant `billable_minutes`. See the [webhook events reference](https://help.meetone.io/developers/webhooks/webhook-events-reference#roombilling_calculated).
- A room where no two participants overlapped for at least 60 seconds is not billable (`is_billable: false`).

## Redirects after the call

`return_url` and `host_return_url` control where participants land after leaving the room:

- **`return_url`** — where guests (and the host, unless `host_return_url` is set) are redirected after leaving. Uses a tenant-wide default if not provided on creation.
- **`host_return_url`** — where the host specifically is redirected after leaving. Falls back to `return_url` if not set.

Both can be set when [creating](https://help.meetone.io/developers/video-api/rooms-endpoints#create-a-room) or [updating](https://help.meetone.io/developers/video-api/rooms-endpoints#update-a-room) a room.

## Webhooks

Instead of polling the API, your integration can follow a room through its lifecycle with webhooks: `room.created`, `room.reopened`, `room.closed`, `room.deleted`, `room.participant_joined`, `room.participant_left`, `room.participant_waiting`, `room.participant_waiting_ended` and `room.billing_calculated`. Every delivery is signed with HMAC-SHA256, so you can confirm it came from MeetOne before acting on it.

- [Webhooks overview](https://help.meetone.io/developers/webhooks/webhooks-overview) — how endpoints are set up and where the signing secret comes from.
- [Verifying webhook signatures](https://help.meetone.io/developers/webhooks/verifying-webhook-signatures) — the signature check, with code examples.
- [Webhook events reference](https://help.meetone.io/developers/webhooks/webhook-events-reference) — every room event and its payload.

## Related

- [Rooms endpoints](https://help.meetone.io/developers/video-api/rooms-endpoints)
- [Additional participants & permanent rooms](https://help.meetone.io/developers/video-api/additional-participants-permanent-rooms)
- [Quickstart: create your first room](https://help.meetone.io/developers/getting-started/quickstart-create-first-room)

Questions? Contact us at [support@meetone.io](mailto:support@meetone.io).
