# Events

Create, list and update events, tracks, rooms, keyterms and glossaries.

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

### POST /v1/events

Create an event

Create an event (201). Send an `Idempotency-Key` header to make retries safe: a repeat with
the same key returns the existing event with 200. 402 QUOTA_EXCEEDED once the plan's
monthly event cap is reached; 404 if a referenced event type, industry or editor is not in
your organisation.

Scope: event_create

Parameters:

- `Idempotency-Key` (header, string)

Body (JSON):

- `title` (string, required): The title shown to attendees.
- `description` (string): A short description shown to people browsing the event.
- `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.
- `timezone` (string): The event's time zone as an IANA name, for example Europe/London.
- `venue` (string): Name of the place where the event is held.
- `city` (string): The city where the event takes place.
- `country` (string): The country where the event takes place.
- `languages` (array of string): The languages spoken at the event, as language codes.
- `event_date` (string (date-time)): The event's date and time, as an ISO 8601 date and time.
- `external_reference` (string): Your own reference for the event, such as an id from another system.
- `capture_integration` (string): Which live-capture source feeds this event: none, zoom, teams, webex or live. Null inherits the organisation setting.
- `human_review_required` (boolean): Whether a person must review generated outputs before they are approved; null inherits the setting.
- `auto_approve` (boolean): Whether outputs are approved automatically once generated; null inherits the setting.
- `pii_review_required` (boolean): Whether personal details found in a transcript must be reviewed before publishing; null inherits the setting.
- `speaker_verification_required` (boolean): Whether speaker names must be confirmed before publishing; null inherits the setting.
- `publish_automatically` (boolean): Whether approved outputs are published without a separate publish step; null inherits the setting.
- `brand_logo_url` (string): Address of the logo used on reports and pages; null inherits the setting.
- `brand_logo_dark_url` (string): Address of the logo version for dark backgrounds; null inherits the setting.
- `brand_primary_color` (string): Main brand colour as a hex value such as #1F4D3A; null inherits the setting.
- `brand_secondary_color` (string): Secondary brand colour as a hex value; null inherits the setting.
- `brand_font_heading` (string): Font used for headings in reports; null inherits the setting.
- `brand_font_body` (string): Font used for body text in reports; null inherits the setting.
- `brand_template_design` (string): The report design applied to this event's reports; null inherits the setting.
- `brand_report_copy` (object): Standard wording added to reports, such as a footer or disclaimer; null inherits the setting.
- `brand_voice` (string): A short description of the writing voice generated text should follow; null inherits the setting.
- `ai_model` (string): The model used to generate outputs; must be one of the models Audiobly offers, and null inherits the setting.
- `ai_language` (string): The language generated outputs are written in; null inherits the setting.
- `ai_writing_style` (string): The writing style for generated outputs; null inherits the setting.
- `ai_tone` (string): The tone for generated outputs; null inherits the setting.
- `ai_translation_enabled` (boolean): Whether generated outputs are also translated; null inherits the setting.
- `ai_translation_languages` (array of string): The languages generated outputs are translated into when translation is on; null inherits the setting.
- `ai_executive_audience` (boolean): Whether outputs are also written for an executive audience; null inherits the setting.
- `event_type_id` (string (uuid)): The event type that sets the event's default structure.
- `industry_id` (string (uuid)): The industry the event is classified under.
- `theme` (string): The event's overall theme or topic, as free text.
- `venue_note` (string): A short extra note about the venue, such as which entrance to use.
- `marketing_status` (string): Where the event stands in your marketing, as free text.
- `expected_attendees` (integer): How many people you expect to attend.
- `editor_id` (string (uuid)): The id of the team member assigned to edit this event.
- `keyterms` (array of string): Words and names the transcriber should recognise, such as product names and acronyms.
- `selected_assets` (array of string): The output types to generate for this event; leave null for the default set.
- `color` (string): The event's colour preset; the default is primary.
- `summary_word_count_override` (integer): Target length, in words, for this item's summary; null uses the event or account default.
- `org_unit_id` (string (uuid)): The brand or product this belongs to; leave empty to keep it at the account level.

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

List events

Paginated list of your organisation's events, newest first, optionally filtered by
`status`, by text in the title (`q`) and by date (`date_from`, `date_to`, inclusive).
Pass `include_counts=true` for per-event session and transcript counts.

Scope: any key

Parameters:

- `status` (query, EventStatus)
- `organization_id` (query, string (uuid)): Platform staff only: narrow to one customer's events. Ignored for everyone else, who are always pinned to their own organisation.
- `q` (query, string): Case-insensitive text that must appear in the event title.
- `date_from` (query, string (date)): Only events whose date (start, else event date) is on or after this day.
- `date_to` (query, string (date)): Only events whose date (start, else event date) is on or before this day.
- `include_counts` (query, boolean): Add `counts` to each event: sessions, sessions with a transcript, and transcripts an editor has signed off (reviewed or published).
- `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/assignable-editors

