# Live page

Captions, translation, live Q&A, polls and live engagement.

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

### GET /v1/public/live/{slug}/stream

Public live stream

Server-Sent Events: the captions of a live event in one language.

Opens with the last few captions (so a late joiner is not looking at a blank screen),
then streams new ones as they are translated. A heartbeat every 15 s keeps proxies and
phones from closing an idle connection between talks.

A plain `def` on purpose: the set-up reads the database, and FastAPI runs a plain `def` in
its threadpool. As `async def` those reads blocked the event loop for every request while
the pool was short (18 Nov). Only the stream itself (`frames`) runs on the loop.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `lang` (query, string, required)
- `session_id` (query, string)
- `client_id` (query, string)
- `mode` (query, string)
- `room` (query, string)
- `token` (query, string)
- `delegate` (query, 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.
