# Uploads and live capture

Upload recordings and capture talks in real time.

Base URL: https://api.audiobly.com

### POST /v1/events/{event_id}/live/end

End live capture

The operator pressed Stop.

Without this the browser path had no way to say a capture had finished, and only the
HMAC `stream.ended` webhook — which belongs to the edge-relay design, not to browser
capture — ever ended one. The consequences were invisible at the desk and total
afterwards: the capture stayed "live" forever, the streamed minutes were never priced,
and `compact_live_transcript` never ran, so no Transcript was created and the session
showed an editor nothing at all in Review. The capture appeared to work perfectly and
then produced nothing anyone could open.

session_id is REQUIRED for the same reason it is on /segments: ending the wrong room's
capture at a multi-room event is not recoverable by retrying.

Idempotent, because a browser will retry and an operator will press Stop twice.

`reason` and `hidden_seconds` come from the capture page and are logged, not stored: a
capture that stopped early used to leave nothing to say why. "left-page" means the page
closed or navigated away while live (the guards should make that rare); a long
`hidden_seconds` means the window sat behind another app, where browsers throttle pages.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `reason` (query, one of operator, left-page)
- `hidden_seconds` (query, integer)
- `X-Capture-Writer` (header, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
