---
title: "Stop recording, and stop spending"
method: DELETE
path: "/v1/streams/{streamId}"
tags: ["Live"]
---

# Stop recording, and stop spending

`DELETE /v1/streams/{streamId}`

## Request

- Base URL: `https://api.tryplayhead.com`
- URL: `https://api.tryplayhead.com/v1/streams/{streamId}`
- Auth: HTTP bearer

Everything recorded stays readable. The event becomes a finished, indexed video and `POST /v1/watch_video` still answers about it. This ends the spending; it deletes nothing.

## Path parameters

- `streamId` string, required

## Response `200`

The event, stopped.

- object
  - `stream` Stream
    - `id` string
    - `video_id` string
    - `status` 'starting' | 'live' | 'ended' | 'failed'
    - `recorded_seconds` number: How far the recording has got. The duration of an event, and it grows while the event runs.
    - `recording` boolean
    - `road` 'pull' | 'push'
    - `source` string, nullable
    - `question` string, nullable
    - `pieces_recorded` integer
    - `readings_done` integer
    - `triggers_fired` integer
    - `disconnects` integer: How many times the source went away and came back.
    - `last_error` string, nullable
    - `created_at` string, date-time
    - `started_at` string, date-time, nullable
    - `ended_at` string, date-time, nullable
  - `stopped` boolean

## Other responses

- `401`: Missing, malformed or expired credential.
- `404`: No such event, or it belongs to another organization.

---

[API](https://skmtc.dev/tryplayhead/apis/playhead-api.md) · [All operations](https://skmtc.dev/tryplayhead/apis/playhead-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tryplayhead/apis/playhead-api/revisions/21dfb775b852?raw)
