A Transcript Sentence
is the actual text of the recording transcription.
The GET
Sentences
request returns a list of Sentences of a Transcript
. With the Redacted
query param, the endpoint returns the PII redacted/unredacted Sentences.
Offset from the beginning of the transcript when this sentence starts.
A 34 character string that uniquely identifies this Sentence.
^GX[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Detailed information for each of the words of the given Sentence.
GET https://intelligence.twilio.com/v2/Transcripts/{TranscriptSid}/Sentences
The unique SID identifier of the Transcript.
^GT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is true
to access redacted sentences.
Returns word level timestamps information, if word_timestamps is enabled. The default is false
.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listSentence() {11const sentences = await client.intelligence.v212.transcripts("GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.sentences.list({ limit: 20 });1415sentences.forEach((s) => console.log(s.mediaChannel));16}1718listSentence();
1{2"sentences": [3{4"media_channel": 1,5"sentence_index": 0,6"start_time": null,7"end_time": null,8"transcript": "test test",9"sid": "GXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",10"confidence": null,11"words": [12{13"word": "test",14"start_time": null,15"end_time": null16},17{18"word": "test",19"start_time": null,20"end_time": null21}22]23}24],25"meta": {26"key": "sentences",27"page": 0,28"page_size": 50,29"first_page_url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences?PageSize=50&Page=0",30"url": "https://intelligence.twilio.com/v2/Transcripts/GTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sentences?PageSize=50&Page=0",31"next_page_url": null,32"previous_page_url": null33}34}