agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
sessions
Get A Single Session By Id
GET
/
api
/
v1
/
sessions
/
{session_id}
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.sessions.get_by_id(session_id="<id>")
# Handle response
print(res)
{
"timestamp": "2023-11-07T05:31:56Z",
"session_id": "<string>",
"conversation_id": "<string>",
"channel_manager_service": "hedy",
"channel_manager_type": "voice_sip_v1",
"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>",
"duration": 123,
"session_label_id": "<string>",
"source": "+18042221111",
"target": "<string>",
"is_legacy": true,
"is_test": true
}
Authorizations
Path Parameters
Response
200
application/json
Successful Response
A session is a building block of a conversation.
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.sessions.get_by_id(session_id="<id>")
# Handle response
print(res)
{
"timestamp": "2023-11-07T05:31:56Z",
"session_id": "<string>",
"conversation_id": "<string>",
"channel_manager_service": "hedy",
"channel_manager_type": "voice_sip_v1",
"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>",
"duration": 123,
"session_label_id": "<string>",
"source": "+18042221111",
"target": "<string>",
"is_legacy": true,
"is_test": true
}