Skip to main content
GET
/
api
/
v1
/
sessions
/
transcript
/
{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.sessions.transcript.getById({
    sessionId: "<id>",
  });

  console.log(result);
}

run();
{
  "session_id": "<string>",
  "transcription": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "lang": "en-US",
      "source": "user",
      "text": "<string>"
    }
  ],
  "actions": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "tool_name": "<string>",
      "tool_request": "<string>",
      "tool_result": "<string>",
      "tool_error": "<string>"
    }
  ]
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

session_id
string
required

Response

Successful Response

Text transcript of a given session. For more information, see Console docs.

session_id
string
required

Internal ID of the session

transcription
SessionText · object[]
required

Transcriptions of all messages in the session

actions
SessionAction · object[]
required

Tool invocations that occurred during the session