GET
/
api
/
v1
/
sessions
/
{session_id}
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.sessions.getById({
    sessionId: "<id>",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "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

Syllable-API-Key
string
header
required

Path Parameters

session_id
string
required

Response

200
application/json

Successful Response

A session is a building block of a conversation.