@dialstack/sdk / index / CallLog
Interface: CallLog
Defined in: sdk/src/types/components.ts:234
Properties
answered_at
answered_at: string | null;
Defined in: sdk/src/types/components.ts:274
connected_at
connected_at: string | null;
Defined in: sdk/src/types/components.ts:279
did
did: string | CallLogDID | null;
Defined in: sdk/src/types/components.ts:249
The phone number (DID) associated with the call. The DID's id by default,
or a compact DID object (id + phone_number) when expand[]=did is
requested; null when none.
did_id
did_id: string | null;
Defined in: sdk/src/types/components.ts:243
Deprecated
Use did (its id form). Retained for backwards compatibility.
direction
direction: "inbound" | "outbound" | "internal";
Defined in: sdk/src/types/components.ts:250
duration_seconds
duration_seconds: number | null;
Defined in: sdk/src/types/components.ts:281
ended_at
ended_at: string | null;
Defined in: sdk/src/types/components.ts:280
endpoint?
optional endpoint?: string | null;
Defined in: sdk/src/types/components.ts:239
endpoint_id
endpoint_id: string | null;
Defined in: sdk/src/types/components.ts:241
Deprecated
Use endpoint. Retained for backwards compatibility.
from_label
from_label: string | null;
Defined in: sdk/src/types/components.ts:263
The caller's display name. For internal callers this is the calling user's display name (the caller is always a user's device); for external callers it is the caller ID name (CNAM). While a call is live it is the name captured at call start. Null when no name is available.
For external callers the CNAM is not interpreted, only trimmed and limited
to 80 characters, so it may be a locality rather than a person ("LA MESA
CA"), a placeholder ("WIRELESS CALLER"), or a restatement of from_number —
check for the latter before rendering the name beside the number.
from_number
from_number: string;
Defined in: sdk/src/types/components.ts:251
hangup_cause
hangup_cause: number | null;
Defined in: sdk/src/types/components.ts:290
id
id: string;
Defined in: sdk/src/types/components.ts:235
quality_metrics
quality_metrics: QualityMetricLeg[];
Defined in: sdk/src/types/components.ts:301
recording_url
recording_url: string | null;
Defined in: sdk/src/types/components.ts:298
sentiment
sentiment: Sentiment | null;
Defined in: sdk/src/types/components.ts:297
AI-derived sentiment of the call transcript. Null if the call was not recorded, the transcript is not yet processed, or the analysis did not produce a usable result.
started_at
started_at: string;
Defined in: sdk/src/types/components.ts:273
status
status: "voicemail" | "failed" | "completed" | "no-answer" | "busy" | null;
Defined in: sdk/src/types/components.ts:286
Final call status. Null while the call is still live (in progress) — the status values are terminal only.
summary
summary: string | null;
Defined in: sdk/src/types/components.ts:291
to_label
to_label: string | null;
Defined in: sdk/src/types/components.ts:272
to_number
to_number: string | null;
Defined in: sdk/src/types/components.ts:271
Destination number/extension. While a call is live it is present when the destination is known at call start (outbound and internal extension-to- extension calls); for an inbound call the routed destination is resolved later, so this is null for the whole time the call is in flight and is populated once the call completes.
user?
optional user?: string | null;
Defined in: sdk/src/types/components.ts:236
user_id
user_id: string | null;
Defined in: sdk/src/types/components.ts:238
Deprecated
Use user. Retained for backwards compatibility.