# Sessions

The programme: talks, panels and their speakers, times and rooms.

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

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

Create session

Add a session to the event (201). The event's sessions are then re-sorted into programme
order by start time. 422 if `title` is blank; 404 if the track or location is not part of
the event.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `title` (string, required): The title shown to attendees.
- `starts_at` (string (date-time)): When it starts, as an ISO 8601 date and time.
- `ends_at` (string (date-time)): When it ends, as an ISO 8601 date and time.
- `session_type` (string): The kind of session, such as keynote, panel or workshop.
- `description` (string): A short description shown to people browsing the event.
- `summary_word_count_override` (integer): Target length, in words, for this item's summary; null uses the event or account default.
- `track_id` (string (uuid)): The track this session belongs to.
- `location_id` (string (uuid)): The room or location where this session takes place.
- `language` (string): The spoken language, as a language code such as en.
- `capacity` (integer): How many people can register for the session.

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

List sessions

Paginated sessions of the event in programme order, each with its speakers, whether it has
a transcript (and its duration), and when review opens if a live capture is still awaiting
its full-audio transcript.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `limit` (query, integer)
- `offset` (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}/sessions/{session_id}

Get session

Fetch one session by id (the same shape as an item in the list) — a canonical single
read for API consumers that already hold a session id.

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.

### PUT /v1/events/{event_id}/sessions/{session_id}

Update session

Update a session; only the fields sent are changed. Changing `starts_at` re-sorts the
event's sessions into programme order. 422 if `title` is set blank; 404 if the track or
location is not part of the event.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `title` (string): The title shown to attendees.
- `starts_at` (string (date-time)): When it starts, as an ISO 8601 date and time.
- `ends_at` (string (date-time)): When it ends, as an ISO 8601 date and time.
- `session_type` (string): The kind of session, such as keynote, panel or workshop.
- `description` (string): A short description shown to people browsing the event.
- `position` (integer): Where this item appears in its list; lower numbers come first.
- `track_id` (string (uuid)): The track this session belongs to.
- `location_id` (string (uuid)): The room or location where this session takes place.
- `language` (string): The spoken language, as a language code such as en.
- `capacity` (integer): How many people can register for the session.

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}/sessions/{session_id}

Delete session

Delete one session (204). Its speaker links and any session-level transcripts,
analyses, reports, assets and pull quotes are deleted with it; the event's speakers are
kept. 404 if the event or session is not found.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_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}/sessions/agenda

Upload agenda

