# Uploads and live capture

Upload recordings and capture talks in real time.

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

### GET /v1/uploads/in-progress

List in progress uploads

Open (still-pending) multipart uploads for an event and its sessions.

Returned so the client can offer to *resume*: a browser cannot keep the File across a
navigation, so resume means the user re-selects the same file and we match it here by
filename + size, then skip the parts that already landed.

Deliberately NOT filtered by age. Storage aborts incomplete uploads a day after they
start, but that sweep is asynchronous and not to the minute, so a row past the nominal
window often still has every part. Hiding those would force a multi-GB re-upload to
avoid a single wasted click — and a genuinely dead one costs exactly that click:
_parts_or_expired marks it aborted, so it drops off this list for good.

Scope: any key

Parameters:

- `event_id` (query, 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/uploads/multipart/{upload_session_id}/parts

List uploaded parts

Part numbers already in storage for an open upload, so a resume PUTs only the rest.

Scope: any key

Parameters:

- `upload_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/uploads

Create upload

Start an audio/video upload for an existing event (`event_id`), a session (`session_id`) or
a new event created from `metadata`. Returns a presigned upload URL, or a multipart plan for
large files. Returns 400 INVALID_REQUEST for an unsupported type or oversized file.

Scope: any key

Body (JSON):

- `filename` (string, required): The file's name, including its extension.
- `file_size` (integer, required): The file size in bytes.
- `content_type` (string, required): The file's media type, for example audio/mpeg.
- `event_id` (string (uuid)): The existing event to attach the audio to.
- `metadata` (EventCreate): Details of a new event to create for this upload; use this or event_id.
- `session_id` (string (uuid)): The session of that event the audio belongs to.
- `part_bytes` (integer): Size in bytes of each upload part; between 5 MiB and 64 MiB.

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.

### POST /v1/uploads/{event_id}/complete

Complete upload

Signal that the presigned upload for this event's audio has finished, which starts
processing (202 Accepted).

Scope: any key

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

Complete session upload

Client signals the presigned PUT for a session's audio finished.

Scope: any key

Parameters:

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

### POST /v1/uploads/multipart/{upload_session_id}/part-urls

Create part urls

Mint presigned URLs for a batch of parts.

Deliberately not issued all at once when the upload starts: on a slow connection the
later URLs would expire before the client reached them — the same failure mode this
whole change exists to remove.

Scope: any key

Parameters:

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

Body (JSON):

- `part_numbers` (array of integer, required): The part numbers to get upload addresses for.

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/uploads/multipart/{upload_session_id}/complete

Complete multipart

Assemble the parts into the final object, then hand off to the normal pipeline.

The part manifest is read back from storage rather than supplied by the client, so the
browser never needs to read ETag response headers (which would require a CORS
expose-headers rule that fails silently when missing).

Scope: any key

Parameters:

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

### POST /v1/uploads/multipart/{upload_session_id}/abort

Abort multipart

Discard an in-flight upload and its parts.

Scope: any key

Parameters:

- `upload_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/capture/{provider}

Get connection

Get the organisation's connection status for a capture provider (`zoom`, `teams`, `webex` or
`live`) and the webhook URL to configure in that provider. Secrets are never returned; 404
NOT_FOUND for an unknown provider.

Scope: org_manage

Parameters:

- `provider` (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/capture/{provider}

Set connection

Connect or update a capture provider's credentials (stored encrypted). `secret_token` is
always required; `zoom`/`teams` also need `client_id`, `client_secret` and `account_id`,
`webex` needs a `refresh_token`. Returns 422 VALIDATION_ERROR if one is missing.

Scope: org_manage

Parameters:

- `provider` (path, string, required)

Body (JSON):

- `account_id` (string): Your account id with the capture provider.
- `client_id` (string): The client id.
- `client_secret` (string): The client secret from the provider; stored securely and never shown again.
- `secret_token` (string, required): The provider's secret token used to verify its notifications; stored securely.
- `refresh_token` (string): The provider's refresh token; stored securely and never shown again.

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/capture/{provider}

Delete connection

Disconnect a capture provider by deleting its stored credentials. Succeeds (204) even if
nothing was connected.

Scope: org_manage

Parameters:

- `provider` (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.

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

Provision live

Provision a capture, bound to one programme session.

Parallel rooms are one event with a laptop and operator per session, so the guard is
one active capture **per session** rather than per event. Omitting `session_id`
keeps the legacy event-level behaviour, which still allows only one per event.

Scope: event_edit

Parameters:

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

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

Get live status

Get the status of the latest live capture for the event (or for one programme session via
`session_id`), with this month's live minutes used and the monthly cap. Returns 404 if
nothing has been captured.

Scope: any key

Parameters:

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

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

Get live transcript

Get the live transcript so far: every finalised line in order, plus the line still being
formed. Pass `session_id` for one programme session. Returns 404 if there is no capture.

Scope: any key

Parameters:

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

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

Get live speaker map

Get the names the operator has given to each voice in a live capture, plus every voice label
heard so far in order of first appearance. Returns 404 if there is no capture.

Scope: any key

Parameters:

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

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

Assign live speaker

Name one voice, or merge it into another.

The venue feed is a single mixed bus, so this is where speaker identity actually
comes from: the operator names a voice the first time it speaks. The assignment is
stored and then applied **backwards** over everything that voice already said and
**forwards** for the rest of the session, which is what turns an end-of-session list
of corrections into one click at the moment someone starts talking.

Scope: event_edit

Parameters:

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

Body (JSON):

- `label` (string, required): The speaker label from live capture, such as Speaker 0.
- `speaker_id` (string (uuid)): The roster speaker this label is.
- `merged_into` (string): Another label that is the same person.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/non-speech

Mark non speech

Exclude a span of walk-on music or video playout.

The failover microphone sits in front of an auditorium speaker, so it hears
everything the PA plays, not just the people talking. Marking rather than deleting
keeps the span in the record for the authoritative pass to reconcile against.

Scope: event_edit

Parameters:

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

Body (JSON):

- `from_seq` (integer, required): The first caption line of the range.
- `to_seq` (integer, required): The last caption line of the range.
- `is_non_speech` (boolean): Whether the lines in the range are not speech, such as music or applause.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/segments

Ingest live segments

Transcript segments from the operator's capture tool.

The browser-facing twin of the HMAC webhook, and the reason it exists: a browser cannot
hold the organisation's signing key, so the operator authenticates as themselves. Note
what is deliberately NOT copied from the webhook — that route runs on a service session
which BYPASSES row-level security, and takes the organisation from the URL, trusting the
signature as proof of ownership. Safe for a signed machine-to-machine caller; on a
browser endpoint the same shape would let any authenticated user post into another
tenant's capture with RLS unable to stop them. So: an ordinary session, and the event
resolved through the caller's own scope.

Storage is the shared path, so a segment behaves identically whichever route delivered
it: idempotent by (session, seq), and a final replaces the interim before it.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `X-Capture-Writer` (header, string)

Body (JSON):

- `segments` (array of LiveSegmentIn, required): The captions to add, each with its text and time.

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}/live/pause

Pause live capture

The operator paused capture — an off-the-record passage, or video and music playout.

Deliberately NOT /end: pausing must not price the streamed minutes as final, must not
compact, and must not stamp ended_at. Those are what make a stop irreversible, and the
reason a mis-timed Stop used to cost the remainder of the session.

The status matters beyond the desk. A capture that simply stopped sending audio would go
stale and be read as ``reconnecting`` — a fault — by everyone watching the live view.
Saying ``paused`` distinguishes a decision from a dropped laptop.

Idempotent. Refused once the capture has ended: there is nothing left to hold.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `X-Capture-Writer` (header, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/resume

Resume live capture

Carry on capturing the same session after a pause.

Returns ``next_seq`` so the browser continues numbering where the capture left off.
Segments upsert on (capture, seq); a client that restarted its own counter at zero would
overwrite the first half of the session line by line rather than appending to it.

Refused once the capture has ended — that is what "End recording" means, and reopening
it would leave the compacted transcript disagreeing with the segments behind it.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `X-Capture-Writer` (header, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/claim

Claim live capture

Go live: make this device the capture's only writer (parallel-capture QA fix 1).

Returns a writer token for every later call (header ``X-Capture-Writer``) and
``next_seq``, so a second Go live or a reload continues the numbering instead of
restarting at 1 and overwriting the first device's lines. The previous writer is fenced
off: its later writes are refused with 409 ``CAPTURE_TAKEN_OVER``. ``took_over`` says
whether that previous writer was still sending.

Scope: event_edit

Parameters:

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

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/heartbeat

Live capture heartbeat

The capture tool is still there (every 15 s while live, parallel-capture QA fix 3).

Segments are a heartbeat too, but a pause in the talk sends none; without this a quiet
minute would look like a dropped laptop. A capture with neither for 45 s is shown to
attendees as reconnecting. A paused capture keeps its status.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `X-Capture-Writer` (header, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/end

End live capture

The operator pressed Stop.

Without this the browser path had no way to say a capture had finished, and only the
HMAC `stream.ended` webhook — which belongs to the edge-relay design, not to browser
capture — ever ended one. The consequences were invisible at the desk and total
afterwards: the capture stayed "live" forever, the streamed minutes were never priced,
and `compact_live_transcript` never ran, so no Transcript was created and the session
showed an editor nothing at all in Review. The capture appeared to work perfectly and
then produced nothing anyone could open.

session_id is REQUIRED for the same reason it is on /segments: ending the wrong room's
capture at a multi-room event is not recoverable by retrying.

Idempotent, because a browser will retry and an operator will press Stop twice.

`reason` and `hidden_seconds` come from the capture page and are logged, not stored: a
capture that stopped early used to leave nothing to say why. "left-page" means the page
closed or navigated away while live (the guards should make that rare); a long
`hidden_seconds` means the window sat behind another app, where browsers throttle pages.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid), required)
- `reason` (query, one of operator, left-page)
- `hidden_seconds` (query, integer)
- `X-Capture-Writer` (header, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/recording

Finish live recording

The capture tool has finished uploading its recording: keep it, then transcribe it.

Called after the parts are assembled (the upload's own complete endpoint points the
session at the object). Two things make this separate from the ordinary
``uploads/sessions/{id}/complete``: that one deletes the session's transcript up front,
which here would throw away the live transcript before the replacement exists, and a
session already signed off must keep the audio without a re-run.

Idempotent: pressing End twice, or the abandoned-upload sweep arriving first, must not
queue two transcriptions.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, 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}/live/token

Mint stream token

Mint a short-lived streaming credential for the operator's laptop.

The account key never leaves the server. The token only has to be valid at the
socket handshake — the connection then stays open for the whole session — so it is
deliberately short-lived and does not need to cover the session length.

A browser cannot set an Authorization header on a WebSocket, so the tool passes this
token as the `access_token` query parameter on the socket URL.

`audio=pcm16k` is what the capture tool sends now: raw 16-bit mono PCM at 16 kHz, which
the provider cannot sniff and must be told about. Omitted, the socket expects the
containerised WebM a MediaRecorder produces, so a laptop still running the previous
page keeps working through a deploy.

Scope: event_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (query, string (uuid))
- `audio` (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}/live/notes

List live notes

Every flag on this capture, in transcript order.

Deliberately not filtered to the caller: seeing a colleague's flags is the feature.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), 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}/live/notes

Create live note

Flag a line. Works whether or not a capture row is still around — the note is
anchored to the transcript's clock, not to the capture.

Scope: event_edit

Parameters:

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

Body (JSON):

- `at_seconds` (number, required): Seconds from the start of the recording where the note applies.
- `body` (string, required): The note's text.
- `session_id` (string (uuid)): The id of the session this relates to.
- `quote` (string): The transcript line the note refers to.
- `speaker` (string): The name of the person speaking at that moment.
- `category` (string): A label for the kind of issue, up to 50 characters.

Responses:

- 201: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### PATCH /v1/events/{event_id}/live/notes/{note_id}

Update live note

Edit a flag, or tick it off once the transcript has been corrected.

Anyone who may edit the event may resolve one: the whole point is that the person who
fixes it is usually not the person who raised it.

Scope: event_edit

Parameters:

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

Body (JSON):

- `body` (string): The note's text.
- `category` (string): A label for the kind of issue, up to 50 characters.
- `resolved` (boolean): Whether the issue has been fixed.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### DELETE /v1/events/{event_id}/live/notes/{note_id}

Delete live note

Remove a flag raised by mistake. Resolving is the normal end of a note's life.

Scope: event_edit

Parameters:

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

Responses:

- 204: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/notes/{note_id}/undo

Undo live note fix

Put back the wording an auto-applied correction replaced.

An auto-fix is a suggestion that has already been made — convenient when it is right,
and something an editor must be able to reverse in one click when it is not. The flag
comes back as an ordinary open note, so it is still there to be dealt with by hand.

Scope: event_edit

Parameters:

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

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/live/stream-source

Get stream source

Get the stream address a capture pulls its audio from, with the pull's current state, seconds
received and last error, plus the address to push a stream to. Returns 404 if there is no
capture for the session.

Scope: any key

Parameters:

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

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### PUT /v1/events/{event_id}/live/stream-source

Set stream source

Take this capture's audio from a stream address (RTMP, SRT, HLS or a media URL).

Scope: event_edit

Parameters:

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

Body (JSON):

- `url` (string, required): The address of the live video or audio stream to caption.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### DELETE /v1/events/{event_id}/live/stream-source

Stop stream source

Stop taking audio from the stream; the capture ends and the recording is transcribed.

Scope: event_edit

Parameters:

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

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/live/stream-key

New stream key

A fresh stream key for pushing to the ingest server (shown once; the old one stops working).

Scope: event_edit

Parameters:

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