# Live page

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

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

### GET /v1/live-translation/languages

Live translation languages

Every language attendees can be offered (the translation service's supported
languages) and which of them can be listened to with a neural voice.

Scope: any key

Responses:

- 200: Successful Response
- 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.

### GET /v1/events/{event_id}/live-translation

Get live translation

Get the event's live-page settings: languages, audio, attendee link, access mode and
passcode, per-room overrides and branding. `entitled` is true when the account may run the
live page (any of live translation, Q&A or Polls); `translation_entitled`, `qa_entitled` and
`polls_entitled` say which of those it has.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

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.

### PUT /v1/events/{event_id}/live-translation

Put live translation

Update the event's live-page settings; omitted fields are unchanged. The live page runs
with any of live translation, Q&A or Polls: returns 403 `NOT_ENTITLED` when the account has
none of them, and also when it lacks live translation and the request changes `languages`,
`audio` or `allow_other_languages` (without live translation the page offers the spoken
language only). 422 for an invalid attendee link, webhook address, theme value
(`INVALID_NAME`, `INVALID_LOGO_SIZE`, `INVALID_LOGO`, `INVALID_COLOUR`), browser tab and
sharing value (`INVALID_TAB_TITLE`, `INVALID_DESCRIPTION`, `INVALID_ICON`,
`INVALID_SHARE_IMAGE`) or too many languages, and 409 `SLUG_TAKEN` if the link is in use.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)

Body (JSON):

- `languages` (array of string): The language codes attendees can pick, up to 40.
- `enabled` (boolean): Whether this is switched on.
- `allow_other_languages` (boolean): Whether attendees may pick any language, not only the listed ones.
- `audio` (boolean): Whether spoken translation is offered.
- `slug` (string): The address of the live page, for example my-event; up to 80 characters.
- `access` (string): open, qr (needs the QR link) or strict (needs the passcode).
- `passcode` (string): A 4 to 8 digit passcode attendees type to get in.
- `new_passcode` (boolean): Set to true to generate a new passcode.
- `passcode_daily` (boolean): Whether the passcode changes every day of the event.
- `passcode_on_screen` (boolean): Whether the passcode is shown on the room screen.
- `rooms` (array of RoomUpdate): Access settings for individual rooms, each with a room id.
- `off_sessions` (array of string): The ids of sessions switched off for the live page.
- `branding` (boolean): Whether the live page uses this event's own logo and colours.
- `theme` (LiveTheme): The live page's own logo and colours.
- `sponsor_id` (string): The sponsor shown on the live page.
- `sponsor_logo` (string): Logo for the sponsor slot on this event; an empty value goes back to the sponsor's own.
- `sponsor_link` (string): Link for the sponsor slot on this event; an empty value goes back to the sponsor's own.
- `blocked_terms` (array of string): Words that are removed or masked in live captions.
- `webhook_url` (string): Address that receives notifications from the live page; an empty value removes it.
- `new_webhook_secret` (boolean): Set to true to generate a new webhook signing secret.
- `snapshots` (boolean): Whether a summary and key takeaways are written automatically after each session.
- `share` (LiveShare): The browser tab title, link description, icon and share image for the live page.
- `after_event` (LiveAfterEventUpdate): What attendees see once the event is over.

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.

### GET /v1/events/{event_id}/live-translation/usage

Live translation usage

Who listened, by talk, room and language: anonymous device counts and minutes, and
`by_mode`: devices that read the captions, listened to the voice, or both (D37).

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

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.

### GET /v1/events/{event_id}/live-translation/usage.csv

Live translation usage (CSV)

Download live-translation listening as CSV: one row per talk with room, start time, devices
and listening minutes, a device count per language, and a totals row.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

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.

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

Public live info

Public, unauthenticated page data for an attendee live-translation link: the event, its
languages, rooms live now and coming next, access mode and branding. Returns 404 if the link
does not exist or translation is off. Once the organiser switched the website off (D37
After the event) it answers `closed: true` with only the event's name, dates, city, branding
and share info; every other attendee endpoint then answers 410 `EVENT_CLOSED`.

