---
title: "POST video.space.deleted"
method: POST
path: "video.space.deleted"
---

# POST video.space.deleted

`POST video.space.deleted` (webhook)

## Payload

- object
  - `type` 'video.space.deleted', required
  - `id` string, required — Unique identifier for the event
  - `created_at` string, date-time, required — Time the event was created
  - `object` object, required
    - `type` string, required
    - `id` string, required
  - `data` object, required
    - `id` string, required — Unique identifier for the space. Max 255 characters.
    - `created_at` string, int64, required — Time the space was created, defined as a Unix timestamp (seconds since epoch).
    - `type` 'server', required — Specify the network architecture of the space. In `server` spaces, all video travels through Mux's video infrastructure. Defaults to `server` if not set.
    - `status` 'idle' | 'active', required — The status of the space. Spaces are `idle` when there are no participants connected, and `active` when there are participants connected.
    - `passthrough` string — Arbitrary user-supplied metadata that will be included in the space details and related webhooks. Max: 255 characters.
    - `broadcasts` Broadcast[] — An array of broadcast destinations.
      - `id` string, required — Unique identifier for the broadcast. Max 255 characters.
      - `passthrough` string — Arbitrary user-supplied metadata that will be included in the broadcast details and related webhooks. Max: 255 characters.
      - `live_stream_id` string, required — The ID of the live stream that the broadcast will be sent to.
      - `status` 'idle' | 'active', required — The status of the broadcast. You can start and stop broadcasts with the `start` and `stop` APIs.
      - `layout` 'gallery' | 'active-speaker' | 'crop', required — The layout used when broadcasting the space. The `gallery` layout will show participants in a grid that automatically resizes each participant’s stream to best fit up to 10 participants in the window. The `active-speaker` layout will show only the current active speaker, without a border. The `crop` layout uses as much of the available space as possible to show the participant's stream. Defaults to `gallery` if not set.
      - `background` string — URL of an image to display as the background of the broadcast. Its dimensions should match the provided resolution.
      - `resolution` '1920x1080' | '1280x720' | '1080x1920' | '720x1280' | '1080x1080' | '720x720', required — The resolution of the composited video sent to the live stream. Defaults to `1920x1080` if not set.
    - `active_session_id` string — Unique identifier for the current lifecycle of the space. Only set when the space is `active` and is set to a new value each time the space transitions from `idle` to `active`. This value is useful for logging and debugging issues. Max 255 characters.
  - `environment` object, required
    - `name` string, required — Name for the environment
    - `id` string, required — Unique identifier for the environment
  - `attempts` object[], required — Attempts for sending out the webhook event
    - `webhook_id` integer — Unique identifier for the webhook
    - `response_status_code` integer — HTTP response status code for the webhook attempt
    - `response_headers` object — HTTP response headers for the webhook attempt
    - `response_body` string, nullable — HTTP response body for the webhook attempt
    - `max_attempts` integer — Max attempts number for the webhook attempt
    - `id` string — Unique identifier for the webhook attempt
    - `created_at` string, date-time — Time the webhook request was attempted
    - `address` string — URL address for the webhook attempt
  - `request_id` string, nullable
  - `accessor` string, nullable
  - `accessor_source` string, nullable

## Acknowledgement `200`

Return a 200 to indicate that the data was received successfully

---

[API](https://skmtc.dev/muxinc/apis/mux-api.md) · [All operations](https://skmtc.dev/muxinc/apis/mux-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/muxinc/mux-api/revisions/dcdbbcabe09e/schema)
