Server-Sent Event channels for live, attributed earnings-call transcripts. Each channel is a unidirectional HTTP stream — the client opens a GET and the server pushes `event:` / `data:` framed messages until the call ends or the connection drops. The server closes streams itself: - **The call is over:** after an `event: ended` message (`data: {}`, no `id`). Do not reconnect; a reconnect returns 204. (Not sent to the operator's streams.) - **The service moved to a new server process:** `/stream` first sends an `id:` line carrying the last `seq` delivered (`-1` if none), then closes; reconnect with that as `Last-Event-ID` and you land on the new process with the gap replayed. - **At 60 minutes**, the platform's request limit: reconnect the same way. Streams are served from `https://stream.live-earnings.com`; the REST endpoints are on `https://live-earnings.com` (see `openapi.yaml`). Opening a stream on the REST host returns 503 `stateful_route_wrong_origin`. Auth, with a long-lived subscriber key (`ek_…`) scoped to one call: - **Server-side:** `Authorization: Bearer ` header. - **Browsers** (`EventSource` cannot set headers): mint a session token with `POST https://live-earnings.com/api/live/{slug}/session-token` (`Authorization: Bearer `; returns `{"sessionToken", "expiresIn": 7200}`), then open the stream with `?t=`. The token lasts 2 hours and covers one call. An invalid or expired `t` returns 401 and never falls back to another credential. - `?token=` still works but is DEPRECATED — keys in URLs leak into access logs, browser history and `Referer`.
View SpecView on GitHubEarnings CallsLive TranscriptSDKTrading DeskAsyncAPIEventsServer-Sent EventsWebSockets
Channels
/api/live/{slug}/stream
subscribesubscribeStream
Finalized attribution events. The canonical subscriber stream. Framing: each message is `event: envelope`, `id: `, and a JSON `data:` line — except the `ended` message described above (`event: ended`, `data: {}`), which is not an envelope. The server sends a heartbeat comment line (`: hb `) every 25 s. Reconnect: send `Last-Event-ID` (the last `seq` you processed); the server replays from that `seq + 1`. An event near the reconnect may arrive twice — dedupe by `seq`. `seq` only increases, but numbers are skipped (internal events are not sent), so a missing number is not a lost event. History can also be fetched from REST `/events?from=`. A call that is over has no live stream: once a call has ended and its last turn is 30 minutes old (or a scheduled call is 6 hours past its start and never ran), opening `/stream`, `/partial-stream` or `/audio-stream` returns `204 No Content`. Do not reconnect on a 204 — read the transcript from REST `/events`. A live call is never refused. Includes: - `attribution` — speaker named, transcript text included - `unknown` — turn not (yet) attributed - `phase_transition` — section boundary - `turn_speaker_amend` — in-place naming or renaming of an already-published turn, by the model or a human - `done` — call ended Treat the latest signal per `turnId` as canonical. A `turn_speaker_amend` overrides the speaker `name` on the original turn; the turn keeps its chronological position.
/api/live/{slug}/partial-stream
subscribesubscribePartials
In-flight transcript partials. Each speaker turn surfaces here with `transcript` growing word-by-word as the speaker speaks. When a partial finalizes, an envelope publishes on `/stream` with the same `turnId`. Use that to clear your live cursor. Partials carry no `seq` and no `phase`. They're transient. Don't persist them; use them only as a live read-out of the in-flight turn. Some calls also name the in-flight turn EARLY, from its first sentence: once known, `speakerName` (with `naming: "early"`) rides on every later partial of that turn (the frame that first carries it may repeat the previous transcript). It is provisional — the turn's final name arrives on `/stream` (the `turn_speaker_amend` that follows the turn) and always replaces it. Absent when the call does not name early or has no early name yet. A `hello` event may open the connection: `{"features": {"segments": true}}` means this call streams SETTLED SENTENCES of the in-flight turn into the transcript under its (early) name. A settled sentence is one followed by at least 4 more words (see `settledPrefix` in the viewer's source); the whole, final turn arrives on `/stream` as usual and replaces them. Clients may ignore `hello`.
/api/live/{slug}/audio-stream
subscribesubscribeAudio
Raw call audio as base64-encoded PCM chunks. Any subscriber key or session token for the call works. Format: 16 kHz, 1 channel, signed 16-bit little-endian PCM, base64-encoded. Each event carries one chunk (~40-100 ms). Concatenate chunks in arrival order to reconstruct the audio.
/audio-ingest-ws/{slug}
publishsendAudioFrame
OPERATOR-ONLY. The VM capture rig's audio WebSocket (currently unused: live capture goes through the console's HTTP `POST /api/live/{slug}/audio-ingest`, documented in openapi.yaml). Not a Next.js route: it is attached to the pipeline server itself, so it exists only on the pipeline host. The client sends raw 16 kHz mono signed 16-bit little-endian PCM as binary frames. Auth: the ingest token (LIVE_EARNINGS_INGEST_TOKEN only — unlike the HTTP route, the operator token is not accepted), as `Authorization: Bearer` or `?token=`. A connection that cannot start is closed with one of these codes (also in `x-close-codes`). The rig reconnects on any non-1000 close. | Code | Meaning | |---|---| | 4400 | Bad path (in practice the server drops a non-matching upgrade before it opens) | | 4401 | Unauthorized | | 4500 | Speech-to-text not configured on the server | | 4503 | Session setup failed (a failure after setup drops the audio instead of closing) | | 4504 | Engine setting could not be read — transient; a reconnect retries it | | 4505 | Stored engine not available in this build — permanent until the call's engine changes | | 4506 | Capture suspended by the stray-capture guard — reconnect with `?capture_start=1` once an operator restarts capture, or clear it with the console's Stop |
Messages
✉
Envelope
Finalized event envelope
Wire-format envelope shared with REST `/events`.
✉
Partial
In-flight transcript partial
✉
Hello
Stream feature announcement
May be sent first on `/partial-stream`. Clients may ignore it.
✉
AudioChunk
Base64-encoded PCM chunk
Servers
https
productionstream.live-earnings.com
Production streams (SSE).
wss
pipelinestream.live-earnings.com
Operator audio ingest (WebSocket). The token is the ingest token, not a subscriber key.
asyncapi: '2.6.0'
info:
title: Live Earnings — Streaming Channels
version: '1.1.0'
description: |
Server-Sent Event channels for live, attributed earnings-call transcripts.
Each channel is a unidirectional HTTP stream — the client opens a GET
and the server pushes `event:` / `data:` framed messages until the
call ends or the connection drops.
The server closes streams itself:
- **The call is over:** after an `event: ended` message (`data: {}`,
no `id`). Do not reconnect; a reconnect returns 204. (Not sent to
the operator's streams.)
- **The service moved to a new server process:** `/stream` first sends
an `id:` line carrying the last `seq` delivered (`-1` if none), then
closes; reconnect with that as `Last-Event-ID` and you land on the
new process with the gap replayed.
- **At 60 minutes**, the platform's request limit: reconnect the same way.
Streams are served from `https://stream.live-earnings.com`; the REST
endpoints are on `https://live-earnings.com` (see `openapi.yaml`).
Opening a stream on the REST host returns 503
`stateful_route_wrong_origin`.
Auth, with a long-lived subscriber key (`ek_…`) scoped to one call:
- **Server-side:** `Authorization: Bearer <key>` header.
- **Browsers** (`EventSource` cannot set headers): mint a session token
with `POST https://live-earnings.com/api/live/{slug}/session-token`
(`Authorization: Bearer <key>`; returns `{"sessionToken", "expiresIn":
7200}`), then open the stream with `?t=<sessionToken>`. The token
lasts 2 hours and covers one call. An invalid or expired `t` returns
401 and never falls back to another credential.
- `?token=<key>` still works but is DEPRECATED — keys in URLs leak into
access logs, browser history and `Referer`.
contact:
name: Live Earnings
url: https://live-earnings.com
servers:
production:
url: stream.live-earnings.com
protocol: https
description: Production streams (SSE).
security:
- bearerAuth: []
- sessionToken: []
- queryToken: []
pipeline:
url: stream.live-earnings.com
protocol: wss
description: Operator audio ingest (WebSocket). The token is the ingest token, not a subscriber key.
security:
- ingestToken: []
defaultContentType: application/json
channels:
/api/live/{slug}/stream:
description: |
Finalized attribution events. The canonical subscriber stream.
Framing: each message is `event: envelope`, `id: <seq>`, and a JSON
`data:` line — except the `ended` message described above (`event:
ended`, `data: {}`), which is not an envelope. The server sends a heartbeat comment line
(`: hb <ms>`) every 25 s.
Reconnect: send `Last-Event-ID` (the last `seq` you processed); the
server replays from that `seq + 1`. An event near the reconnect may
arrive twice — dedupe by `seq`. `seq` only increases, but numbers are
skipped (internal events are not sent), so a missing number is not a
lost event. History can also be fetched from REST `/events?from=`.
A call that is over has no live stream: once a call has ended and its
last turn is 30 minutes old (or a scheduled call is 6 hours past its
start and never ran), opening `/stream`, `/partial-stream` or
`/audio-stream` returns `204 No Content`. Do not reconnect on a 204 — read the transcript from
REST `/events`. A live call is never refused.
Includes:
- `attribution` — speaker named, transcript text included
- `unknown` — turn not (yet) attributed
- `phase_transition` — section boundary
- `turn_speaker_amend` — in-place naming or renaming of an
already-published turn, by the model or a human
- `done` — call ended
Treat the latest signal per `turnId` as canonical. A
`turn_speaker_amend` overrides the speaker `name` on the
original turn; the turn keeps its chronological position.
parameters:
slug:
$ref: '#/components/parameters/Slug'
subscribe:
operationId: subscribeStream
message:
$ref: '#/components/messages/Envelope'
bindings:
sse:
eventName: envelope
/api/live/{slug}/partial-stream:
description: |
In-flight transcript partials. Each speaker turn surfaces here
with `transcript` growing word-by-word as the speaker speaks.
When a partial finalizes, an envelope publishes on `/stream` with
the same `turnId`. Use that to clear your live cursor.
Partials carry no `seq` and no `phase`. They're transient. Don't
persist them; use them only as a live read-out of the in-flight
turn.
Some calls also name the in-flight turn EARLY, from its first
sentence: once known, `speakerName` (with `naming: "early"`) rides on
every later partial of that turn (the frame that first carries it may
repeat the previous transcript). It is provisional — the turn's
final name arrives on `/stream` (the `turn_speaker_amend` that follows
the turn) and always replaces it. Absent when the call does not name
early or has no early name yet.
A `hello` event may open the connection: `{"features": {"segments":
true}}` means this call streams SETTLED SENTENCES of the in-flight turn
into the transcript under its (early) name. A settled sentence is one
followed by at least 4 more words (see `settledPrefix` in the viewer's
source); the whole, final turn arrives on `/stream` as usual and replaces
them. Clients may ignore `hello`.
parameters:
slug:
$ref: '#/components/parameters/Slug'
subscribe:
operationId: subscribePartials
message:
oneOf:
- $ref: '#/components/messages/Partial'
- $ref: '#/components/messages/Hello'
bindings:
sse:
eventName: partial
/api/live/{slug}/audio-stream:
description: |
Raw call audio as base64-encoded PCM chunks. Any subscriber key or
session token for the call works.
Format: 16 kHz, 1 channel, signed 16-bit little-endian PCM,
base64-encoded. Each event carries one chunk (~40-100 ms).
Concatenate chunks in arrival order to reconstruct the audio.
parameters:
slug:
$ref: '#/components/parameters/Slug'
subscribe:
operationId: subscribeAudio
message:
$ref: '#/components/messages/AudioChunk'
bindings:
sse:
eventName: audio
/audio-ingest-ws/{slug}:
x-audience: operator
servers: [pipeline]
description: |
OPERATOR-ONLY. The VM capture rig's audio WebSocket (currently unused:
live capture goes through the console's HTTP `POST
/api/live/{slug}/audio-ingest`, documented in openapi.yaml). Not a
Next.js route: it is attached to the pipeline server itself, so it
exists only on the pipeline host.
The client sends raw 16 kHz mono signed 16-bit little-endian PCM as
binary frames. Auth: the ingest token (LIVE_EARNINGS_INGEST_TOKEN only —
unlike the HTTP route, the operator token is not accepted), as
`Authorization: Bearer` or `?token=`.
A connection that cannot start is closed with one of these codes
(also in `x-close-codes`). The rig reconnects on any non-1000 close.
| Code | Meaning |
|---|---|
| 4400 | Bad path (in practice the server drops a non-matching upgrade before it opens) |
| 4401 | Unauthorized |
| 4500 | Speech-to-text not configured on the server |
| 4503 | Session setup failed (a failure after setup drops the audio instead of closing) |
| 4504 | Engine setting could not be read — transient; a reconnect retries it |
| 4505 | Stored engine not available in this build — permanent until the call's engine changes |
| 4506 | Capture suspended by the stray-capture guard — reconnect with `?capture_start=1` once an operator restarts capture, or clear it with the console's Stop |
x-close-codes:
"4400": Bad path
"4401": Unauthorized
"4500": STT not configured
"4503": Session setup failed
"4504": STT engine unavailable (transient)
"4505": STT engine not available (permanent)
"4506": Capture suspended
parameters:
slug:
$ref: '#/components/parameters/Slug'
bindings:
ws:
query:
type: object
properties:
token:
type: string
description: The ingest token, when the client cannot set a header.
capture_start:
type: string
enum: ["1"]
description: First connect of a capture an operator just started — clears a suspension.
publish:
operationId: sendAudioFrame
message:
name: AudioFrame
contentType: application/octet-stream
payload:
type: string
format: binary
components:
parameters:
Slug:
description: Call slug — e.g., `nvda-q4-fy26`.
schema:
type: string
pattern: '^[a-z0-9-]+$'
messages:
Envelope:
name: envelope
title: Finalized event envelope
summary: Wire-format envelope shared with REST `/events`.
contentType: application/json
payload:
$ref: '#/components/schemas/EventEnvelope'
bindings:
sse:
eventName: envelope
Partial:
name: partial
title: In-flight transcript partial
contentType: application/json
payload:
type: object
required: [turnOrder, turnId, elapsedSec, transcript]
properties:
turnOrder:
type: integer
description: The turn's number within the call.
turnId:
type: string
description: |
`${slug}-${turnOrder}`. Matches the eventual `attribution` /
`unknown` envelope's `turnId` on `/stream`. Use this to
associate the in-flight partial with its final form.
elapsedSec:
type: number
description: Seconds into the call.
transcript:
type: string
description: The turn's full text so far (not a delta); replace, don't append.
speakerName:
type: string
description: |
Provisional speaker name from the turn's first sentence
(early naming). Optional. Replaced by the final name on
`/stream`; never shown there itself.
naming:
type: string
enum: [early]
description: Present with `speakerName`; marks it provisional.
bindings:
sse:
eventName: partial
Hello:
name: hello
title: Stream feature announcement
summary: May be sent first on `/partial-stream`. Clients may ignore it.
contentType: application/json
payload:
type: object
properties:
features:
type: object
properties:
segments:
type: boolean
const: true
bindings:
sse:
eventName: hello
AudioChunk:
name: audio
title: Base64-encoded PCM chunk
contentType: application/json
payload:
type: object
required: [pcm_base64, publishedAt]
properties:
pcm_base64:
type: string
description: |
Base64-encoded raw PCM. 16 kHz, 1 channel, signed 16-bit
little-endian, no headers.
publishedAt:
type: number
description: Server publish time, epoch milliseconds.
bindings:
sse:
eventName: audio
schemas:
Phase:
type: string
description: |
A section of the call. Sections follow the call forward (opening, IR
introduction, prepared remarks, `qa`, `closing`), but the CEO's and
CFO's prepared remarks (`ceo_remarks`, `cfo_remarks`) come in EITHER
order — most calls are CEO-first — so `ceo_remarks` → `cfo_remarks` is
a normal transition.
enum:
- unknown
- operator_opening
- ir_intro
- cfo_remarks
- ceo_remarks
- qa
- closing
EventEnvelope:
type: object
required: [tenantId, callSlug, seq, publishedAt, event]
properties:
tenantId:
type: string
example: live-earnings
callSlug:
type: string
seq:
type: integer
publishedAt:
type: string
format: date-time
event:
oneOf:
- $ref: '#/components/schemas/AttributionEvent'
- $ref: '#/components/schemas/UnknownEvent'
- $ref: '#/components/schemas/PhaseTransitionEvent'
- $ref: '#/components/schemas/TurnSpeakerAmendEvent'
- $ref: '#/components/schemas/DoneEvent'
AttributionEvent:
type: object
required: [type, turnId, name, source, sttSpeakerChange]
properties:
type:
const: attribution
turnId:
type: string
name:
type: string
source:
const: live-earnings
text:
type: string
phase:
$ref: '#/components/schemas/Phase'
sttSpeakerChange:
$ref: '#/components/schemas/SpeakerChange'
UnknownEvent:
type: object
required: [type, turnId, sttSpeakerChange]
properties:
type:
const: unknown
turnId:
type: string
text:
type: string
phase:
$ref: '#/components/schemas/Phase'
sttSpeakerChange:
$ref: '#/components/schemas/SpeakerChange'
naming:
type: string
enum: [pending]
description: |
`pending`: published before the speaker was named (the server's
publish-before-naming mode). The name follows as a
`turn_speaker_amend` with `by: model` — `newName` `unknown` when
the turn could not be named. Show the text now; fill the name in
place when it arrives.
SpeakerChange:
type: string
enum: [same, new, unknown]
description: |
The speech engine's observation that this turn's speaker is the
`same` as the previous turn's, `new`, or `unknown` when it cannot
tell. Always present.
- Not every speech engine observes it; on a call whose engine does
not, it is always `unknown`. So is the first turn of each new
engine session (at the start, at a scheduled handover, after a
reconnect — labels restart) and a turn right after one the engine
could not label.
- It is what the engine heard, not truth: an operator's rename does
not change it, and it is never an input to `name`.
- `same` means "same as the turn just before". If you did not receive
the turn with the previous turn number (turnId `<slug>-<n-1>`),
treat `same` as `unknown`. Turn numbers can skip values (for
example when capture restarts); a turn that carries `same` or
`new` always has the turn it compares against at `<n-1>`.
- Measured against published transcripts on two calls: every real
speaker change was marked `new` (104 of 104) — counting the changes that fell on a turn boundary; the engine merged 3 of one call's 76 into the previous turn, and those carry no mark —, so a `same` mark was
never wrong (176 of 176). `new` was right about 94% of the time on
turns of more than 5 words (101 of 108), but only 3 of 17 times on
turns of 5 words or fewer.
PhaseTransitionEvent:
type: object
required: [type, fromPhase, toPhase, triggerTurnId]
properties:
type:
const: phase_transition
fromPhase:
$ref: '#/components/schemas/Phase'
toPhase:
$ref: '#/components/schemas/Phase'
triggerTurnId:
type: string
TurnSpeakerAmendEvent:
type: object
required: [type, turnId, newName]
description: |
Names or renames an already-published turn's speaker — either the
model's name for a turn published before naming (`by: model`), or a
human correction (`by` absent or `operator`). Apply in place: the
original turn keeps its chronological position; only the displayed
speaker name changes. A human correction always beats a `by: model`
name; otherwise the latest amend per `turnId` wins.
Historical note: calls published before 2026-05-21 may carry
a second `AttributionEvent` on the same `turnId` instead
(the legacy amend path). Subscribers should treat either
pattern as a correction.
properties:
type:
const: turn_speaker_amend
turnId:
type: string
newName:
type: string
description: "The speaker's name, or `unknown`: with `by: model`, the turn could not be named; from an operator, the name was removed."
by:
type: string
enum: [model, operator]
description: |
Optional. Who named the turn. `model`: the model's late name for a
turn published before naming (`newName` `unknown` = it could not be
named); show no "corrected" marker. Absent or `operator`: a human
correction. An operator's name always wins over the
model's, whatever order they arrive in; within one origin the
latest amend wins.
basis:
type: string
enum: [early]
description: |
`early`: the model's full-text naming failed, and `newName` is the
turn's early, first-sentence name (already shown on the partial
stream), kept rather than dropped. Show it as provisional. Only
ever with `by: model`; absent on every other amend.
reason:
type: string
description: Optional rationale (operator corrections cap it at 200 chars).
DoneEvent:
type: object
required: [type]
properties:
type:
const: done
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: "Server-side auth. `Authorization: Bearer <subscriber key>` (`ek_…`)."
sessionToken:
type: httpApiKey
in: query
name: t
description: |
Browser auth. A 2-hour, one-call session token from
`POST https://live-earnings.com/api/live/{slug}/session-token`.
Invalid or expired → 401, with no fallback to another credential.
queryToken:
type: httpApiKey
in: query
name: token
description: |
DEPRECATED — the long-lived subscriber key in the query string. Still
accepted, but keys in URLs leak into logs; use `t` instead.
ingestToken:
type: http
scheme: bearer
description: |
Operator ingest token (LIVE_EARNINGS_INGEST_TOKEN) as a Bearer header
(the ingest WebSocket also accepts it as `?token=`). Never a subscriber key.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.