List assignable editors

Users assignable as an event's editor: active members of this org holding
CONTENT_EDIT/CONTENT_REVIEW, plus System Editors/Admins (platform staff, the
outsourced-review case). Mirrors _can_be_event_editor so the picker never offers
someone the create/update validation would reject.

Scope: event_assign_editor

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}/pii-log

List PII log

Paginated audit log of personal-data redactions applied to the event's transcripts
(category, hashed value, placeholder, offsets and source). Requires the PII review
permission.

Scope: pii_review

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

List quotes

Paginated quotes extracted from the event's transcript, in transcript order. ``text`` is
the quote cleaned newspaper-style and ``verbatim`` the transcript words (``char_start`` /
``char_end`` point at those); a quote that is not one complete thought is left out of the
page (``total`` counts every extracted quote). Requires the asset view permission.

Scope: asset_view

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.

### POST /v1/events/{event_id}/pii/retry

Retry PII

Retry personal-data detection for an event in PII_DETECTION_FAILED (202): moves it back to
PII_DETECTING and re-queues detection. 409 if the event is in any other status.

Scope: pii_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.

### POST /v1/events/{event_id}/pii/skip

Skip PII

Skip personal-data detection for an event in PII_DETECTION_FAILED (202): moves it to
TRANSCRIPT_READY, fires the transcript-ready webhook and queues suggestions and speaker
mapping. 409 if the event is in any other status.

Scope: pii_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}

Get event

Fetch one event by its full UUID or by the 8-character id prefix used in portal URLs. 404
if unknown, outside your organisation, or the prefix is ambiguous.

Scope: any key

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.

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

Update event

Update an event's fields; only the fields sent are changed. Requires the event edit
permission; 404 if a referenced event type, industry or editor is not in your organisation.

Scope: event_edit

Parameters:

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

Body (JSON):