Scope: any key

Parameters:

- `slug` (path, string, required)

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.

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

Public live languages

Every language an attendee can choose: the event's shortcuts first, then all others A–Z
by English name (only the shortcuts when the organiser switched the full list off).

Scope: any key

Parameters:

- `slug` (path, string, required)

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.

### POST /v1/public/live/{slug}/access

Public live access

Exchange a QR key, a room-screen key or the passcode for an attendee token.

Scope: any key

Parameters:

- `slug` (path, string, required)

Body (JSON):

- `room_id` (string): The id of the room, if the attendee is joining one.
- `key` (string): The access key from the QR link, when the page needs one.
- `passcode` (string): The passcode, when the page needs one.

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.

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

Public live screen

For the room screen and the stream overlay, addressed by their screen key.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `k` (query, string, required)

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.

### GET /v1/public/live/{slug}/audio/{capture_id}/{n}/{lang}.mp3

Public live audio

One sentence of translated speech. Only for events whose live translation is on.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `capture_id` (path, string (uuid), required)
- `n` (path, integer, required)
- `lang` (path, string, required)

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.

### 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.

### POST /v1/events/{event_id}/live-translation/design-from-website

Design from website

Read a public web page and its stylesheets and suggest the attendee page's colours from
the colours it uses, plus the font it uses (for information). Nothing is saved: apply the
suggestion with `PUT /v1/events/{id}/live-translation` (`theme`). 403 `NOT_ENTITLED` without
the live page, 422 `BAD_ADDRESS` when it is not a web address, 422 `SITE_NOT_FOUND` when no
such site exists, 422 `SITE_UNREADABLE` when it cannot be opened or gives nothing to read, 429 `TOO_MANY_READS` after the day's limit for the event, 503 `TRY_AGAIN` when the
read counter is unavailable.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)

Body (JSON):

- `url` (string, required): A public web page: the event's own site or the brand's site. A bare domain such as www.yourbrand.com is fine.

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.

### GET /v1/public/live/{slug}/sessions/{session_id}/snapshot

Public session snapshot

A talk's snapshot: a one-paragraph summary and 3–5 takeaways, written after the talk.

`status` is `none` (snapshots off, or the talk has not ended), `writing`, `draft` or
`reviewed`. Translated into `lang` when it differs from the language it was
written in.

`source` `published` (D62): the session's final Session Report is approved, so `summary`
is the report's full overview and `takeaways` its first five (as `headline`, with an empty
`detail`); `status` is then `reviewed`, so clients that only know snapshots keep working. Before that `source` is
`snapshot` and the fields are the automatic snapshot's; `replaced_on_publish` says whether
publishing the session will replace it. A draft report is never shown.
404 `NOT_FOUND` for an unknown talk, 401 `PASSCODE_REQUIRED` when the room needs a token,
422 `LANGUAGE_NOT_OFFERED`.

Scope: any key

Parameters:

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

### GET /v1/public/live/{slug}/sessions/{session_id}/transcript

Public session transcript

The transcript of a talk that has ended.

`source` `published`: the session is Published in the admin, so this is the editor-approved
transcript (the one on Content › Transcripts and the Insider Hub), in `lang` when it has a
translation into it, otherwise in the spoken language. `source` `live` until then: the live
captions attendees followed, in `lang` when the talk's captions were translated into it,
otherwise in the spoken language (`language` says which). 409 `NOT_ENDED` while the talk
is still on, 404 `NOT_FOUND` for an unknown talk, 401 `PASSCODE_REQUIRED` when the room
needs a token.

Scope: any key

Parameters:

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

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

Public live search