Upload an agenda/programme as plain text; creates ordered sessions and
pre-creates the speaker/moderator roster identified in it. With ?replace=true,
sessions no longer in the agenda that have no uploaded audio are removed, so a
re-uploaded programme replaces the old skeleton without destroying uploads.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `replace` (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/agenda:preview

Preview agenda

Preview what uploading this agenda/programme text would do, without saving anything:
the sessions it sets (each marked new or existing), the speakers it would add and, with
?replace=true, the titles of the sessions it would remove. Takes the same body as
POST /agenda; a person reviews this, then sends the same text to POST /agenda.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `replace` (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/agenda:ai-extract

Extract an agenda with AI

LLM extraction of a messy, multi-track / multi-day agenda into a structured programme
(tracks + sessions + speakers) for preview. Does NOT write anything — the caller reviews
the result and calls agenda:ai-apply to commit it.

Scope: prep_manage

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/agenda:ai-apply

Apply an AI-extracted agenda

Commit a (reviewed) structured programme from agenda:ai-extract: create tracks,
day-dated sessions and the speaker roster. Sessions match by title so re-applying
re-times instead of duplicating.

Scope: prep_manage

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/match-files

Match files

Propose which session each (not yet uploaded) audio/video file belongs
to, using timestamps or identifiers in the filenames and the agenda.

Scope: any key

Parameters:

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

Body (JSON):

- `filenames` (array of string, required): The file names to match against the event's sessions.

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/shift

Shift sessions

Move the whole programme by `days` (negative: earlier), each session keeping its time of
day. Used when the event's start date changes on Overview: Day 1 moves to the new date.
Sessions without a time are left alone. The event's own dates are not changed here.
Returns `moved`, the number of sessions moved (0 when `days` is 0).

Scope: prep_manage

Parameters:

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

Body (JSON):

- `days` (integer, required): Whole days to move every session by; negative moves the programme earlier.

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/reorder

Reorder sessions

Set the order of the event's sessions. `session_ids` must list every session of the event
exactly once (422 otherwise); returns the sessions in their new order.

Scope: prep_manage

Parameters:

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

### DELETE /v1/events/{event_id}/sessions/{session_id}/audio

Clear session audio

Remove a session's audio and everything derived from it, reverting the session to PENDING
('Missing', awaiting a fresh upload) — WITHOUT deleting the session, its programme slot or its
speakers.

This is the Source-tab action for a failed or wrong upload: the user wants to clear the audio and
re-upload, NOT lose the session. (Deleting the whole session lives on the programme tab.)
Idempotent — a session that already has no audio is simply left at PENDING. A failed upload
usually has none of the derived rows; they're cleared defensively so a re-upload starts clean.
Transcript deletes cascade their own dependents (edits/suggestions) at the DB level, exactly as
whole-session deletion relies on.

A live capture is part of what gets cleared. An editor pressed Go live by accident, stopped,
and could then never capture the real session: the capture tool allows one capture per
session and reported "already captured", and removing the transcript here left the capture
row behind, so nothing reset it (production, 2026-09-15). The capture and its segments and
speaker names go too — but never one still running: stopping a live room from another
screen would silently cut its transcript off.

Scope: prep_manage

Parameters:

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

### PUT /v1/events/{event_id}/sessions/{session_id}/speakers

Update session speakers

Replace the set of speakers (with per-session roles) assigned to a session.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `speakers` (array of SessionSpeakerAssignment, required): The speakers on this session, each with a speaker id and an optional role.

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

Retranscribe a session

Re-run transcription for this session (synchronous, byte upload). Useful
to regenerate a transcript — e.g. to pick up the paragraph-block formatting.

A re-run REPLACES every transcript version of the session, so on a session editors
have picked up (IN_REVIEW or later) it would silently throw their edits away. That
needs an explicit ``confirm_discard_edits=true``; without it the call is refused (409).

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `confirm_discard_edits` (query, boolean)

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}/sessions/{session_id}/media-url

Session media URL

Presigned URL for a session's media so the reviewer can play it alongside the
transcript. Serves `audio_url` (the demuxed/working track) and falls back to the original
upload, which may be a video. NB despite an older docstring here, this is not redacted
audio — `redacted_audio_url` is never written anywhere in the pipeline. `kind` (audio/video) is derived from the file extension so the UI picks the right
player.

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.

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

Session download

The session's media as a file worth keeping: MP3 for audio, MP4 for video.

What is stored is not what a customer can use. A live capture is WebM/Opus because that
is what a browser records, and WebM opens in almost nothing outside a browser; an upload
may be a MOV or a WAV. The conversion happens once, in the background, and is kept beside
the original — so the first request answers "preparing" and later ones are instant.

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.

### GET /v1/events/{event_id}/sessions/{session_id}/speaker-mappings

List session speaker mappings

Which roster speaker each diarized label ("Speaker 0") is assigned to, for the
session's latest transcript.

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.

### PUT /v1/events/{event_id}/sessions/{session_id}/speaker-mappings

Assign session speaker

Assign (or reassign) a diarized label to a roster speaker for the session's latest
transcript. Upserts the mapping so re-assigning just swaps the speaker.

Scope: content_edit

Parameters:

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

Body (JSON):

- `diarized_label` (string, required): The speaker label the transcript uses, such as Speaker 0.
- `speaker_id` (string (uuid)): The id of the speaker.
- `label` (string): The label as shown in the transcript.

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}/transcript/download

Download transcript