- `title` (string): The title shown to attendees.
- `description` (string): A short description shown to people browsing the event.
- `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.
- `timezone` (string): The event's time zone as an IANA name, for example Europe/London.
- `venue` (string): Name of the place where the event is held.
- `city` (string): The city where the event takes place.
- `country` (string): The country where the event takes place.
- `languages` (array of string): The languages spoken at the event, as language codes.
- `event_date` (string (date-time)): The event's date and time, as an ISO 8601 date and time.
- `capture_integration` (string): Which live-capture source feeds this event: none, zoom, teams, webex or live. Null inherits the organisation setting.
- `human_review_required` (boolean): Whether a person must review generated outputs before they are approved; null inherits the setting.
- `auto_approve` (boolean): Whether outputs are approved automatically once generated; null inherits the setting.
- `pii_review_required` (boolean): Whether personal details found in a transcript must be reviewed before publishing; null inherits the setting.
- `speaker_verification_required` (boolean): Whether speaker names must be confirmed before publishing; null inherits the setting.
- `publish_automatically` (boolean): Whether approved outputs are published without a separate publish step; null inherits the setting.
- `brand_logo_url` (string): Address of the logo used on reports and pages; null inherits the setting.
- `brand_logo_dark_url` (string): Address of the logo version for dark backgrounds; null inherits the setting.
- `brand_primary_color` (string): Main brand colour as a hex value such as #1F4D3A; null inherits the setting.
- `brand_secondary_color` (string): Secondary brand colour as a hex value; null inherits the setting.
- `brand_font_heading` (string): Font used for headings in reports; null inherits the setting.
- `brand_font_body` (string): Font used for body text in reports; null inherits the setting.
- `brand_template_design` (string): The report design applied to this event's reports; null inherits the setting.
- `brand_report_copy` (object): Standard wording added to reports, such as a footer or disclaimer; null inherits the setting.
- `brand_voice` (string): A short description of the writing voice generated text should follow; null inherits the setting.
- `ai_model` (string): The model used to generate outputs; must be one of the models Audiobly offers, and null inherits the setting.
- `ai_language` (string): The language generated outputs are written in; null inherits the setting.
- `ai_writing_style` (string): The writing style for generated outputs; null inherits the setting.
- `ai_tone` (string): The tone for generated outputs; null inherits the setting.
- `ai_translation_enabled` (boolean): Whether generated outputs are also translated; null inherits the setting.
- `ai_translation_languages` (array of string): The languages generated outputs are translated into when translation is on; null inherits the setting.
- `ai_executive_audience` (boolean): Whether outputs are also written for an executive audience; null inherits the setting.
- `event_type_id` (string (uuid)): The event type that sets the event's default structure.
- `industry_id` (string (uuid)): The industry the event is classified under.
- `theme` (string): The event's overall theme or topic, as free text.
- `venue_note` (string): A short extra note about the venue, such as which entrance to use.
- `marketing_status` (string): Where the event stands in your marketing, as free text.
- `expected_attendees` (integer): How many people you expect to attend.
- `editor_id` (string (uuid)): The id of the team member assigned to edit this event.
- `keyterms` (array of string): Words and names the transcriber should recognise, such as product names and acronyms.
- `selected_assets` (array of string): The output types to generate for this event; leave null for the default set.
- `color` (string): The event's colour preset.
- `summary_word_count_override` (integer): Target length, in words, for this item's summary; null uses the event or account default.
- `org_unit_id` (string (uuid)): The brand or product this belongs to; leave empty to keep it at the account level.
- `public_registration_enabled` (boolean): Whether people can register for this event from its public page.

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}

Delete event

Permanently delete the event with its audio, transcripts, generated assets, reports and
photos (204), and write a deletion record. Requires the event delete permission; cannot be
undone.

Scope: event_delete

Parameters:

- `event_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.

### GET /v1/events/{event_id}/audio-url

Get the event audio URL

Presigned download URL for the event-level audio (the single-stream upload). Per-session
audio is under `…/sessions/{id}/media-url`. This is the read path for any org member or API
key — unlike the editor-workspace audio endpoint it carries no assigned-editor lock, so
programmatic (API-key) callers can fetch a single-file event's audio.

Scope: asset_view

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}/sponsor-mentions

Get sponsor mentions

For each org sponsor, the event's sessions whose transcript mentions the sponsor's
exact company name or one of its named products (case-insensitive, whole-word).
Services, technologies, tags and generic feature terms are deliberately NOT matched —
only the Company Name and Product Names count as sponsor mentions.

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}/share-of-voice

Get share of voice

Share of voice from resolved entity mentions: per sponsor and per company, the mentions,
their share of all resolved company/sponsor mentions in the event, the sessions they were
named in and the concepts they were named alongside. ``tagged`` is false (and the lists
empty or zero) until the event's sessions have been tagged.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `concept_uri` (query, string): Count only mentions in transcript blocks tagged with this concept.

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

Get event intelligence

Event Intelligence (sub-plan 17): an aggregation of the stored analysis (16) plus
speakers/sponsors into dashboard surfaces. Reads only — a projection of 16's output.
Returns has_analysis:false (not 404) for an un-analysed event.

Scope: any key

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

Get event timeline

Per-step processing pipeline status (sub-plan 13). A view over JobLog + event
status — no new data — so any org member who can read the event can see it.

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

Get event configuration

Every resolvable setting as {value, source}.

`source` (event/organization/platform) is what lets a settings screen say
"inherited from organisation" instead of guessing — the whole point of 10b's
inherited-but-editable semantics.

Scope: any key

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}/deletion-request

Request deletion

