# Uploads and live capture

Upload recordings and capture talks in real time.

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

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

Ingest live segments

Transcript segments from the operator's capture tool.

The browser-facing twin of the HMAC webhook, and the reason it exists: a browser cannot
hold the organisation's signing key, so the operator authenticates as themselves. Note
what is deliberately NOT copied from the webhook — that route runs on a service session
which BYPASSES row-level security, and takes the organisation from the URL, trusting the
signature as proof of ownership. Safe for a signed machine-to-machine caller; on a
browser endpoint the same shape would let any authenticated user post into another
tenant's capture with RLS unable to stop them. So: an ordinary session, and the event
resolved through the caller's own scope.

Storage is the shared path, so a segment behaves identically whichever route delivered
it: idempotent by (session, seq), and a final replaces the interim before it.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `X-Capture-Writer` (header, string)

Body (JSON):

- `segments` (array of LiveSegmentIn, required): The captions to add, each with its text and time.

Responses:

- 202: 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.