Download the session's latest transcript in TXT/SRT/DOCX/PDF/JSON, with roster names
applied. `timestamps` toggles the clock in the human-readable formats.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `format` (query, string)
- `timestamps` (query, boolean)
- `lang` (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/events/{event_id}/sessions/{session_id}/transcript

Get session transcript

The session's latest transcript, or a specific `version`. 404 if the session has no
transcript (or no such version).

Scope: any key

Parameters:

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

### PUT /v1/events/{event_id}/sessions/{session_id}/transcript

Save session transcript

Save the edited session transcript as a new version; speaker assignments carry forward from
the previous version. `base_version` must equal the latest version (409 otherwise), and the
session must be IN_REVIEW (409).

Scope: content_edit

Parameters:

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

Body (JSON):

- `base_version` (integer, required): The transcript version you edited; the save is refused if someone else has changed it since.
- `full_text` (string): The complete transcript text.
- `utterances` (array of Utterance): The transcript's spoken segments in order, each with its speaker, time range and 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}/sessions/{session_id}/review/start

Start session review

Open a TRANSCRIPT_READY session for editing (moves it to IN_REVIEW). 409 CONFLICT if the
session is in any other status; 409 FULL_AUDIO_PENDING while a live capture's full-audio
transcript is still on its way (at most 10 minutes after the capture ended).

Scope: content_edit or content_review

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}/review/reject

Reopen session review

Send a session back one review step: REVIEWED returns to IN_REVIEW, IN_REVIEW returns to
TRANSCRIPT_READY. Requires the content review permission; 409 if the session is in neither
state.

Scope: content_review

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}/review/reopen

Reopen approved session

Reopen an APPROVED session for further editing.

Approval was a one-way door: an error found after sign-off could only be lived with,
or the session deleted and re-transcribed. Editing is gated on IN_REVIEW, so that is
where this returns the session — nothing else changes, and the reports already built
stay exactly as they are until the transcript is actually edited and re-approved.

Gated on can_approve rather than can_edit: undoing an approval is the approver's call,
not something any editor should be able to do to someone else's sign-off.

Scope: content_approve

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}/review/approve

Approve session

Approve a session that is IN_REVIEW or REVIEWED (moves it to APPROVED). Approval queues the
session's content assets and topic tagging and, where reports are enabled, its analysis.
On an event with Session snapshots on it also builds the final Session Report and publishes
it to the event site and Insider Hub without a separate report approval.
``final_report_queued`` is true when that final Session Report build was queued.
Requires the content approve permission; 409 if the session is not in review.

Scope: content_approve

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}/sessions/{session_id}/reports

List session reports

List every session-scoped report kind with its status and download URLs (present only when
the report is ready). Always returns them all: ``shown`` says which the event lists, and the
rest make up the report library it can add from.

Scope: asset_view

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}/reports/regenerate

Regenerate session reports

Rebuild the session's reports that someone has already built (nothing builds
automatically since 4 Oct 2026). Never builds a report nobody asked for. Ensures the session's analysis is current first — analyze_transcript skips a
transcript version it already analysed, so a re-run is cheap. (The Content tab builds one
report at a time with ``/reports/{kind}/build``; this stays for API callers and scripts.)

``profile`` picks the report models: "hybrid" (default) or "opus" (the all-Opus baseline, for
a side-by-side quality comparison). An unknown value falls back to hybrid.

Scope: asset_view

Parameters:

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

### POST /v1/events/{event_id}/sessions/{session_id}/reports/{kind}/build

Build session report

Build (or rebuild) ONE session report on request — how every report outside the
automatic set gets made, and how a failed automatic one is retried.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/sessions/{session_id}/reports/download-all

Download all session reports

Stream a zip of every ready session report PDF, one entry per report labelled by name.

Scope: asset_view

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}/sessions/{session_id}/reports/{kind}

Get session report

Return a signed download link (valid 24 hours) for one ready session report.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/reports/{kind}/text

Download session report text