Data-subject deletion request (202): permanently deletes the event with its audio,
transcripts, generated assets, reports and photos, and writes a deletion record. Requires
the event delete permission; cannot be undone.

Scope: event_delete

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.

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

Create track

Add a programme track to the event. Returns 422 if `name` is blank.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `name` (string, required): The track's name.
- `description` (string): A short description shown to people browsing the event.
- `color` (string): The track's colour as a hex value, such as #1F4D3A.

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

List tracks

List the event's tracks, sorted by name, paginated with `limit` and `offset`.

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.

### PUT /v1/events/{event_id}/tracks/{track_id}

Update track

Update a track; omitted fields are unchanged. Returns 404 if it is not on this event and 422
if `name` is set blank.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `name` (string): The track's name.
- `description` (string): A short description shown to people browsing the event.
- `color` (string): The track's colour as a hex value, such as #1F4D3A.

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}/tracks/{track_id}

Delete track

Delete a track from the event. Returns 404 if it is not on this event.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `track_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}/locations

Create location

Add a location (room or stage) to the event. Returns 422 if `name` is blank.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `name` (string, required): The room or location's name.
- `kind` (string): The kind of place, such as room, stage or online.
- `capacity` (integer): How many people it holds.

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

List locations

List the event's locations, sorted by name, paginated with `limit` and `offset`.

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.

### PUT /v1/events/{event_id}/locations/{location_id}

Update location

Update a location; omitted fields are unchanged. Returns 404 if it is not on this event and
422 if `name` is set blank.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `name` (string): The room or location's name.
- `kind` (string): The kind of place, such as room, stage or online.
- `capacity` (integer): How many people it holds.

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}/locations/{location_id}

Delete location

Delete a location from the event. Returns 404 if it is not on this event.

Scope: prep_manage

Parameters:

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

### GET /v1/events/{event_id}/keyterms

Get keyterms

Get an event's transcription keyterms: the saved list, pending review candidates, the
extraction status and source URL, terms drawn from the speaker roster, and spelling
variants. Returns 404 NOT_FOUND if the event is not in your organisation.

Scope: read

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

Save keyterms

Save the event's keyterms (applies to all sessions) and clear review candidates.

Saving a CHANGED list also re-canonicalises the event's stored transcripts, so a term added
after transcription is applied to text that already exists rather than only to future runs.

Scope: event_edit

Parameters:

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

Body (JSON):

- `keyterms` (array of string, required): Words and names the transcriber should recognise, such as product names and acronyms.
- `variants` (object): Other spellings or mishearings of the same term.

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}/keyterms/extract

Extract keyterms

Kick off async keyterm extraction from a website. Candidates land for review.

Scope: event_edit

Parameters:

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

Body (JSON):

- `url` (string, required): A web address.

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

List glossary

List the organisation's glossary entries, sorted by term and paginated. Filter by
`category`, a `search` match on term or variants, and `scope` ('customer', an org unit id,
or omit for every scope); `version` reads the glossary as it stood at that version.
An unknown or foreign org unit in `scope` returns 404.

Scope: any key

Parameters:

- `category` (query, string)
- `search` (query, string)
- `scope` (query, string): 'customer', an org unit id, or omitted for every scope
- `version` (query, integer)
- `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.

### POST /v1/glossary

Create glossary entry

Add a glossary entry (term, expansion, optional category, context and spelling
variants) at customer or org-unit scope. Bumps the glossary version and re-applies the
canonical spelling to the scope's stored transcripts. Requires knowledge-management
permission; an unknown org unit returns 404.

Scope: knowledge_manage

Body (JSON):

- `org_unit_id` (string (uuid)): The brand or product this belongs to; leave empty to keep it at the account level.
- `term` (string, required): The word or phrase to recognise, such as a product name.
- `expansion` (string, required): What the term stands for or how it should be written out.
- `category` (string): A group for the entry, such as product or person.
- `context` (string): Extra context that helps the transcriber or writer interpret this entry.
- `variants` (array of string): Other spellings or mishearings of the same term.

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.

### PUT /v1/glossary/{entry_id}

Edit glossary entry

