Reference
Remy Reference/Interface SDK/Voice/VoiceSessionSummary

VoiceSessionSummary

Type
A past call record without its transcript, as returned in a list page.

One row in a call-history list: the summary of a past session with its transcript left out for speed. listSessions returns a page of these; fetch the full record, transcript included, with getSession.

VoiceSessionSummary.ts
interface VoiceSessionSummary {
  id: string
  status: 'active' | 'ended' | 'failed'
  startedAt: string
  endedAt: string | null
  durationSecs: number | null
  endedReason: string | null
}
Fields
id
string
The session id. Pass it to getSession for the transcript.
status
'active' | 'ended' | 'failed'
The call's state.
startedAt
string
ISO timestamp when the call started.
endedAt
string | null
ISO timestamp when it ended, or null while active.
durationSecs
number | null
Call length in seconds, or null while active.
endedReason
string | null
Why the call ended, when known.
A row in a call log
const { sessions } = await voice.listSessions();
sessions.map((s: VoiceSessionSummary) => `${s.startedAt} · ${s.durationSecs}s`);