Skip to main content
GET
/
api
/
v1
/
session_debug
/
session_id
/
{session_id}
Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";

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

async function run() {
  const result = await syllableSDK.sessionDebug.getSessionDataBySessionId({
    sessionId: 303182,
  });

  console.log(result);
}

run();
{
  "session_id": 123,
  "source": "<string>",
  "target": "<string>",
  "is_test": true,
  "messages": [
    {
      "role": "agent",
      "dialog": {
        "text": "<string>"
      },
      "tool_calls": [
        {
          "tool_call_id": "<string>",
          "tool_name": "<string>",
          "tool_arguments": "<unknown>",
          "tool_result": {
            "answer": "Syllable is a platform for building and managing AI voice agents..."
          },
          "timestamp": "2023-11-07T05:31:56Z"
        }
      ],
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

session_id
integer
required

Response

Successful Response

session_id
integer
required

Session ID

Example:

"123"

source
string
required

Session source

Example:

"+1234567890"

target
string
required

Session target

Example:

"+1239876543"

is_test
boolean
required

Is test session

Example:

false

messages
SessionMessage · object[]
required

Session messages