Search the event: talks (title, track, speakers, companies), speakers (name, job title,
company) and, when snapshots are on, the snapshots' summaries and takeaways. Case-insensitive,
at most 20 results per group. Snapshot text is matched and returned in `lang` when a
translation has already been made, else in the language it was written in. 401
`PASSCODE_REQUIRED` when no room of the event is open to the caller.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `q` (query, string, required)
- `lang` (query, string)
- `token` (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.

### POST /v1/public/live/{slug}/signin/start

Public signin start

Email a sign-in link and a 6-digit code to a delegate booked on this event. Both work
once, for 15 minutes; asking again (allowed after 30 s) replaces them. 404 `NO_BOOKING`
when the email has no live booking at the event, 429 `TOO_SOON` (`retry_after`) or
`TOO_MANY_ATTEMPTS`, 502 `SEND_FAILED`, 503 `SIGNIN_UNAVAILABLE`.

Scope: any key

Parameters:

- `slug` (path, string, required)

Body (JSON):

- `email` (string, required): The email address to send a sign-in code to.

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.

### POST /v1/public/live/{slug}/signin/verify

Public signin verify

Exchange the link `token`, or the `email` and `code`, for a 30-day website session.
400 `CODE_WRONG` (`attempts_left`), 410 `CODE_EXPIRED` (expired, used, replaced or five
wrong codes), 404 `NO_BOOKING`, 422 `MISSING`, 429 `TOO_MANY_ATTEMPTS`.

Scope: any key

Parameters:

- `slug` (path, string, required)

Body (JSON):

- `email` (string): The email address the code was sent to.
- `code` (string): The code from the sign-in email.
- `token` (string): The token from the sign-in link in the email.

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.

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

Public me

The signed-in delegate (`X-Delegate-Session`), with `stream_ticket` for the caption
stream's `?delegate=`. 401 `SIGNED_OUT`.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (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.

### POST /v1/public/live/{slug}/signout

Public signout

End the website session: the token stops working at once. Always 204.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

Responses:

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

### GET /v1/public/live/{slug}/me/saved-sessions

Public saved sessions

The delegate's saved sessions at this event, in programme order. The same saves as on
the organiser's own site.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (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.

### PUT /v1/public/live/{slug}/me/saved-sessions/{session_id}

Public save session

Save a session (idempotent). 404 `NOT_FOUND`, 422 `NOT_BOOKED`.

Scope: any key

Parameters:

- `session_id` (path, string, required)
- `slug` (path, string, required)
- `X-Delegate-Session` (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.

### DELETE /v1/public/live/{slug}/me/saved-sessions/{session_id}

Public unsave session

Remove a saved session (idempotent). 404 `NOT_FOUND`.

Scope: any key

Parameters:

- `session_id` (path, string, required)
- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

Responses:

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

### POST /v1/public/live/{slug}/me/saved-sessions/merge

Public merge saved

Add the sessions saved on this phone before signing in; returns the full list. Ids that
are not sessions of this event are ignored.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

Body (JSON):

- `session_ids` (array of string): The ids of the sessions, in the order you want them.

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.

### GET /v1/public/live/{slug}/me/bookmarks

Public bookmarks

The signed-in delegate's caption bookmarks at this event, in the order they were kept;
one session's only with `session_id`. They are lines in the delegate's event note
(`★ {clock} · {session title} · {speaker}: "{text}"`), the same ones the organiser's own
site keeps, so a bookmark made on either shows on both. 401 `SIGNED_OUT`, 404 `NOT_FOUND`.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (query, string)
- `X-Delegate-Session` (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.

### POST /v1/public/live/{slug}/me/bookmarks

Public add bookmark

Bookmark a caption block: appends one line to the delegate's event note in the
customer site format. Send `clock` ("m:ss" or "HH:MM") or `at` (the caption's Unix time). A block
already bookmarked (its line contains one of `parts`, or `text`) is returned with
`created: false` and status 200 instead of a second line. 401 `SIGNED_OUT`, 404
`NOT_FOUND`, 422 `TEXT_REQUIRED` / `CLOCK_REQUIRED` / `NOTE_FULL` (the note's 10,000
characters), 429 `TOO_MANY_REQUESTS`.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

Body (JSON):

- `session_id` (string, required): The id of the session this relates to.
- `text` (string, required): The caption text to bookmark.
- `speaker` (string): The name of the person speaking.
- `clock` (string): The time as the page shows it, such as 12:34.
- `at` (number): When it happened, as an ISO 8601 date and time.
- `parts` (array of string): The caption lines that make up the block, so a longer block is not saved twice.

Responses:

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

### DELETE /v1/public/live/{slug}/me/bookmarks/{bookmark_id}

Public remove bookmark

Remove a bookmark (its `id` from the list) from the delegate's event note; every other
line of the note stays as it is. Idempotent (204). 401 `SIGNED_OUT`, 429
`TOO_MANY_REQUESTS`.

Scope: any key

Parameters:

- `bookmark_id` (path, string, required)
- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

Responses:

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

### POST /v1/public/live/{slug}/activity

Public activity

Store up to 50 interactions of the signed-in delegate (`X-Delegate-Session`, or
`"session"` in the body for a beacon; never in the address). Body `{"items": [...]}` as
JSON; `text/plain` is accepted too, for navigator.sendBeacon. Each item: `type`
(lower-case dotted, e.g. `session.opened`), optional `occurred_at`, `session_id` (a session
of this event) and `payload` (≤ 4 KB). Bad items are dropped and counted, never an error.
401 `SIGNED_OUT`, 413 over 64 KB, 422 when the body is not a batch, 429 when sent too
often.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `X-Delegate-Session` (header, string)

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.

### GET /v1/events/{event_id}/live-qa/settings

Get live Q&A settings

Which talks have Live Q&A and polls on, and how questions are handled.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

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.

### PUT /v1/events/{event_id}/live-qa/settings

Put live Q&A settings

Update the Q&A and poll settings; omitted fields are unchanged and every other
live-page setting is kept. Session ids not on this event are dropped. Q&A and Polls are
separate premium features: returns 403 `NOT_ENTITLED` when the account has neither, when
`qa_sessions` is not empty without Q&A, or when `poll_sessions` is not empty without
Polls.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)

Body (JSON):

- `qa_sessions` (array of string): The ids of sessions that have Q&A switched on.
- `poll_sessions` (array of string): The ids of sessions that have polls switched on.
- `qa_closed_sessions` (array of string): The ids of sessions whose Q&A is closed by hand.
- `qa_moderated` (boolean): Whether questions need approval before attendees see them.
- `qa_anonymous` (boolean): Whether attendees can ask without giving a name.
- `qa_translate` (boolean): Whether questions are translated for other languages.
- `qa_close_on_end` (boolean): Whether Q&A closes when the session ends.
- `qa_auto_open` (boolean): Whether Q&A opens automatically when the session goes live.
- `qa_off_sessions` (array of string): The ids of sessions where Q&A is switched off by hand.
- `qa_reopened_sessions` (array of string): The ids of sessions where Q&A is reopened by hand.

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.

### GET /v1/events/{event_id}/live-qa/sessions

Live Q&A sessions

Every session of the event with its Q&A state now: `off`, `not_open` (opens when the
session goes live), `open` or `closed`. `mode` says whether the automatic rule decided it
(`auto`) or someone did by hand (`manual`); a choice made by hand always wins.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)

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.

### POST /v1/events/{event_id}/sessions/{session_id}/live-qa/state

Set live Q&A session state

Act on one session's Q&A by hand: `on`, `off`, `open` (now), `close` (now) or `reopen`.
This overrides the automatic rule for that session. Returns every session's state. 403
`NOT_ENTITLED` when the account does not have Q&A.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

Body (JSON):

- `action` (string, required): on, off, open, close or reopen.

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.

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

Public interactive

Which talks have Q&A and polls on, for the attendee page to show its tabs. A feature
the account does not have is reported as off on every talk.

Scope: any key

Parameters:

- `slug` (path, string, required)

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.

### GET /v1/public/live/{slug}/sessions/{session_id}/qa

Public questions

A talk's questions: live and answered ones, plus this device's own pending ones
(``mine``). ``text`` is in ``lang`` when a translation exists.

Scope: any key

Parameters:

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

### POST /v1/public/live/{slug}/sessions/{session_id}/qa

Public ask

Ask a question. It waits for a moderator (``pending``) when the event moderates
questions, else goes straight up (``live``). 403 `QA_OFF` when Q&A is not on for the talk
(or not enabled for the account) / `QA_CLOSED`, 422 for an empty or too-long question or a
missing name when names are required, 429 when asking too often.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (path, string, required)
- `token` (query, string)
- `X-Delegate-Session` (header, string)

Body (JSON):

- `client_id` (string, required): The client id.
- `text` (string, required): The question, up to 2000 characters.
- `name` (string): Optional name shown with the question, up to 80 characters.
- `lang` (string): The language the question is written in, as a language code.

Responses:

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

### PATCH /v1/public/live/{slug}/sessions/{session_id}/qa/{question_id}

Public edit question

Edit your own question until it is answered. With moderation on, an edited question
that was already up goes back to the moderator (``pending``).

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (path, string, required)
- `question_id` (path, string, required)
- `token` (query, string)

Body (JSON):

- `client_id` (string, required): The client id.
- `text` (string): The new question text, up to 2000 characters.
- `name` (string): The new name shown with the question, up to 80 characters.

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.

### DELETE /v1/public/live/{slug}/sessions/{session_id}/qa/{question_id}

Public delete question

Delete your own question (until it is answered).

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (path, string, required)
- `question_id` (path, string, required)
- `client_id` (query, string, required)
- `token` (query, string)

Responses:

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

### POST /v1/public/live/{slug}/sessions/{session_id}/qa/{question_id}/vote

Public vote question

Upvote a live question, or take the vote back (a toggle; one vote per device).

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (path, string, required)
- `question_id` (path, string, required)
- `token` (query, string)
- `X-Delegate-Session` (header, string)

Body (JSON):

- `client_id` (string, required): The client id.

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.

### GET /v1/public/live/{slug}/sessions/{session_id}/polls

Public polls

A talk's open and closed polls, newest first, with results when the moderator shows
them (always once closed) and this device's own answer.

Scope: any key

Parameters:

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

### POST /v1/public/live/{slug}/sessions/{session_id}/polls/{poll_id}/vote

Public poll vote

Answer a poll, or change your answer, while it is open. ``choices``: one option index
(single), one or more distinct indexes (multiple) or one score 1–5 (rating).
403 `POLLS_OFF` when polls are not on for the talk (or Polls is not enabled for the
account); 409 `POLL_CLOSED` once closed; 422 `INVALID_CHOICES`.

Scope: any key

Parameters:

- `slug` (path, string, required)
- `session_id` (path, string, required)
- `poll_id` (path, string, required)
- `token` (query, string)
- `lang` (query, string)
- `X-Delegate-Session` (header, string)

Body (JSON):

- `client_id` (string, required): A random id the attendee's browser keeps, so one device votes once.
- `choices` (array of integer, required): The positions of the chosen options, starting at 0; for a rating, the score.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/live-qa/questions

Moderator questions

Every question on a talk (or one ``status``), oldest pending first, then by votes.
With ``lang`` (the moderator's reading language), ``translated_text`` is filled where a
translation exists; missing ones are requested and arrive as a `qa` `updated` message.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `lang` (query, string)
- `status` (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.

### PATCH /v1/events/{event_id}/live-qa/questions/{question_id}

Moderator update question

Approve (`live`), dismiss, mark `answered`, undo (`live`/`pending`), and put a question
on the room screen (`on_screen`: one per talk; setting it takes it off any other).
Only live or answered questions can be on screen; a status change away from those takes it
off. Marking a question `answered` sets its `answered_at`; moving it to any other status
clears it.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `question_id` (path, string (uuid), required)

Body (JSON):

- `status` (string): The item's current status; the allowed values depend on the endpoint.
- `on_screen` (boolean): Whether the question is shown on the room screen.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/live-qa/polls

Moderator polls

Every poll on a talk (drafts included) with live results, in running order.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

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.

### POST /v1/events/{event_id}/sessions/{session_id}/live-qa/polls

Moderator create poll

Create a draft poll. single/multiple need 2–12 answers; rating is a 1–5 score.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

Body (JSON):

- `question` (string, required): The poll question, up to 300 characters.
- `kind` (string): single (one answer), multiple (several answers) or rating (a score from 1 to 5).
- `options` (array of string): The answer choices, up to 12; leave empty for a rating poll.
- `show_results` (boolean): Whether attendees can see the results while the poll is open.
- `position` (integer): Where this item appears in its list; lower numbers come first.

Responses:

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

### PATCH /v1/events/{event_id}/live-qa/polls/{poll_id}

Moderator update poll

Edit a poll. Wording, kind and answers only while it is a draft (409 `POLL_STARTED`);
``show_results`` and ``position`` any time.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `poll_id` (path, string (uuid), required)

Body (JSON):

- `question` (string): The poll question, up to 300 characters.
- `kind` (string): single (one answer), multiple (several answers) or rating (a score from 1 to 5).
- `options` (array of string): The answer choices, up to 12.
- `show_results` (boolean): Whether attendees can see the results while the poll is open.
- `position` (integer): Where this item appears in its list; lower numbers come first.

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.

### DELETE /v1/events/{event_id}/live-qa/polls/{poll_id}

Moderator delete poll

Delete a poll and its answers. An open or closed poll disappears from attendees' pages.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `poll_id` (path, string (uuid), required)

Responses:

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

### POST /v1/events/{event_id}/live-qa/polls/{poll_id}/open

Moderator open poll

Open a poll (a draft, or reopen a closed one). Its wording is translated into the
event's languages as it opens. 403 `NOT_ENTITLED` when Polls is not enabled for the
account; 409 `POLLS_OFF` when polls are not on for the talk.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `poll_id` (path, string (uuid), required)

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.

### POST /v1/events/{event_id}/live-qa/polls/{poll_id}/close

Moderator close poll

Close an open poll: no more answers; attendees see the final results.

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `poll_id` (path, string (uuid), required)

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.

### GET /v1/events/{event_id}/sessions/{session_id}/live-qa/export.csv

Moderator export

Download a talk's questions and poll results as CSV. Two sections: questions (every
status, with votes, name and language) and polls (one row per answer, with counts).

Scope: content_edit or event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

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.

### GET /v1/events/{event_id}/live/now

Live now

What is happening now, per room: the session on stage, the devices following its live
captions or translation now (`devices_now`), at its peak (`devices_peak`, most at the same
time) and in all (`devices_total`), its question counts, the open poll with its votes, and
the next session in the room. Device counts are anonymous browser ids, never people.
`stream_connections_now` is the event's open caption streams this moment (null in a replay
or when unavailable). Poll it every 15-30 s; it reads stored rows only.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Replay a past moment (ISO 8601); default now.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/live/timeline

Live timeline

A session's live Q&A and polls on a clock, so a site can replay the live page of an ended
session from real data: each moderated question with the second (from the session start)
it was asked and the second of each upvote, and each poll with when it opened and closed
and every answer's second and choices. Question text and counts only, never who asked.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `session_id` (path, string (uuid), required)

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.

### POST /v1/events/{event_id}/engagement

Post engagement

Record what visitors did on the event site, in batches of up to 500: `session_view`,
`report_download`, `quote_share`, `ask_citation`, `logo_impression` or `photo_view`, with
where (`surface`), when (`at`), the browser's random `anon_id` and optionally the session
and sponsor. Anonymous by default: a `delegate_account_id` is kept only with
`consented: true`. Bad items are rejected one by one (`rejected[].code`); the rest are
stored. 429 RATE_LIMITED past 600 batches per 10 minutes per organisation.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `events` (array of EngagementItem, required): The engagement events to record, up to 500 per call.

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.

### GET /v1/events/{event_id}/engagement/stats

Engagement stats

Counts of the site engagement recorded for the event, grouped by session, sponsor or
type: distinct interactions (`count`: each visitor once per type, session and sponsor,
however often the site sent it) and distinct visitors (`visitors`: the signed-in delegate's
account when sent, else the browser's anon_id). Only what the site posted here counts,
never delegates' activity capture. Counts only; no rows, ids or people.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `group_by` (query, one of session, sponsor, type)
- `type` (query, string): Only this engagement type.
- `as_of` (query, string (date-time)): Count only events up to this moment.

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.