The plain-text twin of a session report — the copy that goes into a Canva template.

Only the kinds the brief asks to supply "2 versions" of have one (Live Session Takeaways,
Social Media Highlights); the rest answer 404.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/sessions/{session_id}/reports/{kind}/approve

Approve session report

Record editorial sign-off and re-render the report without its draft band.

The brief makes human review mandatory before anything is published, and a finished-looking
PDF will be published. The re-render reads the stored payload, so approving costs no LLM
call — the artefacts are what was reviewed, minus the band.

Scope: asset_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/sessions/{session_id}/reports/{kind}/refresh-speakers

Refresh session report speakers

Re-draw a built report with the session's speakers as they are now (headshots, names,
job titles, companies). The written content and any approval stay exactly as they are; no
LLM call.

Scope: asset_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/sessions/{session_id}/reports/{kind}/unpublish

Unpublish session report

Undo a sign-off: put the draft band back and clear the stamp.

Costs no LLM call for the same reason approving doesn't — it re-renders from the stored
payload. Without it, the only way back from a mis-click was a full Regenerate.

Scope: asset_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (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}/reports/{kind}/export

Export session report

This report in a format it was not designed in — Word or plain text.

Each report is designed in one format (a branded PDF for these), so the others are a
second rendering of the same stored payload rather than a conversion of the artefact.
Generated per request instead of stored: no LLM call, one artefact per report in object
storage, and it cannot go stale against the payload.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `kind` (path, string, required)
- `format` (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}/sessions/{session_id}/transcript/import

Import session transcript

Import an existing transcript (no audio) and run it through the SAME pipeline a
transcribed one gets — only the ASR stages are skipped.

An import is text we did not produce, so it needs the treatment more than a transcribed
one does, not less: house spelling enforced, fillers stripped, and PII redacted. Storing
it raw meant an org with redaction switched on silently got un-redacted text, and the
customer's own keyterm vocabulary — the whole point of which is consistent house
spelling — never touched the words it was built for.

Versions mirror the audio path: v1 as supplied, v2 cleaned. A re-import replaces the
lot, like a re-transcribe.

Redaction is opt-in per organization (`pii_redact_imports`, default off). The customer
supplied this text and has already read it, so redacting by default cost the import its
synchronicity — and a stage that can fail — for little gain. Opted in, the session goes
through detect_session_pii exactly as transcribed audio does, adding v3 and walking
itself to TRANSCRIPT_READY; opted out, it is ready when this request returns.

Scope: content_edit

Parameters:

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

Body (JSON):

- `text` (string, required): The full transcript text to import.
- `run_analysis` (boolean): Whether to analyse the transcript after it is imported; the default is true.

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}/sessions/{session_id}/assets

List session assets

Content assets generated for this session (for example its summary), oldest first. Requires
the asset view permission.

Scope: asset_view

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}/assets/generate

Generate session assets

Regenerate the session's content assets from its latest transcript (202): the current
assets are deleted and a generation run is queued. 409 if the session has no transcript;
402 QUOTA_EXCEEDED once the plan's monthly generation cap is reached.

Scope: asset_manage

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}/sessions/{session_id}/assets/status

Session assets status

Latest per-session asset-generation run, so the UI can poll for completion (the
generate endpoint is fire-and-forget). The task logs this only when it finishes, so a run
whose started_at is newer than the caller's baseline means the triggered run is done.

Scope: asset_view

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}/reports/session-summary

Generate session summary report

Render the branded Session Summary report (attendee audience) for one session — the
four template sections from the session's analysis + transcript, in the event's resolved
brand (Audiobly default when unbranded). Returns the stable /v1/media download URL.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)
- `orientation` (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}/sessions/{session_id}/reports/pull-quotes

Generate session pull quotes report

Render the branded Pull Quotes report (attendee audience) for one session — 5–10
spec-compliant, shareable quotes extracted + attributed to the session's speakers.
Returns the stable /v1/media download URL.

Scope: any key

Parameters:

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