# Event insights

Insights snapshot, stats, themes, analysis and cited answers from the event.

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

### GET /v1/events/{event_id}/hub/insights

Hub insights

The event's Insights snapshot: minutes and words transcribed, themes with share and the
session x theme grid, sentiment, cross-session and per-session debates, risks and
opportunities by category, companies/technologies/products named, theme detail, takeaway
and quote themes, quotes with speaker and moment, airtime, and a row per session.

The first read of an event with no snapshot returns **202** `{status: "building"}` and
queues the build; read again shortly (202 `{status: "failed"}` when it failed; it is
retried after twenty minutes). Once built, the response is 200 `status: "ready"`; when the
inputs have changed since, it is served with `stale: true` while one rebuild is queued.
`as_of` limits every per-session list to sessions that had ended by then (theme shares and
entity mentions stay whole-event).

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

Responses:

- 200: Successful Response
- 202: Not built yet: building.
- 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}/hub/analysis-snapshot

Hub analysis snapshot

The Insights snapshot in a compact `{status, built_at, data}` shape, with `data`
= content (minutes, words, minutes per session), themes (share, sessions with weight and
mentions, the session themes and the takeaways/opportunities under each), cross-session
debates (two sides each), risks, companies and technologies with the analysis lines that
name them, sentiment per session, and quotes with speaker, moment and theme keys.

Same build behaviour as `/hub/insights`: 202 with `data: null` until the first build is
done; while a rebuild runs, `status: "building"` with the previous `data`.

Scope: read

Parameters:

- `event_id` (path, string, required)

Responses:

- 200: Successful Response
- 202: Not built yet: building.
- 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}/hub/insights/build

Build hub insights

Queue a forced rebuild of the event's Insights snapshot (one synthesis call). The current
snapshot keeps being served until the new one is ready. Not counted against the daily
automatic-build limit. When a build is already queued or running (started less than twenty
minutes ago) nothing more is queued and the answer is the same 202.

Scope: content_review

Parameters:

- `event_id` (path, string, required)

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}/stats

Event stats

Headline figures for the event site: sessions (ended by `as_of`), recorded sessions,
minutes and words transcribed, speakers on stage, questions from the room (live and
answered) and their upvotes, polls run and votes, delegates (live bookings) and their
countries, plus a per-session series in running order with cumulative totals for
sparklines. Counts only, never who.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

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}/airtime

Event airtime

Speaking time per roster speaker, from the diarised transcripts and their speaker
mappings: seconds spoken and the sessions they spoke in, most first. Unmapped voices and
the audience are left out.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

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}/entities

Event entities

Companies, products and technologies named in the sessions' analyses, with spelling and
case variants merged, mentions summed and the sessions that named them, most mentioned
first.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `type` (query, string): company | product | technology; all three when omitted.
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

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}/debates

Event debates

Where the stage disagreed: `cross_session` debates from the Insights snapshot (each
side cites the sessions that hold it) and every session's own debates from its analysis
(`sessions`), each side with its speakers, quote and the moment it was said.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

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}/takeaways

Session takeaways

A session's summary and takeaways as structured JSON, each takeaway with the
approximate moment it was said (`offset_sec`). From the Live Session Takeaways report
when built (`source: live_takeaways`, `approved` says whether an editor signed it off),
else the approved Session Report (`source: session_report`); empty otherwise.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/quotes

Session quotes

A session's quotes: social highlights (quote, statistic, insight) and pull quotes, each
located in the diarised transcript for its speaker and moment (`timestamp_seconds`).

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.

### GET /v1/events/{event_id}/quotes/search

Search quotes

Search the event's quotes by words, theme, speaker and session, in running order.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `q` (query, string): Every word must match the quote, its speaker, their role or company, or the session title.
- `theme` (query, string): A theme key from the snapshot.
- `speaker_id` (query, string (uuid))
- `session_id` (query, string (uuid))
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.
- `limit` (query, integer)

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}/quotes/{quote_id}

Get quote

