# Live Streams

> Video API reference, generated from the OpenAPI spec.

HTML version: https://www.mux.com/docs/api-reference/video/live-streams. Full OpenAPI spec: https://www.mux.com/api-spec.json

## Signal a live stream is finished

`PUT https://api.mux.com/video/v1/live-streams/{LIVE_STREAM_ID}/complete`

(Optional) End the live stream recording immediately instead of waiting for the reconnect_window. `EXT-X-ENDLIST` tag is added to the HLS manifest which notifies the player that this live stream is over.

Mux does not close the encoder connection immediately. Encoders are often configured to re-establish connections immediately which would result in a new recorded asset. For this reason, Mux waits for 60s before closing the connection with the encoder. This 60s timeframe is meant to give encoder operators a chance to disconnect from their end.

Operation ID: `signal-live-stream-complete`. HTML version: https://www.mux.com/docs/api-reference/video/live-streams/signal-live-stream-complete

### Path parameters

- `LIVE_STREAM_ID` (string, required): The live stream ID

```sh
curl https://api.mux.com/video/v1/live-streams/${LIVE_STREAM_ID}/complete \
  -X PUT \
  -H "Content-Type: application/json" \
  -u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
```

### Response `200`

OK

- `data` (object, required)
