Get A Single Session By Id
/api/v1/sessions/{session_id}Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
session_id
string
path
required
Responses
200Successful Response
application/json
response
Session
required
24 fields
timestampstring (date-time)requiredTimestamp of the session
session_idstring | nulloptionalInternal ID of the session, generated based on interaction details
conversation_idstring | nulloptionalID of the conversation of which the session is a part
channel_manager_servicestring | nulloptionalName of the service used to facilitate the session
channel_manager_typestring | nulloptionalType of the service used to facilitate the session
channel_manager_sidstring | nulloptionalChannel-manager-side ID of the session (different from session_id)
agent_idstring | nulloptionalID of the agent with which the session occurred
agent_namestring | nulloptionalName of the agent with which the session occurred
agent_typestring | nulloptionalType of the agent with which the session occurred
agent_timezonestring | nulloptionalTimezone of the agent with which the session occurred
prompt_idstring | nulloptionalID of the prompt used by the agent with which the session occurred
prompt_namestring | nulloptionalName of the prompt used by the agent with which the session occurred
prompt_versionstring | nulloptionalLegacy prompt version timestamp used by the agent with which the session occurred
prompt_version_numberinteger | nulloptionalPrompt version number used by the agent with which the session occurred (new system)
durationnumber | nulloptionalDuration of the session in seconds
session_label_idstring | nulloptionalID of the label (listing the quality of the session and any issues that occurred) associated with the session
sourcestring | nulloptionalSource of the session (e.g., for an inbound session, the user's phone number/username/email)
targetstring | nulloptionalThe name of the channel target associated with the agent at the time of the session (see ChannelTargetResponse.target)
is_legacyboolean | nulloptionalWhether the session occurred on the legacy Syllable system
is_testboolean | nulloptionalWhether the session is a test session
is_outboundboolean | nulloptionalWhether the session direction is outbound (true) or inbound (false).
user_terminatedboolean | nulloptionalWhether the voice session was ended by the recipient (outbound) / caller (inbound). False if the user was transferred or there was an error. Unset if the session was not a voice session.
transfer_voicemail_detectedboolean | nulloptionalWhether a voicemail was detected during the transfer leg of the session
override_timestampstring | nulloptionalISO 8601 datetime used to override the session's current time. Set only for test sessions that supplied a datetime override; otherwise null.
Response example
{
"timestamp": "string",
"session_id": "string",
"conversation_id": "string",
"channel_manager_service": "string",
"channel_manager_type": "string",
"channel_manager_sid": "string",
"agent_id": "string",
"agent_name": "string",
"agent_type": "string",
"agent_timezone": "string",
"prompt_id": "string",
"prompt_name": "string",
"prompt_version": "string",
"prompt_version_number": "string",
"duration": "string",
"session_label_id": "string",
"source": "string",
"target": "string",
"is_legacy": "string",
"is_test": "string",
"is_outbound": "string",
"user_terminated": "string",
"transfer_voicemail_detected": "string",
"override_timestamp": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