One quote by its stable `quote_id` (for a share link). 404 when it no longer exists.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `quote_id` (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/events/{event_id}/sessions/{session_id}/brief

Session brief

A one-page session brief: summary, takeaways, up to two short quotes, the session's
themes (strongest first), its tone and speakers. Each part names its source.

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.

### GET /v1/events/{event_id}/days/{day}/review

Day review

A day in review (`day` = YYYY-MM-DD in the event's time zone): totals of the day's
sessions that had ended by `as_of`, its top three themes, three takeaways from the
sessions with the most questions, and a quote.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `day` (path, string (date), required)
- `as_of` (query, string (date-time)): Only sessions that had ended by this time (ISO 8601) count.

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}/hub/usage

Hub usage read

How registered delegates use the Insider Hub: active delegates and returners, page views
and tabs, Ask questions, downloads, saves, connections, session registrations, themes
followed, a day-by-day series, top sessions, what people ask and search for, and why.
Aggregates only: an Ask topic or search term is listed once five different delegates used
it (decision D90); fewer are counted in `suppressed`. No names or question text.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `period` (query, string): whole, or before / during / after the event's live window.
- `scope` (query, string): event = this event; all = every event of the organisation with Insider Hub activity.

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}/preregistration-stats

Preregistration stats

Sessions › Pre-registrations stats: places taken of places offered on the sessions
with places, each session's fill (programme order), open and fully booked sessions and
the open one closest to full, the latest masterclass invitation and the places taken
since, and delegates holding at least one place out of the confirmed accounts. Cancelled
places and cancelled or unpaid bookings are not counted.

Scope: read

Parameters:

