---
title: "Mediamtx Stream End"
method: POST
path: "/stream-end"
---

# Mediamtx Stream End

`POST /stream-end`

## Request

- Base URL: `https://sleipnir.tv` (the document declares no server; this is the origin it was published from)
- URL: `https://sleipnir.tv/stream-end`
- Auth: none declared

MediaMTX runOnNotReady webhook. Closes the active session,
accrues duration to the start-month usage period, fires 80%/100%
warning emails on threshold crossings. Reuses AuthPayload because
MediaMTX sends the same JSON shape; we only need `path`.

## Headers

- `X-Sleipnir-Hook-Auth` string, nullable

## Request body

- AuthPayload
  - `user` string, nullable
  - `password` string, nullable
  - `ip` string, nullable
  - `action` string, nullable
  - `path` string, nullable
  - `protocol` string, nullable
  - `id` string, nullable
  - `query` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sleipnir/apis/relay-control-plane.md) · [All operations](https://skmtc.dev/sleipnir/apis/relay-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/sleipnir/apis/relay-control-plane/revisions/79829f6945a4?raw)