Edit a glossary entry. Entries are append-only: the edit creates a new version
that supersedes the old one (its id is returned as `supersedes`), and the scope's
transcripts are re-canonicalised. Returns 404 if the entry is not live.

Scope: knowledge_manage

Parameters:

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

Body (JSON):

- `org_unit_id` (string (uuid)): The brand or product this belongs to; leave empty to keep it at the account level.
- `term` (string, required): The word or phrase to recognise, such as a product name.
- `expansion` (string, required): What the term stands for or how it should be written out.
- `category` (string): A group for the entry, such as product or person.
- `context` (string): Extra context that helps the transcriber or writer interpret this entry.
- `variants` (array of string): Other spellings or mishearings of the same term.

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/glossary/{entry_id}

Delete glossary entry

Remove a glossary entry from the current glossary version (earlier versions keep
it) and re-canonicalise the affected transcripts. Returns 204, or 404 if the entry is not
live. Requires knowledge-management permission.

Scope: knowledge_manage

Parameters:

- `entry_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/glossary/{entry_id}/variants

Add glossary variant

Append one spelling to an entry's variants — the learning loop's write.

Same supersede-and-version path as PUT (the entry is append-only), and the same
re-canonicalisation of the scope's events, so the variant is rewritten to the term in
stored transcripts as well as future ones. A variant the entry already has (as its term,
expansion or a variant, ignoring case and punctuation) is a no-op: no new version.

Scope: knowledge_manage

Parameters:

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

Body (JSON):

- `variant` (string, required): Another spelling or mishearing of the term.

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/glossary/import

Import glossary

Bulk-import glossary entries from a UTF-8 CSV request body (max 2 MiB; `term` and
`expansion` required, optional `category`, `context` and pipe-separated `variants`).
Returns a per-row result (created, skipped as an exact duplicate, or errors) and the new
glossary version. A malformed or oversized file returns 400.

Scope: knowledge_manage

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/glossary/resolved

Get the resolved glossary

The effective vocabulary for a scope — the union of its chain, nearest first.

This is the screen that answers "what will actually be sent when we transcribe an event
under this brand?", including inherited terms and whether the set overflows the
recogniser's budget. Without it a customer has to reason about inheritance in their head.

Scope: any key

Parameters:

- `scope` (query, string): 'customer' or an org unit 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/events/{event_id}/activity

List event activity

Imports, transcriptions, video jobs and enrichment for this event: what is running now
and what finished in the last few hours.

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/org-units

List org units

Flat list of the caller's units; the client assembles the tree from
``parent_unit_id``. Ordered by kind then name for a stable display.

Scope: org_manage

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.

### POST /v1/org-units

Create org unit

Create a brand, product or sub-product unit. A brand is top-level; a product's parent must be
a brand and a sub-product's a product (422 otherwise). Returns 409 if the name already exists
under that parent.

Scope: org_manage

Body (JSON):

- `name` (string, required): Display name.
- `kind` (OrgUnitKind, required): Levels of the Customer → Brand → Product → Sub-Product hierarchy.

The Customer is the Organization itself (the tenancy/contract anchor); only the
three sub-levels are OrgUnit rows.
- `capture_integration` (string): Which live-capture source feeds this event: none, zoom, teams, webex or live. Null inherits the organisation setting.
- `human_review_required` (boolean): Whether a person must review generated outputs before they are approved; null inherits the setting.
- `auto_approve` (boolean): Whether outputs are approved automatically once generated; null inherits the setting.
- `pii_review_required` (boolean): Whether personal details found in a transcript must be reviewed before publishing; null inherits the setting.
- `speaker_verification_required` (boolean): Whether speaker names must be confirmed before publishing; null inherits the setting.
- `publish_automatically` (boolean): Whether approved outputs are published without a separate publish step; null inherits the setting.
- `brand_logo_url` (string): Address of the logo used on reports and pages; null inherits the setting.
- `brand_logo_dark_url` (string): Address of the logo version for dark backgrounds; null inherits the setting.
- `brand_primary_color` (string): Main brand colour as a hex value such as #1F4D3A; null inherits the setting.
- `brand_secondary_color` (string): Secondary brand colour as a hex value; null inherits the setting.
- `brand_font_heading` (string): Font used for headings in reports; null inherits the setting.
- `brand_font_body` (string): Font used for body text in reports; null inherits the setting.
- `brand_template_design` (string): The report design applied to this event's reports; null inherits the setting.
- `brand_report_copy` (object): Standard wording added to reports, such as a footer or disclaimer; null inherits the setting.
- `brand_voice` (string): A short description of the writing voice generated text should follow; null inherits the setting.
- `ai_model` (string): The model used to generate outputs; must be one of the models Audiobly offers, and null inherits the setting.
- `ai_language` (string): The language generated outputs are written in; null inherits the setting.
- `ai_writing_style` (string): The writing style for generated outputs; null inherits the setting.
- `ai_tone` (string): The tone for generated outputs; null inherits the setting.
- `ai_translation_enabled` (boolean): Whether generated outputs are also translated; null inherits the setting.
- `ai_translation_languages` (array of string): The languages generated outputs are translated into when translation is on; null inherits the setting.
- `ai_executive_audience` (boolean): Whether outputs are also written for an executive audience; null inherits the setting.
- `parent_unit_id` (string (uuid))
- `default_summary_word_count` (integer)

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/org-units/{unit_id}

Get org unit

Get one organization unit by ID. Returns 404 if it does not exist in this organization.

Scope: org_manage

Parameters:

- `unit_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.

