Skip to main content
GET
/
v1
/
call
/
{callId}
/
transcript
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});

const response = await client.call.getTranscript('callId');

console.log(response.data);
{
  "data": {
    "transcriptionSource": "ROARK_POST_CALL",
    "participants": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "type": "<string>",
        "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ],
    "entries": [
      {
        "participantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "role": "AGENT",
        "text": "<string>",
        "startOffsetMs": 1,
        "endOffsetMs": 1
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

callId
string
required

Query Parameters

source
enum<string>

Transcription source to fetch. When omitted, uses the preferred source based on availability: CUSTOMER_AGENT_REALTIME > SIMULATION_AGENT_REALTIME > ROARK_POST_CALL

Available options:
ROARK_POST_CALL,
SIMULATION_AGENT_REALTIME,
CUSTOMER_AGENT_REALTIME

Response

Transcript for the specified call

data
object
required

Call transcript response