Skip to main content
GET
Get Agent Session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Response

Request fulfilled, document follows

session_id
string
required
agent_id
string
required
agent_name
string
required
status
enum<string>
required
Available options:
pending,
active,
completed,
failed,
unknown
source
enum<string>
required
Available options:
api_key,
dashboard,
public,
phone
created_at
string
required
name
string | null
end_reason
enum<string> | null
Available options:
user_hangup,
agent_hangup,
escalated,
conversation_timeout,
heartbeat_timeout,
agent_join_timeout,
internal_error,
llm_endpoint_failure,
room_join_timeout,
cancelled,
dial_failed
direction
enum<string>
default:inbound
Available options:
inbound,
outbound
dial_status
enum<string> | null
Available options:
answered,
busy,
no_answer,
failed
answered_by
enum<string> | null
Available options:
human,
voicemail,
unknown
caller_number
string | null
dialed_number
string | null
sip_call_id
string | null
timezone
string | null
started_at
string | null
ended_at
string | null
duration_seconds
integer | null
participant_identity
string | null
agent_participant_identity
string | null
agent_joined_at
string | null
metadata
Metadata · object
content_purged_at
string | null
keypad_menu
AgentSessionKeypadMenu · object | null

How the keypad menu of an inbound phone call ended. outcome is selected when the caller chose an option, no_input or no_match when no attempt got a valid choice (the last one had no input, or input matching no option), and skipped when the menu could not run (a resumed conversation or no SIP caller). value is what the menu variable received: the chosen option's value, or the fallback value when the caller never made a valid choice.

unattributed_llm_usage
LLMMessageUsage · object[]
items
(AgentSessionMessageItem · object | AgentSessionToolCallItem · object | AgentSessionTransferItem · object | AgentSessionToolResultItem · object)[]

One transcript message; system messages never surface here.

analysis
AgentSessionAnalysisResult · object | null

Public trim of the post-call analysis record: outcomes only, no run internals (model, tokens, config hash).