### PATCH /v1/org-units/{unit_id}

Update org unit

Update a unit's name or branding overrides. An omitted field is unchanged; an explicit null
clears the override. Returns 403 for a report design the plan does not include and 409 for a
duplicate name.

Scope: org_manage

Parameters:

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

Body (JSON):

- `name` (string): Display name.
- `capture_integration` (string): Which live-capture source feeds this event: none, zoom, teams, webex or live. Null inherits the organisation setting.
- `human_review_required` (boolean): Whether a person must review generated outputs before they are approved; null inherits the setting.
- `auto_approve` (boolean): Whether outputs are approved automatically once generated; null inherits the setting.
- `pii_review_required` (boolean): Whether personal details found in a transcript must be reviewed before publishing; null inherits the setting.
- `speaker_verification_required` (boolean): Whether speaker names must be confirmed before publishing; null inherits the setting.
- `publish_automatically` (boolean): Whether approved outputs are published without a separate publish step; null inherits the setting.
- `brand_logo_url` (string): Address of the logo used on reports and pages; null inherits the setting.
- `brand_logo_dark_url` (string): Address of the logo version for dark backgrounds; null inherits the setting.
- `brand_primary_color` (string): Main brand colour as a hex value such as #1F4D3A; null inherits the setting.
- `brand_secondary_color` (string): Secondary brand colour as a hex value; null inherits the setting.
- `brand_font_heading` (string): Font used for headings in reports; null inherits the setting.
- `brand_font_body` (string): Font used for body text in reports; null inherits the setting.
- `brand_template_design` (string): The report design applied to this event's reports; null inherits the setting.
- `brand_report_copy` (object): Standard wording added to reports, such as a footer or disclaimer; null inherits the setting.
- `brand_voice` (string): A short description of the writing voice generated text should follow; null inherits the setting.
- `ai_model` (string): The model used to generate outputs; must be one of the models Audiobly offers, and null inherits the setting.
- `ai_language` (string): The language generated outputs are written in; null inherits the setting.
- `ai_writing_style` (string): The writing style for generated outputs; null inherits the setting.
- `ai_tone` (string): The tone for generated outputs; null inherits the setting.
- `ai_translation_enabled` (boolean): Whether generated outputs are also translated; null inherits the setting.
- `ai_translation_languages` (array of string): The languages generated outputs are translated into when translation is on; null inherits the setting.
- `ai_executive_audience` (boolean): Whether outputs are also written for an executive audience; null inherits the setting.
- `default_summary_word_count` (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.

### DELETE /v1/org-units/{unit_id}

Delete org unit

Delete an organization unit. Returns 409 if it still holds vocabulary terms or has sub-units;
events under it are kept and simply lose the link.

Scope: org_manage

Parameters:

- `unit_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.
