Transcripts

If transcription was enabled in the session, you can retrieve a list of all transcripts through the sessions/:id/transcripts endpoint. This endpoint will return a standard JSON array as a response.

If you want to receive an export as a txt or json file, then use the /export subendpoint: sessions/:id/transcripts/export. Default is txt file. There is a format param with allowed values txt and json. sessions/:id/transcripts/export?format=txt sessions/:id/transcripts/export?format=json

Since potentially there could be thousands of transcripts, pagination is supported with limit and offset arguments. Read about pagination to learn the details of it. By default maximum 100 transcripts will be returned in the response.

Request (listing all transcripts)

curl --request GET \
  --url https://api.digitalsamba.com/api/v1/sessions/edb7a1cb-0627-44ed-9ae4-62a344d6e8a9/transcripts \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (200 OK)

{
    "total_count": 8096,
    "data": [
        {
            "participant_id": "f06e6600-9424-4dc0-8e7d-a968df2c983d",
            "participant_name": "John Smith",
            "transcript": "Morning. How are you?",
            "start_time": "2024-04-10T12:18:27Z",
            "end_time": "2024-04-10T12:33:27Z"
        },
        {
            "participant_id": "f06e6600-9424-4dc0-8e7d-a968df2c983d",
            "participant_name": "Jane Doe",
            "transcript": "I am fine, thanks! What about you?",
            "start_time": "2024-04-10T12:10:27Z",
            "end_time": "2024-04-10T12:31:27Z"
        },
        {
            "participant_id": "f06e6600-9424-4dc0-8e7d-a968df2c983d",
            "participant_name": "John Doe",
            "transcript": "Hi all!",
            "start_time": "2024-04-10T12:06:27Z",
            "end_time": "2024-04-10T12:33:27Z"
        },
        ...............97 more transcripts...............
    ]
} 

The total_count is the total amount of transcripts in the session. It is NOT the amount of transcripts in the current page returned in the data array. In the above example you have 8096 transcripts in total, but in the data array there will be maximum 100 transcripts (the default limit argument value). You can use the offset param to page through all transcripts.

Request (export all transcripts)

curl --request GET \
  --url https://api.digitalsamba.com/api/v1/sessions/edb7a1cb-0627-44ed-9ae4-62a344d6e8a9/transcripts/export \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (200 OK)

John Smith: Morning. How are you?
Jane Doe: I am fine, thanks! What about you?
John Doe: Hi all!

...............97 more transcripts...............

Last updated