- `event_id` (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/events/{event_id}/saved-session-stats

Saved session stats

Sessions › Saved sessions stats: saves (each delegate once per session, live bookings
only) and the delegates who made them, saves per day, the most saved sessions, the share
of confirmed delegates who saved one, and `where` each save was first made (`webpage`,
`website`, or `not_recorded`).

Scope: read

Parameters:

- `event_id` (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/events/{event_id}/poll-stats

Poll stats

Engagement › Polls stats: polls by state (closed, open, ready), votes (one per device
per poll) in total, per poll in the order they ran and per session, and the spread and
average of 1–5 ratings.

Scope: read

Parameters:

- `event_id` (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/events/{event_id}/qa-stats

Qa stats

Engagement › Q&A stats: questions (dismissed ones included) in total and per hour of
the day in event time, by state (answered, live, waiting, dismissed), upvotes (one per
device per question) and the most upvoted question, and the sessions with the most
questions.

Scope: read

Parameters:

- `event_id` (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/events/{event_id}/themes

List themes

The event's themes in order, each with its share of the event (0-100; the listed themes
sum to ~100), its session count and the sessions under it (weight and weighted mentions).
`basis` says whether shares come from the analysis (`mentions`) or, before the day, from
the programme placement (`weight`). `?status=approved` for what a public site shows.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `status` (query, string): Only themes with this status (`approved` for a public site).

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}/themes

Replace themes

Replace the whole list, e.g. to import the organiser's published editorial themes
(`source: "editorial"`). Order is list order. A theme whose key (or, without a key, name)
matches an existing one keeps its id and session placement; every other theme is removed.
Status defaults to `approved` (the organiser published them). Editorial themes take
precedence: Audiobly no longer proposes for this event.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `map` (query, boolean): Map the sessions under the new list straight away.

Body (JSON):

- `themes` (array of ThemeIn, required): The event's themes, in order.
- `source` (one of editorial, organiser): editorial or organiser; the default is editorial.

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}/themes

Add theme

Add one theme (`source` organiser by default, status approved unless given). Goes at the
end unless `position` is given. 409 `THEME_EXISTS` when the key is taken.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `key` (string): Slug; made from the name if left out.
- `name` (string, required): The theme's name, up to 120 characters.
- `short_name` (string): A shorter name for tight spaces; up to 40 characters.
- `blurb` (string): A short promotional line shown on the public page.
- `image_url` (string): Address of the image.
- `status` (one of proposed, approved): proposed or approved.
- `source` (one of editorial, organiser): editorial or organiser.
- `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.

### GET /v1/events/{event_id}/themes/matrix

Theme matrix

Sessions x themes in running order, for timelines and heatmaps: `themes` lists the keys
(and `theme_names`, `shares`) in order; each row has `cells` (weighted mentions per theme)
and `weights` (0-1 per theme) in that same order.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `status` (query, string): Only themes with this status (`approved` for a public site).
- `mapped_only` (query, boolean): Leave out sessions under no theme.

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}/themes/{key}

Theme detail

One theme's dossier: its sessions (most said first) with title, time and the analysis
evidence behind the placement (topics, themes, opportunities, risks); quotes from those
sessions, best first; `by_day` (weight, mentions and sessions per day); `voices` (roster
speakers in those sessions by seconds spoken, with quote counts) and the other themes.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `key` (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.

### PATCH /v1/events/{event_id}/themes/{key}

Update theme

Edit a theme: name, short name, blurb, image URL, position or status (`approved` to
accept a proposal). The key never changes. An AI theme that is edited or approved is
never replaced by a later proposal.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `name` (string): The theme's new name, up to 120 characters.
- `short_name` (string): A shorter name for tight spaces; up to 40 characters.
- `blurb` (string): A short promotional line shown on the public page.
- `image_url` (string): Address of the image.
- `position` (integer): Where this item appears in its list; lower numbers come first.
- `status` (one of proposed, approved): proposed or approved.

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}/themes/{key}

Delete theme

Delete a theme and its session placement.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `key` (path, string, 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.

### GET /v1/org-units/{org_unit_id}/themes

Org unit theme series

The series view: each theme's share per edition (event) and its trend between the two
latest editions. Themes are matched across editions by key, else by name. Editions are the
unit's events (and those of the units beneath it), oldest first.

Scope: read

Parameters:

- `org_unit_id` (path, string (uuid), required)
- `editions` (query, string): Comma-separated event ids, in any order. Default: every event under the unit that has themes.
- `status` (query, string): Only themes with this status (`approved` for a public site).

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/themes/series

Theme series

The series view for any set of the organisation's events (e.g. last year's and this
year's edition when they sit under no org unit). Same shape as the org-unit series.

Scope: read

Parameters:

- `editions` (query, string, required): Comma-separated event ids (2-12).
- `status` (query, string): Only themes with this status (`approved` for a public site).

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}/themes/order

Order themes

Set the order: the listed keys first, in that order; any theme left out follows in its
current order. 422 when a key is unknown.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `keys` (array of string, required): The theme keys, 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.

### POST /v1/events/{event_id}/themes/{key}/image

Upload theme image

Upload the theme's image (PNG, JPG or WEBP, under 10 MB); it is stored and served from a
stable `/v1/media/...` URL, set as the theme's `image_url`.

Scope: prep_manage

Parameters:

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

Body (multipart form):

- `file` (string, required): The file to upload.

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}/themes/{key}/image

Delete theme image

Remove the theme's image.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `key` (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.

### PUT /v1/events/{event_id}/themes/{key}/sessions

Set theme sessions

The organiser decides which sessions sit under the theme (source `organiser`). Later
mappings keep exactly these sessions; their weight and mentions still come from the content
when there are some. An empty list clears the theme's sessions.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `session_ids` (array of string (uuid), required): 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.

### POST /v1/events/{event_id}/themes/propose

Propose themes

Ask Audiobly to propose the event's themes from its programme, the optional eBook text
(`source_text`) and, once sessions are analysed, the analysis. Returns the list with the
new proposals as `proposed`. Nothing is proposed when the organiser's editorial themes are
in use, or (without `replace`) when nothing changed or the organiser has already approved
or edited themes. `map` (default true) also places the sessions under them. Takes up to a
minute; one AI call per proposal, cached.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `source_text` (string): The event's eBook or other organiser text.
- `replace` (boolean): Ask again even when nothing changed.
- `map` (boolean): Also map the sessions under the themes.

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}/themes/map

Map theme sessions

Recompute which sessions sit under each theme from the event's own content: the
analysis for analysed sessions, the programme for the rest. Organiser placements are kept.
Free when nothing changed since the last mapping (cached); otherwise one AI call.

Scope: prep_manage

Parameters:

- `event_id` (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/events/{event_id}/analysis

Trigger analysis

Run all: queue every analysable session plus the event-scope pass/aggregate.

Scope: content_review

Parameters:

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

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}/analysis

List analysis

List an event's transcript analyses (topics, entities, themes, sentiment) at event and
session scope, paginated. Pass `current=true` to get only what Insights shows: the merged
event analysis plus each session's newest analysis.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `limit` (query, integer)
- `offset` (query, integer)
- `current` (query, boolean)

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}/analysis

Trigger session analysis

Run analysis for a single session.

Scope: content_review

Parameters:

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

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}/analysis/status

Analysis status

Per-session (and event-scope) analysis status: run/queued/processing/done/failed,
live progress %, and queue position (rank/total) for anything waiting.

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}/analysis/{scope}

Get analysis by scope

Get an event's analyses for one scope (`event` or `session`), optionally narrowed to a
single `session_id`. Returns 404 NOT_FOUND if none exist yet.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `scope` (path, AnalysisScope, required)
- `session_id` (query, string (uuid))

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}/insights/ask

Insights ask

Insights AI: a grounded natural-language answer over this event's content and insights —
answer, evidence, drivers, recommendation, and a computed confidence. Never fabricates.

Scope: any key

Parameters:

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

Body (JSON):

- `question` (string, required): The question text.

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}/ask

Ask a question

Ask the event: a short written answer to a delegate's question, taken ONLY from this
event's own sessions (the signed-off transcripts and the published analysis: summaries,
takeaways, themes, opportunities, risks and pull quotes), with numbered sources.

Every `[n]` in `answer` is one entry of `citations` (session, speaker, the moment in the
recording as `offset_sec`/`end_sec` when known, and at most about 40 quoted words). Markers
the writer invented are removed before you see them. When the sessions don't cover the
question the answer says so (`refused_reason: "not_covered"`) and nothing is written.
`confidence` is computed from the sources (how many, from how many sessions, any uncited
sentence), not the writer's opinion.

Scope with `session_ids` (one session's "ask about this session" box) and `as_of` (only
sessions that started before it). `mode: "moments"` returns the matching transcript
moments instead of a written answer (no AI writing); `include_moments: true` adds them to
a written answer.

Send `delegate_account_id` for a signed-in delegate: 30 questions a day per delegate and
60 a minute per organisation (`429 TOO_MANY_REQUESTS` with `Retry-After`); every response
carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (seconds) for
the tighter of the two. The question is stored for "recent questions" and citation counts;
the delegate's activity gets `ask.asked` with ids and counts only. `event_id` may be the
full id or the short id fragment. Requires the organisation's API key (403
API_KEY_REQUIRED), which comes with the Enterprise plan.

Scope: read

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `question` (string, required): The delegate's question. Up to 500 characters are answered; a longer one is refused with `refused_reason: "too_long"` (no answer is written).
- `session_ids` (array of string (uuid)): Answer only from these sessions of the event (404 if one is not part of it).
- `session_id` (string (uuid)): One session (the session page's ask box); the same as session_ids=[id].
- `show_in_recent` (boolean): false keeps this question out of "recent questions" whatever it is; true or left out: listed when it qualifies (a cited answer, short, no personal data).
- `as_of` (string (date-time)): Only sessions that started before this time are searched (the days so far).
- `max_citations` (integer): At most this many sources are cited.
- `delegate_account_id` (string (uuid)): The signed-in delegate the site asks for. Must be an account of your organisation (404 otherwise). Applies the per-delegate daily limit and records `ask.asked` activity (ids and counts only, never the question).
- `include_moments` (boolean): answer mode: also return the matching transcript moments in `moments` (found without AI, like moments mode), for a "From the transcripts" panel.
- `mode` (one of answer, moments): `answer` (default): one written answer citing numbered sources. `moments`: no written answer and no AI writing at all; the transcript moments that match the question, plus `related_topics` when nothing matches.

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}/ask/recent

Ask recent

Recent questions delegates asked of this event, newest first, for a "Recent questions"
list: only questions that got a cited answer, at most 140 characters, without duplicates
(ignoring case and punctuation), and never one that looks like it contains personal data
(an email address, a phone number or a link). Never says who asked.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `limit` (query, integer)

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}/ask/suggestions

Ask suggestions

Four suggested questions for the Ask box, written from this event's own themes and
takeaways (prepared once per version of the event's content and kept), each checked to be
answerable from the sessions. When the writer is unavailable they are made from the
event's top themes. Empty when nothing can be searched yet. With `with_answers=true` each
suggestion also carries its answer (the same shape as `POST /ask`), prepared once and then
served from the cache, so a page can show them instantly; these are not stored as
delegates' questions.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Only sessions that started before this
- `with_answers` (query, boolean): Also return each suggestion's answer (prepared once, then cached)

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}/ask/citations

Ask citations

How often each session was cited by Ask the event: per session, the number of answered
questions that cited it (counts only, most cited first; never the questions or who asked).
Optional `since`/`until` limit when the questions were asked.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `since` (query, string (date-time))
- `until` (query, string (date-time))

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.
