# Sessions

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

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

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